|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SkuOption
Represents a SKU option that can be configured.
| Field Summary | |
|---|---|
static java.lang.String |
LOCALIZED_PROPERTY_DISPLAY_NAME
The name of localized property -- display name. |
| Method Summary | |
|---|---|
void |
addOptionValue(SkuOptionValue optionValue)
Add an option value to the set of available values. |
java.lang.Object |
clone()
Create a shallow of this SkuOption. |
boolean |
contains(java.lang.String valueCode)
Returns true if this SkuOption contains the given value code. |
SkuOptionValue |
getDefaultOptionValue()
Get the option value that has been designated the default value if no option has yet been selected. |
LocalizedProperties |
getLocalizedProperties()
Returns the LocalizedProperties. |
java.lang.String |
getOptionKey()
Get the key of this SKU option (e.g. |
SkuOptionValue |
getOptionValue(java.lang.String valueCode)
Returns the corresponding SkuOptionValue of the given value code. |
java.util.Map |
getOptionValueMap()
Get the available values for this SKU option. |
java.util.Collection |
getOptionValues()
Get the available values for this SKU option. |
int |
getOrdering()
Get the order in which this SKU option should appear. |
void |
setDefaultOptionValue(SkuOptionValue defaultOptionValue)
Set the option value that is to appear by default if no option has yet been selected. |
void |
setOptionKey(java.lang.String optionKey)
Set the key of this SKU option. |
void |
setOptionValueMap(java.util.Map optionValueMap)
Set the available values for this SKU option. |
void |
setOptionValues(java.util.Set optionValues)
Sets the available values for this SKU option. |
void |
setOrdering(int order)
Set the order in which this SKU option should appear. |
| Methods inherited from interface com.elasticpath.domain.Entity |
|---|
getGuid, setGuid |
| 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 |
|---|
static final java.lang.String LOCALIZED_PROPERTY_DISPLAY_NAME
| Method Detail |
|---|
void addOptionValue(SkuOptionValue optionValue)
optionValue - an OptionValue
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
SkuOption.
java.lang.CloneNotSupportedException - if the object cannot be clonedboolean contains(java.lang.String valueCode)
true if this SkuOption contains the given value code.
valueCode - the sku option value code
true if this SkuOption contains the given value codeSkuOptionValue getDefaultOptionValue()
SkuOptionValueLocalizedProperties getLocalizedProperties()
LocalizedProperties.
LocalizedPropertiesjava.lang.String getOptionKey()
SkuOptionValue getOptionValue(java.lang.String valueCode)
SkuOptionValue of the given value code.
valueCode - the sku option value code
SkuOptionValue of the given value codejava.util.Map getOptionValueMap()
SkuValuesjava.util.Collection getOptionValues()
SkuValuesint getOrdering()
void setDefaultOptionValue(SkuOptionValue defaultOptionValue)
defaultOptionValue - the default SkuOptionValuevoid setOptionKey(java.lang.String optionKey)
optionKey - the key of the option (e.g. Color).void setOptionValueMap(java.util.Map optionValueMap)
optionValueMap - the map of SkuValues.void setOptionValues(java.util.Set optionValues)
optionValues - a set of SkuOptionValuesvoid setOrdering(int order)
order - the ordering number
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||