Class ObjectDataType
- java.lang.Object
-
- org.jbpm.process.core.datatype.impl.type.ObjectDataType
-
- All Implemented Interfaces:
Externalizable
,Serializable
,DataType
- Direct Known Subclasses:
ListDataType
public class ObjectDataType extends Object implements DataType
Representation of an object datatype.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectDataType()
ObjectDataType(String className)
ObjectDataType(String className, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
String
getClassName()
String
getStringType()
Returns the corresponding Java type of this datatypevoid
readExternal(ObjectInput in)
Object
readValue(String value)
void
setClassLoader(ClassLoader classLoader)
void
setClassName(String className)
Object
valueOf(String value)
Tries to convert string parameter to an object of this typeboolean
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)
-
-
-
Constructor Detail
-
ObjectDataType
public ObjectDataType()
-
ObjectDataType
public ObjectDataType(String className)
-
ObjectDataType
public ObjectDataType(String className, ClassLoader classLoader)
-
-
Method Detail
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
getClassLoader
public ClassLoader getClassLoader()
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
verifyDataType
public boolean verifyDataType(Object value)
Description copied from interface:DataType
Returns true if the given value is a valid value of this data type.- Specified by:
verifyDataType
in interfaceDataType
-
valueOf
public Object valueOf(String value)
Description copied from interface:DataType
Tries to convert string parameter to an object of this type
-
writeValue
public String writeValue(Object value)
- Specified by:
writeValue
in interfaceDataType
-
getStringType
public String getStringType()
Description copied from interface:DataType
Returns the corresponding Java type of this datatype- Specified by:
getStringType
in interfaceDataType
-
-