|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractValueObjectImpl
com.elasticpath.domain.attribute.impl.AttributeValueImpl
public class AttributeValueImpl
The default implementation of AttributeValue.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
AttributeValueImpl()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
buildShortTextMultiValues(java.util.List shortTextMultiValues)
Build up the multi values for short text. |
Attribute |
getAttribute()
Get the Attribute corresponding to this value. |
AttributeType |
getAttributeType()
Return the AttributeType of this attribute. |
java.lang.Boolean |
getBooleanValue()
Get the boolean value. |
java.util.Date |
getDateValue()
Get the date value. |
java.math.BigDecimal |
getDecimalValue()
Get the decimal value. |
java.lang.Integer |
getIntegerValue()
Get the integer value. |
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 |
getLongTextValue()
Get the long text value. |
java.util.List |
getShortTextMultiValues()
Get the multi-values for short text. |
java.lang.String |
getShortTextValue()
Get the short text value. |
java.lang.String |
getStringValue()
Get the string value of the attribute. |
java.lang.Object |
getValue()
Get the value of the attribute. |
static java.util.List |
parseShortTextMultiValues(java.lang.String longTextValue)
Parse the multi values for short text type. |
void |
setAttribute(Attribute attribute)
Get the attribute corresponding to this value. |
void |
setAttributeType(AttributeType attributeType)
Set the AttributeType of this attribute. |
void |
setBooleanValue(java.lang.Boolean booleanValue)
Set the boolean value. |
void |
setDateValue(java.util.Date dateValue)
Set the date value. |
void |
setDecimalValue(java.math.BigDecimal decimalValue)
Set the decimal value. |
void |
setIntegerValue(java.lang.Integer integerValue)
Set the integer value. |
void |
setLocalizedAttributeKey(java.lang.String localizedAttributeKey)
Set the localized attribute key used to get a handle on this attribute value, given the parent object to which the attribute belongs. |
void |
setLongTextValue(java.lang.String longTextValue)
Set the long text value. |
void |
setShortTextMultiValues(java.util.List shortTextMultiValues)
Set the multi-values for short text. |
void |
setShortTextValue(java.lang.String shortTextValue)
Set the short text value. |
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. |
java.lang.String |
toString()
Convert this value to string. |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public AttributeValueImpl()
| Method Detail |
|---|
public static java.lang.String buildShortTextMultiValues(java.util.List shortTextMultiValues)
shortTextMultiValues - the list of multi-value for short text.
public Attribute getAttribute()
Attribute corresponding to this value.
getAttribute in interface AttributeValueAttribute corresponding to this valuepublic AttributeType getAttributeType()
AttributeType of this attribute.
getAttributeType in interface AttributeValueAttributeType of this attributepublic java.lang.Boolean getBooleanValue()
getBooleanValue in interface AttributeValueWithTypepublic java.util.Date getDateValue()
getDateValue in interface AttributeValueWithTypepublic java.math.BigDecimal getDecimalValue()
getDecimalValue in interface AttributeValueWithTypepublic java.lang.Integer getIntegerValue()
getIntegerValue in interface AttributeValueWithTypepublic java.lang.String getLocalizedAttributeKey()
getLocalizedAttributeKey in interface AttributeValuepublic java.lang.String getLongTextValue()
getLongTextValue in interface AttributeValueWithTypepublic java.util.List getShortTextMultiValues()
getShortTextMultiValues in interface AttributeValueWithTypepublic java.lang.String getShortTextValue()
getShortTextValue in interface AttributeValueWithTypepublic java.lang.String getStringValue()
getStringValue in interface AttributeValuepublic java.lang.Object getValue()
getValue in interface AttributeValuepublic static java.util.List parseShortTextMultiValues(java.lang.String longTextValue)
longTextValue - the string value which contains the multi-value for short text.
public void setAttribute(Attribute attribute)
setAttribute in interface AttributeValueattribute - the Attribute corresponding to this valuepublic void setAttributeType(AttributeType attributeType)
AttributeType of this attribute.
setAttributeType in interface AttributeValueattributeType - the attribute type.public void setBooleanValue(java.lang.Boolean booleanValue)
setBooleanValue in interface AttributeValueWithTypebooleanValue - the boolean valuepublic void setDateValue(java.util.Date dateValue)
setDateValue in interface AttributeValueWithTypedateValue - the date valuepublic void setDecimalValue(java.math.BigDecimal decimalValue)
setDecimalValue in interface AttributeValueWithTypedecimalValue - the decimal valuepublic void setIntegerValue(java.lang.Integer integerValue)
setIntegerValue in interface AttributeValueWithTypeintegerValue - the integer valuepublic void setLocalizedAttributeKey(java.lang.String localizedAttributeKey)
localizedAttributeKey - the attribute keypublic void setLongTextValue(java.lang.String longTextValue)
setLongTextValue in interface AttributeValueWithTypelongTextValue - the long text valuepublic void setShortTextMultiValues(java.util.List shortTextMultiValues)
setShortTextMultiValues in interface AttributeValueWithTypeshortTextMultiValues - the shortTextMultiValues to setpublic void setShortTextValue(java.lang.String shortTextValue)
setShortTextValue in interface AttributeValueWithTypeshortTextValue - the short text value
public void setStringValue(java.lang.String stringValue)
throws EpBindException
setStringValue in interface AttributeValuestringValue - the string value to set
EpBindException - if the given string value is invalidpublic void setValue(java.lang.Object value)
setValue in interface AttributeValuevalue - the value to setpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||