org.broadleafcommerce.core.catalog.service.type
Class ProductOptionType

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.service.type.ProductOptionType
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class ProductOptionType
extends Object
implements Serializable, BroadleafEnumerationType

An extendible enumeration of product option types.

Author:
jfischer
See Also:
Serialized Form

Field Summary
static ProductOptionType BOOLEAN
           
static ProductOptionType COLOR
           
static ProductOptionType DATE
           
static ProductOptionType DECIMAL
           
static ProductOptionType INPUT
           
static ProductOptionType INTEGER
           
static ProductOptionType PRODUCT
           
static ProductOptionType SIZE
           
static ProductOptionType TEXT
           
 
Constructor Summary
ProductOptionType()
           
ProductOptionType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static ProductOptionType 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

COLOR

public static final ProductOptionType COLOR

SIZE

public static final ProductOptionType SIZE

DATE

public static final ProductOptionType DATE

TEXT

public static final ProductOptionType TEXT

BOOLEAN

public static final ProductOptionType BOOLEAN

DECIMAL

public static final ProductOptionType DECIMAL

INTEGER

public static final ProductOptionType INTEGER

INPUT

public static final ProductOptionType INPUT

PRODUCT

public static final ProductOptionType PRODUCT
Constructor Detail

ProductOptionType

public ProductOptionType()

ProductOptionType

public ProductOptionType(String type,
                         String friendlyType)
Method Detail

getInstance

public static ProductOptionType 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 © 2013. All Rights Reserved.