public class EnumDataType extends Object implements DataType
Constructor and Description |
---|
EnumDataType() |
EnumDataType(String className) |
Modifier and Type | Method and Description |
---|---|
String |
getClassName() |
String |
getStringType()
Returns the corresponding Java type of this datatype
|
Map<String,Object> |
getValueMap() |
String[] |
getValueNames() |
Object[] |
getValues() |
void |
readExternal(ObjectInput in) |
Object |
readValue(String value) |
void |
setClassName(String className) |
boolean |
verifyDataType(Object value)
Returns true if the given value is a valid value of this data type.
|
void |
writeExternal(ObjectOutput out) |
String |
writeValue(Object value) |
public EnumDataType()
public EnumDataType(String className)
public String getClassName()
public void setClassName(String className)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public boolean verifyDataType(Object value)
DataType
verifyDataType
in interface DataType
public String writeValue(Object value)
writeValue
in interface DataType
public String getStringType()
DataType
getStringType
in interface DataType
public Object[] getValues()
public String[] getValueNames()
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.