public enum BackendPropertyType extends Enum<BackendPropertyType>
| Enum Constant and Description |
|---|
BOOLEAN |
BOOLEAN_ARRAY |
CHARACTER |
CHARACTER_ARRAY |
DOUBLE |
DOUBLE_ARRAY |
FLOAT |
FLOAT_ARRAY |
INTEGER |
INTEGER_ARRAY |
LONG |
LONG_ARRAY |
STRING |
STRING_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
static BackendPropertyType |
fromCls(Class<?> cls) |
Class<?> |
getCls() |
static boolean |
isAllowed(Class<?> cls) |
abstract boolean |
isInstance(Object val) |
abstract Object |
parse(String propertyName,
String value) |
void |
parseProperty(BackendInstanceSpec instanceSpec,
BackendPropertySpec propertySpec,
String value) |
void |
setProperty(BackendInstanceSpec instanceSpec,
BackendPropertySpec propertySpec,
Object value) |
static BackendPropertyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackendPropertyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackendPropertyType STRING
public static final BackendPropertyType BOOLEAN
public static final BackendPropertyType INTEGER
public static final BackendPropertyType LONG
public static final BackendPropertyType FLOAT
public static final BackendPropertyType DOUBLE
public static final BackendPropertyType CHARACTER
public static final BackendPropertyType STRING_ARRAY
public static final BackendPropertyType DOUBLE_ARRAY
public static final BackendPropertyType FLOAT_ARRAY
public static final BackendPropertyType INTEGER_ARRAY
public static final BackendPropertyType LONG_ARRAY
public static final BackendPropertyType BOOLEAN_ARRAY
public static final BackendPropertyType CHARACTER_ARRAY
public static BackendPropertyType[] values()
for (BackendPropertyType c : BackendPropertyType.values()) System.out.println(c);
public static BackendPropertyType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static BackendPropertyType fromCls(Class<?> cls)
public static boolean isAllowed(Class<?> cls)
public abstract boolean isInstance(Object val)
public Class<?> getCls()
public abstract Object parse(String propertyName, String value) throws InvalidPropertyValueException
InvalidPropertyValueExceptionpublic void setProperty(BackendInstanceSpec instanceSpec, BackendPropertySpec propertySpec, Object value) throws InvalidPropertyValueException
InvalidPropertyValueExceptionpublic void parseProperty(BackendInstanceSpec instanceSpec, BackendPropertySpec propertySpec, String value) throws InvalidPropertyValueException
InvalidPropertyValueExceptionCopyright © 2012–2018 Emory University. All rights reserved.