|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 AttributeValue
Attribute
corresponding to this valuepublic AttributeType getAttributeType()
AttributeType
of this attribute.
getAttributeType
in interface AttributeValue
AttributeType
of this attributepublic java.lang.Boolean getBooleanValue()
getBooleanValue
in interface AttributeValueWithType
public java.util.Date getDateValue()
getDateValue
in interface AttributeValueWithType
public java.math.BigDecimal getDecimalValue()
getDecimalValue
in interface AttributeValueWithType
public java.lang.Integer getIntegerValue()
getIntegerValue
in interface AttributeValueWithType
public java.lang.String getLocalizedAttributeKey()
getLocalizedAttributeKey
in interface AttributeValue
public java.lang.String getLongTextValue()
getLongTextValue
in interface AttributeValueWithType
public java.util.List getShortTextMultiValues()
getShortTextMultiValues
in interface AttributeValueWithType
public java.lang.String getShortTextValue()
getShortTextValue
in interface AttributeValueWithType
public java.lang.String getStringValue()
getStringValue
in interface AttributeValue
public java.lang.Object getValue()
getValue
in interface AttributeValue
public 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 AttributeValue
attribute
- the Attribute
corresponding to this valuepublic void setAttributeType(AttributeType attributeType)
AttributeType
of this attribute.
setAttributeType
in interface AttributeValue
attributeType
- the attribute type.public void setBooleanValue(java.lang.Boolean booleanValue)
setBooleanValue
in interface AttributeValueWithType
booleanValue
- the boolean valuepublic void setDateValue(java.util.Date dateValue)
setDateValue
in interface AttributeValueWithType
dateValue
- the date valuepublic void setDecimalValue(java.math.BigDecimal decimalValue)
setDecimalValue
in interface AttributeValueWithType
decimalValue
- the decimal valuepublic void setIntegerValue(java.lang.Integer integerValue)
setIntegerValue
in interface AttributeValueWithType
integerValue
- the integer valuepublic void setLocalizedAttributeKey(java.lang.String localizedAttributeKey)
localizedAttributeKey
- the attribute keypublic void setLongTextValue(java.lang.String longTextValue)
setLongTextValue
in interface AttributeValueWithType
longTextValue
- the long text valuepublic void setShortTextMultiValues(java.util.List shortTextMultiValues)
setShortTextMultiValues
in interface AttributeValueWithType
shortTextMultiValues
- the shortTextMultiValues to setpublic void setShortTextValue(java.lang.String shortTextValue)
setShortTextValue
in interface AttributeValueWithType
shortTextValue
- the short text valuepublic void setStringValue(java.lang.String stringValue) throws EpBindException
setStringValue
in interface AttributeValue
stringValue
- the string value to set
EpBindException
- if the given string value is invalidpublic void setValue(java.lang.Object value)
setValue
in interface AttributeValue
value
- 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 |