com.sun.syndication.feed.module.base.types
Class ShippingType

java.lang.Object
  extended by com.sun.syndication.feed.module.base.types.ShippingType
All Implemented Interfaces:
CloneableType, java.lang.Cloneable

public class ShippingType
extends java.lang.Object
implements CloneableType

This class represents a specific shipping option for an item.

Version:
$Revision: 1.1 $
Author:
Robert "kebernet" Cooper

Nested Class Summary
static class ShippingType.ServiceEnumeration
          Enumeration class of valid options for ServiceType.
 
Constructor Summary
ShippingType(FloatUnit price, ShippingType.ServiceEnumeration service, java.lang.String country)
          Creates a new instance of ShippingType
 
Method Summary
 java.lang.Object clone()
          Clones this object.
 boolean equals(java.lang.Object o)
           
 java.lang.String getCountry()
          Returns the destination country.
 FloatUnit getPrice()
          Returns the price of this shipping option.
 ShippingType.ServiceEnumeration getService()
          Returns the ServiceEnumeration instance for the shipping service used.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShippingType

public ShippingType(FloatUnit price,
                    ShippingType.ServiceEnumeration service,
                    java.lang.String country)
Creates a new instance of ShippingType

Parameters:
price - The price of the shipping option
service - Shipping service used.
country - Country shipped to.
Method Detail

getCountry

public java.lang.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 java.lang.Object clone()
Clones this object.

Specified by:
clone in interface CloneableType
Overrides:
clone in class java.lang.Object
Returns:
Duplicate ShippingType object.

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this object.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.