org.broadleafcommerce.core.catalog.domain
Class RelatedProductTypeEnum

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.domain.RelatedProductTypeEnum
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class RelatedProductTypeEnum
extends Object
implements Serializable, BroadleafEnumerationType

Extensible enumeration indicating types of product relations such as upsell, crosssell, or featured. Created by bpolster.

See Also:
Serialized Form

Field Summary
static RelatedProductTypeEnum CROSS_SALE
           
static RelatedProductTypeEnum FEATURED
           
static RelatedProductTypeEnum UP_SALE
           
 
Constructor Summary
RelatedProductTypeEnum()
           
RelatedProductTypeEnum(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static RelatedProductTypeEnum getInstance(String type)
           
 String getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURED

public static final RelatedProductTypeEnum FEATURED

UP_SALE

public static final RelatedProductTypeEnum UP_SALE

CROSS_SALE

public static final RelatedProductTypeEnum CROSS_SALE
Constructor Detail

RelatedProductTypeEnum

public RelatedProductTypeEnum()

RelatedProductTypeEnum

public RelatedProductTypeEnum(String type,
                              String friendlyType)
Method Detail

getInstance

public static RelatedProductTypeEnum getInstance(String type)

getType

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

getFriendlyType

public String getFriendlyType()
Specified by:
getFriendlyType in interface 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.