public enum PropertyType extends java.lang.Enum<PropertyType>
Enum Constant and Description |
---|
PT_BOOLEAN |
PT_INTEGER |
PT_LONG |
PT_STRING |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
convert(java.lang.String value,
PropertyType toType)
Converts an String to an object whose type is that specified in the
PropertyType
|
static java.lang.Class<?> |
getClassFromType(PropertyType type)
Returns a native java class equivalent of a PropertyType
|
static javax.management.openmbean.OpenType<?> |
getOpenType(PropertyType type)
Returns an OpenType equivalent of a PropertyType for use in
MBeanAttributeInfo, etc
|
static PropertyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PropertyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyType PT_STRING
public static final PropertyType PT_INTEGER
public static final PropertyType PT_BOOLEAN
public static final PropertyType PT_LONG
public static PropertyType[] values()
for (PropertyType c : PropertyType.values()) System.out.println(c);
public static PropertyType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static javax.management.openmbean.OpenType<?> getOpenType(PropertyType type)
type
- public static java.lang.Class<?> getClassFromType(PropertyType type)
type
- public static java.lang.Object convert(java.lang.String value, PropertyType toType)
value
- The string to converttoType
- The type to convert to