org.broadleafcommerce.vendor.usps.service.type
Class USPSServiceType

java.lang.Object
  extended by org.broadleafcommerce.vendor.usps.service.type.USPSServiceType
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.BroadleafEnumerationType

public class USPSServiceType
extends Object
implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType

An extendible enumeration of service types.

Author:
jfischer
See Also:
Serialized Form

Field Summary
static USPSServiceType ALL
           
static USPSServiceType BPM
           
static USPSServiceType EXPRESS
           
static USPSServiceType EXPRESS_HFP
           
static USPSServiceType EXPRESS_HFP_COMMERCIAL
           
static USPSServiceType EXPRESS_SH
           
static USPSServiceType EXPRESS_SH_COMMERCIAL
           
static USPSServiceType EXPRESSCOMMERCIAL
           
static USPSServiceType FIRSTCLASS
           
static USPSServiceType LIBRARY
           
static USPSServiceType MEDIA
           
static USPSServiceType ONLINE
           
static USPSServiceType PARCEL
           
static USPSServiceType PRIORITY
           
static USPSServiceType PRIORITYCOMMERCIAL
           
 
Constructor Summary
USPSServiceType()
           
USPSServiceType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static USPSServiceType getInstance(String type)
           
static USPSServiceType getInstanceByServiceMethod(USPSServiceMethod method)
           
 String getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static final USPSServiceType ALL

ONLINE

public static final USPSServiceType ONLINE

FIRSTCLASS

public static final USPSServiceType FIRSTCLASS

PRIORITY

public static final USPSServiceType PRIORITY

PRIORITYCOMMERCIAL

public static final USPSServiceType PRIORITYCOMMERCIAL

EXPRESS

public static final USPSServiceType EXPRESS

EXPRESS_SH

public static final USPSServiceType EXPRESS_SH

EXPRESS_HFP

public static final USPSServiceType EXPRESS_HFP

EXPRESSCOMMERCIAL

public static final USPSServiceType EXPRESSCOMMERCIAL

EXPRESS_SH_COMMERCIAL

public static final USPSServiceType EXPRESS_SH_COMMERCIAL

EXPRESS_HFP_COMMERCIAL

public static final USPSServiceType EXPRESS_HFP_COMMERCIAL

BPM

public static final USPSServiceType BPM

PARCEL

public static final USPSServiceType PARCEL

MEDIA

public static final USPSServiceType MEDIA

LIBRARY

public static final USPSServiceType LIBRARY
Constructor Detail

USPSServiceType

public USPSServiceType()

USPSServiceType

public USPSServiceType(String type,
                       String friendlyType)
Method Detail

getInstance

public static USPSServiceType getInstance(String type)

getInstanceByServiceMethod

public static USPSServiceType getInstanceByServiceMethod(USPSServiceMethod method)

getType

public String getType()
Specified by:
getType in interface org.broadleafcommerce.common.BroadleafEnumerationType

getFriendlyType

public String getFriendlyType()
Specified by:
getFriendlyType in interface org.broadleafcommerce.common.BroadleafEnumerationType

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.