|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AttributeValueGroup
This interface represents a group of AttributeValue. It can be aggregated into DOs like Product,
Category, etc.
| Method Summary | |
|---|---|
AttributeValue |
getAttributeValue(java.lang.String attributeKey,
java.util.Locale locale)
Get the value of an attribute with the specified key in the given locale. |
java.util.Map |
getAttributeValueMap()
Returns the attribute value map. |
java.util.List |
getAttributeValues(AttributeGroup attributeGroup,
java.util.Locale locale)
Get a list of AttributeValues with the given locale for attributes defined in the given attribute group. |
java.util.List |
getFullAttributeValues(AttributeGroup attributeGroup)
Get a list of AttributeValues for all attributes defined in the given attribute group. |
java.util.List |
getFullAttributeValues(AttributeGroup attributeGroup,
java.util.Locale locale)
Get a list of AttributeValues with the given locale for all attributes defined in the given attribute group. |
java.lang.String |
getStringAttributeValue(java.lang.String attributeKey,
java.util.Locale locale)
Get the value of a string attribute with the specified key in the given locale. |
void |
removeByAttribute(Attribute attToRemove)
Removes all attribute values that match incoming attribute key. |
void |
removeByAttributes(java.util.Set toRemove)
Removes all attribute values that match incoming attribute keys. |
void |
setAttributeValue(Attribute attribute,
java.util.Locale locale,
java.lang.Object value)
Set the attribute value of the domain object. |
void |
setAttributeValueMap(java.util.Map attributeValueMap)
Sets the attribute value map. |
void |
setStringAttributeValue(Attribute attribute,
java.util.Locale locale,
java.lang.String stringValue)
Set the attribute value of the domain object based on the given string value. |
| 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 |
|---|
AttributeValue getAttributeValue(java.lang.String attributeKey,
java.util.Locale locale)
attributeKey - the key of the attribute to be retrievedlocale - the locale for which the attribute is requested
AttributeValuejava.util.Map getAttributeValueMap()
java.util.List getAttributeValues(AttributeGroup attributeGroup,
java.util.Locale locale)
AttributeValues with the given locale for attributes defined in the given attribute group. If an attribute
in the given attribute group has a value, the value will be returned. Otherwise, it won't be returned in the list.
attributeGroup - the attribute grouplocale - the locale
AttributeValuesjava.util.List getFullAttributeValues(AttributeGroup attributeGroup)
AttributeValues for all attributes defined in the given attribute group. If an attribute in the given attribute
group has a value, the value will be returned. Otherwise, a null value will be returned.
attributeGroup - the attribute group
AttributeValues
java.util.List getFullAttributeValues(AttributeGroup attributeGroup,
java.util.Locale locale)
AttributeValues with the given locale for all attributes defined in the given attribute group. If an attribute
in the given attribute group has a value, the value will be returned. Otherwise, a null value will be returned.
attributeGroup - the attribute grouplocale - the locale
AttributeValues
java.lang.String getStringAttributeValue(java.lang.String attributeKey,
java.util.Locale locale)
attributeKey - the key of the attribute to be retrievedlocale - the locale for which the attribute is requested
String value of the attributevoid removeByAttribute(Attribute attToRemove)
attToRemove - attribute to remove.void removeByAttributes(java.util.Set toRemove)
toRemove - contains all attributes to remove.
void setAttributeValue(Attribute attribute,
java.util.Locale locale,
java.lang.Object value)
attribute - the attribute to set the valuelocale - the locale of the value, set it to null if it's not locale-dependantvalue - the valuevoid setAttributeValueMap(java.util.Map attributeValueMap)
attributeValueMap - the attribute value map
void setStringAttributeValue(Attribute attribute,
java.util.Locale locale,
java.lang.String stringValue)
throws EpBindException
attribute - the attribute to set the valuelocale - the locale of the value, set it to null if it's not locale-dependantstringValue - the string value
EpBindException - in case the given string value is invalid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||