|
|||||||||
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 SkuOption
optionValue
- an OptionValue
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
SkuOption
.
clone
in interface SkuOption
clone
in class java.lang.Object
java.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 SkuOption
valueCode
- the sku option value code
true
if this SkuOption
contains the given value codepublic SkuOptionValue getDefaultOptionValue()
getDefaultOptionValue
in interface SkuOption
SkuOptionValue
public java.lang.String getGuid()
getGuid
in interface Entity
getGuid
in class AbstractEntityImpl
public LocalizedProperties getLocalizedProperties()
LocalizedProperties
.
getLocalizedProperties
in interface SkuOption
LocalizedProperties
public java.lang.String getOptionKey()
getOptionKey
in interface SkuOption
public SkuOptionValue getOptionValue(java.lang.String valueCode)
SkuOptionValue
of the given value code.
getOptionValue
in interface SkuOption
valueCode
- the sku option value code
SkuOptionValue
of the given value codepublic java.util.Map getOptionValueMap()
getOptionValueMap
in interface SkuOption
SkuValue
spublic java.util.Collection getOptionValues()
getOptionValues
in interface SkuOption
SkuValue
spublic int getOrdering()
getOrdering
in interface SkuOption
public void setDefaultOptionValue(SkuOptionValue defaultOptionValue)
setDefaultOptionValue
in interface SkuOption
defaultOptionValue
- the default SkuOptionValue
public void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractEntityImpl
public void setGuid(java.lang.String guid)
setGuid
in interface Entity
setGuid
in class AbstractEntityImpl
guid
- the guid to set.public void setLocalizedProperties(LocalizedProperties localizedProperties)
LocalizedProperties
.
localizedProperties
- the LocalizedProperties
public void setOptionKey(java.lang.String optionKey)
setOptionKey
in interface SkuOption
optionKey
- the key of the option (e.g. Color).public void setOptionValueMap(java.util.Map optionValueMap)
setOptionValueMap
in interface SkuOption
optionValueMap
- the map of SkuValue
s.public void setOptionValues(java.util.Set optionValues)
setOptionValues
in interface SkuOption
optionValues
- a set of SkuOptionValue
spublic void setOrdering(int ordering)
setOrdering
in interface SkuOption
ordering
- the ordering number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |