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() |
Map<String,Object> |
getValueMap(ClassLoader classLoader) |
String[] |
getValueNames() |
String[] |
getValueNames(ClassLoader classLoader) |
Object[] |
getValues() |
Object[] |
getValues(ClassLoader classLoader) |
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 ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic boolean verifyDataType(Object value)
DataTypeverifyDataType in interface DataTypepublic String writeValue(Object value)
writeValue in interface DataTypepublic String getStringType()
DataTypegetStringType in interface DataTypepublic Object[] getValues(ClassLoader classLoader)
public Object[] getValues()
public String[] getValueNames(ClassLoader classLoader)
public String[] getValueNames()
public Map<String,Object> getValueMap(ClassLoader classLoader)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.