Package com.rometools.modules.base.types
Class ShippingType
- java.lang.Object
-
- com.rometools.modules.base.types.ShippingType
-
- All Implemented Interfaces:
CloneableType,Cloneable
public class ShippingType extends Object implements CloneableType
This class represents a specific shipping option for an item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShippingType.ServiceEnumerationEnumeration class of valid options for ServiceType.
-
Constructor Summary
Constructors Constructor Description ShippingType(FloatUnit price, ShippingType.ServiceEnumeration service, String country)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clones this object.booleanequals(Object o)StringgetCountry()Returns the destination country.FloatUnitgetPrice()Returns the price of this shipping option.ShippingType.ServiceEnumerationgetService()Returns the ServiceEnumeration instance for the shipping service used.StringtoString()Returns a String representation of this object.
-
-
-
Constructor Detail
-
ShippingType
public ShippingType(FloatUnit price, ShippingType.ServiceEnumeration service, String country)
- Parameters:
price- The price of the shipping optionservice- Shipping service used.country- Country shipped to.
-
-
Method Detail
-
getCountry
public String getCountry()
Returns the destination country.- Returns:
- Returns the destination country.
-
getPrice
public FloatUnit getPrice()
Returns the price of this shipping option.- Returns:
- Returns the price of this shipping option.
-
getService
public ShippingType.ServiceEnumeration getService()
Returns the ServiceEnumeration instance for the shipping service used.- Returns:
- Returns the ServiceEnumeration instance for the shipping service used.
-
clone
public Object clone()
Clones this object.- Specified by:
clonein interfaceCloneableType- Overrides:
clonein classObject- Returns:
- Duplicate ShippingType object.
-
toString
public String toString()
Returns a String representation of this object.
-
-