|
|||||||||
| 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.AbstractEntityImpl
com.elasticpath.domain.skuconfiguration.impl.SkuOptionImpl
public class SkuOptionImpl
Represents a SKU option that can be configured.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Fields inherited from interface com.elasticpath.domain.skuconfiguration.SkuOption |
|---|
LOCALIZED_PROPERTY_DISPLAY_NAME |
| Constructor Summary | |
|---|---|
SkuOptionImpl()
|
|
| Method Summary | |
|---|---|
void |
addOptionValue(SkuOptionValue optionValue)
Add an option value to the set of available values. |
java.lang.Object |
clone()
Create a deep copy 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. |
java.lang.String |
getGuid()
Return the guid. |
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 ordering 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 |
setDefaultValues()
Set default values for those fields need default values. |
void |
setGuid(java.lang.String guid)
Set the guid. |
void |
setLocalizedProperties(LocalizedProperties localizedProperties)
Sets the LocalizedProperties. |
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 ordering)
Set the ordering in which this SKU option should appear. |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl |
|---|
convertAttributeGroupAttributes |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public SkuOptionImpl()
| Method Detail |
|---|
public void addOptionValue(SkuOptionValue optionValue)
addOptionValue in interface SkuOptionoptionValue - an OptionValue
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
SkuOption.
clone in interface SkuOptionclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the object cannot be clonedpublic boolean contains(java.lang.String valueCode)
true if this SkuOption contains the given value code.
contains in interface SkuOptionvalueCode - the sku option value code
true if this SkuOption contains the given value codepublic SkuOptionValue getDefaultOptionValue()
getDefaultOptionValue in interface SkuOptionSkuOptionValuepublic java.lang.String getGuid()
getGuid in interface EntitygetGuid in class AbstractEntityImplpublic LocalizedProperties getLocalizedProperties()
LocalizedProperties.
getLocalizedProperties in interface SkuOptionLocalizedPropertiespublic java.lang.String getOptionKey()
getOptionKey in interface SkuOptionpublic SkuOptionValue getOptionValue(java.lang.String valueCode)
SkuOptionValue of the given value code.
getOptionValue in interface SkuOptionvalueCode - the sku option value code
SkuOptionValue of the given value codepublic java.util.Map getOptionValueMap()
getOptionValueMap in interface SkuOptionSkuValuespublic java.util.Collection getOptionValues()
getOptionValues in interface SkuOptionSkuValuespublic int getOrdering()
getOrdering in interface SkuOptionpublic void setDefaultOptionValue(SkuOptionValue defaultOptionValue)
setDefaultOptionValue in interface SkuOptiondefaultOptionValue - the default SkuOptionValuepublic void setDefaultValues()
setDefaultValues in interface PersistencesetDefaultValues in class AbstractEntityImplpublic void setGuid(java.lang.String guid)
setGuid in interface EntitysetGuid in class AbstractEntityImplguid - the guid to set.public void setLocalizedProperties(LocalizedProperties localizedProperties)
LocalizedProperties.
localizedProperties - the LocalizedPropertiespublic void setOptionKey(java.lang.String optionKey)
setOptionKey in interface SkuOptionoptionKey - the key of the option (e.g. Color).public void setOptionValueMap(java.util.Map optionValueMap)
setOptionValueMap in interface SkuOptionoptionValueMap - the map of SkuValues.public void setOptionValues(java.util.Set optionValues)
setOptionValues in interface SkuOptionoptionValues - a set of SkuOptionValuespublic void setOrdering(int ordering)
setOrdering in interface SkuOptionordering - the ordering number
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||