Package com.cmobilecom.af.entity.attr
Interface EntityAttrOption
-
- All Superinterfaces:
ChildEntity
,java.lang.Cloneable
,PersistenceEntity
- All Known Implementing Classes:
EntityAttrOptionBase
public interface EntityAttrOption extends ChildEntity
EntityAttrOption: an option of entity attribute value. A list of options is the select items from which to choose attribute value. Selected option values are stored in persistence as an attribute value , but option names are for display only.For example, color options:
name value ------------------------- Red R Blue B Green G
- Since:
- 5.4
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_ATTRIBUTE
Property name: attributestatic java.lang.String
PROPERTY_NAME
Property name: namestatic java.lang.String
PROPERTY_VALUE
Property name: value-
Fields inherited from interface com.cmobilecom.af.entity.PersistenceEntity
ID_SEPARATOR, PROPERTY_ID, PROPERTY_INSTANCE, PROPERTY_SELECTED, PROPERTY_SEQUENCE_NO, PROPERTY_VERSION
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityAttr
getAttribute()
Get the attribute with which this option is associated.java.lang.String
getName()
Get option display name for the option value.java.lang.String
getValue()
Get option value.void
setAttribute(EntityAttr attribute)
Set the attribute with which this option is associated.void
setName(java.lang.String name)
Set option display name for the option value.void
setValue(java.lang.String value)
Set option value.-
Methods inherited from interface com.cmobilecom.af.entity.PersistenceEntity
clone, getId, getInstance, getSequenceNo, getVersion, isChanged, isPartiallyInitialized, isPersisted, isSelected, isStatistics, setChanged, setId, setInstance, setPartiallyInitialized, setPersisted, setSelected, setSequenceNo, setStatistics, setVersion
-
-
-
-
Field Detail
-
PROPERTY_ATTRIBUTE
static final java.lang.String PROPERTY_ATTRIBUTE
Property name: attribute- See Also:
- Constant Field Values
-
PROPERTY_NAME
static final java.lang.String PROPERTY_NAME
Property name: name- See Also:
- Constant Field Values
-
PROPERTY_VALUE
static final java.lang.String PROPERTY_VALUE
Property name: value- See Also:
- Constant Field Values
-
-
Method Detail
-
getAttribute
EntityAttr getAttribute()
Get the attribute with which this option is associated.- Returns:
- EntityAttr instance
-
setAttribute
void setAttribute(EntityAttr attribute)
Set the attribute with which this option is associated.- Parameters:
attribute
- EntityAttr instance
-
getValue
java.lang.String getValue()
Get option value.- Returns:
- value
-
setValue
void setValue(java.lang.String value)
Set option value.- Parameters:
value
-
-
getName
java.lang.String getName()
Get option display name for the option value.- Returns:
- display name on device.
-
setName
void setName(java.lang.String name)
Set option display name for the option value.- Parameters:
name
- display name on device.
-
-