com.elasticpath.domain.skuconfiguration.impl
Class SkuOptionValueImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.skuconfiguration.impl.SkuOptionValueImpl
All Implemented Interfaces:
EpDomain, Persistence, SkuOptionValue, ValueObject, java.io.Serializable

public class SkuOptionValueImpl
extends AbstractPersistenceImpl
implements SkuOptionValue

Represents an available option value for a SKU option. Example option values include red, green, small, large, etc.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from interface com.elasticpath.domain.skuconfiguration.SkuOptionValue
LOCALIZED_PROPERTY_DISPLAY_NAME
 
Constructor Summary
SkuOptionValueImpl()
           
 
Method Summary
 java.lang.String getImage()
          Get the path to the image corresponding to this option value.
 LocalizedProperties getLocalizedProperties()
          Returns the LocalizedProperties.
 java.lang.String getOptionValueKey()
          Get the option value key corresponding to this option value.
 int getOrdering()
          Get the ordering in which this SKU option value should appear.
 void setImage(java.lang.String image)
          Set the path to the image corresponding to this option value.
 void setLocalizedProperties(LocalizedProperties localizedProperties)
          Sets the LocalizedProperties.
 void setOptionValueKey(java.lang.String optionValueKey)
          Set the option value key corresponding to this option value.
 void setOrdering(int ordering)
          Set the ordering in which this SKU option value should appear.
 java.lang.String toString()
          Gets a string representation of the SkuOptionValue.
 
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

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

SkuOptionValueImpl

public SkuOptionValueImpl()
Method Detail

getImage

public java.lang.String getImage()
Get the path to the image corresponding to this option value.

Specified by:
getImage in interface SkuOptionValue
Returns:
the path to the image

getLocalizedProperties

public LocalizedProperties getLocalizedProperties()
Returns the LocalizedProperties.

Specified by:
getLocalizedProperties in interface SkuOptionValue
Returns:
the LocalizedProperties

getOptionValueKey

public java.lang.String getOptionValueKey()
Get the option value key corresponding to this option value.

Specified by:
getOptionValueKey in interface SkuOptionValue
Returns:
the option value key for this option

getOrdering

public int getOrdering()
Get the ordering in which this SKU option value should appear.

Specified by:
getOrdering in interface SkuOptionValue
Returns:
the ordering number

setImage

public void setImage(java.lang.String image)
Set the path to the image corresponding to this option value.

Specified by:
setImage in interface SkuOptionValue
Parameters:
image - the path to the image corresponding to this option value

setLocalizedProperties

public void setLocalizedProperties(LocalizedProperties localizedProperties)
Sets the LocalizedProperties.

Parameters:
localizedProperties - the LocalizedProperties

setOptionValueKey

public void setOptionValueKey(java.lang.String optionValueKey)
Set the option value key corresponding to this option value.

Specified by:
setOptionValueKey in interface SkuOptionValue
Parameters:
optionValueKey - the option value key for this option

setOrdering

public void setOrdering(int ordering)
Set the ordering in which this SKU option value should appear.

Specified by:
setOrdering in interface SkuOptionValue
Parameters:
ordering - the ordering number

toString

public java.lang.String toString()
Gets a string representation of the SkuOptionValue.

Overrides:
toString in class java.lang.Object
Returns:
the string representation