|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeValue
AttributeValue
is a value object which contains an Attribute
value of a domain model, such as Category
or Product
.
Method Summary | |
---|---|
Attribute |
getAttribute()
Get the Attribute corresponding to this value. |
AttributeType |
getAttributeType()
Return the AttributeType of this attribute. |
java.lang.String |
getLocalizedAttributeKey()
Get the localized attribute key used to get a handle on this attribute value, given the parent object to which the attribute belongs. |
java.lang.String |
getStringValue()
Get the string value of the attribute. |
java.lang.Object |
getValue()
Get the value of the attribute. |
void |
setAttribute(Attribute attribute)
Get the attribute corresponding to this value. |
void |
setAttributeType(AttributeType attributeType)
Set the AttributeType of this attribute. |
void |
setStringValue(java.lang.String stringValue)
Set the value of the attribute based on the given string value. |
void |
setValue(java.lang.Object value)
Set the value of the attribute. |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
Attribute getAttribute()
Attribute
corresponding to this value.
Attribute
corresponding to this valueAttributeType getAttributeType()
AttributeType
of this attribute.
AttributeType
of this attributejava.lang.String getLocalizedAttributeKey()
java.lang.String getStringValue()
java.lang.Object getValue()
void setAttribute(Attribute attribute)
attribute
- the Attribute
corresponding to this valuevoid setAttributeType(AttributeType attributeType)
AttributeType
of this attribute.
attributeType
- the attribute type.void setStringValue(java.lang.String stringValue) throws EpBindException
stringValue
- the string value to set
EpBindException
- in case the given string value is invalidvoid setValue(java.lang.Object value)
value
- the value to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |