public class DynamicSupportedFieldType extends Object implements Serializable, BroadleafEnumerationType
SupportedFieldType and will
throw an exception if a non-matching type is added.| Modifier and Type | Field and Description |
|---|---|
static DynamicSupportedFieldType |
COLOR |
static DynamicSupportedFieldType |
HTML |
static DynamicSupportedFieldType |
MONEY |
static DynamicSupportedFieldType |
STRING |
| Constructor and Description |
|---|
DynamicSupportedFieldType() |
DynamicSupportedFieldType(String type,
String friendlyType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFriendlyType() |
static DynamicSupportedFieldType |
getInstance(String type) |
String |
getType() |
static List<DynamicSupportedFieldType> |
getTypes() |
int |
hashCode() |
static void |
verifyLegalType(String type) |
public static final DynamicSupportedFieldType STRING
public static final DynamicSupportedFieldType HTML
public static final DynamicSupportedFieldType MONEY
public static final DynamicSupportedFieldType COLOR
public static DynamicSupportedFieldType getInstance(String type)
public static void verifyLegalType(String type)
type - IllegalArgumentException - when the given type does not exist in SupportedFieldTypepublic static List<DynamicSupportedFieldType> getTypes()
DynamicSupportedFieldTypes.public String getType()
getType in interface BroadleafEnumerationTypepublic String getFriendlyType()
getFriendlyType in interface BroadleafEnumerationTypeCopyright © 2014. All Rights Reserved.