org.broadleafcommerce.core.offer.service.type
Class OfferType

java.lang.Object
  extended by org.broadleafcommerce.core.offer.service.type.OfferType
All Implemented Interfaces:
Serializable, Comparable<OfferType>, BroadleafEnumerationType

public class OfferType
extends Object
implements Serializable, BroadleafEnumerationType, Comparable<OfferType>

An extendible enumeration of offer types.

See Also:
Serialized Form

Field Summary
static OfferType FULFILLMENT_GROUP
           
static OfferType ORDER
           
static OfferType ORDER_ITEM
           
 
Constructor Summary
OfferType()
           
OfferType(String type, String friendlyType, int order)
           
 
Method Summary
 int compareTo(OfferType arg0)
           
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static OfferType getInstance(String type)
           
 int getOrder()
           
 String getType()
           
 int hashCode()
           
 void setOrder(int order)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDER_ITEM

public static final OfferType ORDER_ITEM

ORDER

public static final OfferType ORDER

FULFILLMENT_GROUP

public static final OfferType FULFILLMENT_GROUP
Constructor Detail

OfferType

public OfferType()

OfferType

public OfferType(String type,
                 String friendlyType,
                 int order)
Method Detail

getInstance

public static OfferType getInstance(String type)

setType

public void setType(String type)

getType

public String getType()
Specified by:
getType in interface BroadleafEnumerationType

getFriendlyType

public String getFriendlyType()
Specified by:
getFriendlyType in interface BroadleafEnumerationType

getOrder

public int getOrder()

setOrder

public void setOrder(int order)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

compareTo

public int compareTo(OfferType arg0)
Specified by:
compareTo in interface Comparable<OfferType>


Copyright © 2013. All Rights Reserved.