Class EnumDataType
- java.lang.Object
-
- org.jbpm.process.core.datatype.impl.type.EnumDataType
-
- All Implemented Interfaces:
Externalizable,Serializable,DataType
public class EnumDataType extends Object implements DataType
Representation of an Enum datatype.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumDataType()EnumDataType(String className)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()StringgetStringType()Returns the corresponding Java type of this datatypeMap<String,Object>getValueMap()Map<String,Object>getValueMap(ClassLoader classLoader)String[]getValueNames()String[]getValueNames(ClassLoader classLoader)Object[]getValues()Object[]getValues(ClassLoader classLoader)voidreadExternal(ObjectInput in)ObjectreadValue(String value)voidsetClassName(String className)ObjectvalueOf(String value)Tries to convert string parameter to an object of this typebooleanverifyDataType(Object value)Returns true if the given value is a valid value of this data type.voidwriteExternal(ObjectOutput out)StringwriteValue(Object value)
-
-
-
Constructor Detail
-
EnumDataType
public EnumDataType()
-
EnumDataType
public EnumDataType(String className)
-
-
Method Detail
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
verifyDataType
public boolean verifyDataType(Object value)
Description copied from interface:DataTypeReturns true if the given value is a valid value of this data type.- Specified by:
verifyDataTypein interfaceDataType
-
writeValue
public String writeValue(Object value)
- Specified by:
writeValuein interfaceDataType
-
getStringType
public String getStringType()
Description copied from interface:DataTypeReturns the corresponding Java type of this datatype- Specified by:
getStringTypein interfaceDataType
-
getValues
public Object[] getValues(ClassLoader classLoader)
-
getValues
public Object[] getValues()
-
getValueNames
public String[] getValueNames(ClassLoader classLoader)
-
getValueNames
public String[] getValueNames()
-
getValueMap
public Map<String,Object> getValueMap(ClassLoader classLoader)
-
-