com.elasticpath.domain.shipping.impl
Class ShippingCostCalculationParameterImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by com.elasticpath.domain.shipping.impl.ShippingCostCalculationParameterImpl
All Implemented Interfaces:
EpDomain, Persistence, ShippingCostCalculationParameter, ValueObject, java.io.Serializable

public class ShippingCostCalculationParameterImpl
extends AbstractValueObjectImpl
implements ShippingCostCalculationParameter

Represents a parameter of a shipping cost calculation method, such as the dollar value of the fix base shipping cost.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from interface com.elasticpath.domain.shipping.ShippingCostCalculationParameter
COST_PER_UNIT_WEIGHT, FIXED_BASE_KEY, FIXED_PRICE_KEY, PERCENTAGE_OF_ORDER_TOTOAL_KEY
 
Constructor Summary
ShippingCostCalculationParameterImpl()
           
 
Method Summary
 java.lang.String getDisplayText()
          Get the display text for this parameter.
 java.lang.String getKey()
          Get the parameter key.
 java.lang.String getValue()
          Get the parameter value.
 void setDisplayText(java.lang.String displayText)
          Set the text to be displayed for this parameter.
 void setKey(java.lang.String key)
          Set the parameter key.
 void setValue(java.lang.String value)
          Set the parameter value.
 
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, toString, 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

ShippingCostCalculationParameterImpl

public ShippingCostCalculationParameterImpl()
Method Detail

getDisplayText

public java.lang.String getDisplayText()
Get the display text for this parameter.

Specified by:
getDisplayText in interface ShippingCostCalculationParameter
Returns:
the the display text, or the parameter value if there is no display text

getKey

public java.lang.String getKey()
Get the parameter key.

Specified by:
getKey in interface ShippingCostCalculationParameter
Returns:
the parameter key

getValue

public java.lang.String getValue()
Get the parameter value.

Specified by:
getValue in interface ShippingCostCalculationParameter
Returns:
the parameter value

setDisplayText

public void setDisplayText(java.lang.String displayText)
Set the text to be displayed for this parameter. For example, the display text for a sku code id long might be the actual text sku code

Specified by:
setDisplayText in interface ShippingCostCalculationParameter
Parameters:
displayText - the text to display

setKey

public void setKey(java.lang.String key)
Set the parameter key.

Specified by:
setKey in interface ShippingCostCalculationParameter
Parameters:
key - the parameter key

setValue

public void setValue(java.lang.String value)
Set the parameter value.

Specified by:
setValue in interface ShippingCostCalculationParameter
Parameters:
value - the parameter value