org.drools.process.core.datatype.impl.type
Class ListDataType

java.lang.Object
  extended by org.drools.process.core.datatype.impl.type.ObjectDataType
      extended by org.drools.process.core.datatype.impl.type.ListDataType
All Implemented Interfaces:
Externalizable, Serializable, DataType, TypeObject

public class ListDataType
extends ObjectDataType
implements TypeObject

Representation of a list datatype. All elements in the list must have the same datatype.

See Also:
Serialized Form

Constructor Summary
ListDataType()
           
ListDataType(DataType dataType)
           
 
Method Summary
 DataType getType()
           
 void readExternal(ObjectInput in)
           
 void setType(DataType dataType)
           
 boolean verifyDataType(Object value)
          Returns true if the given value is a valid value of this data type.
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.process.core.datatype.impl.type.ObjectDataType
getClassName, getStringType, readValue, setClassName, writeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDataType

public ListDataType()

ListDataType

public ListDataType(DataType dataType)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class ObjectDataType
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class ObjectDataType
Throws:
IOException

setType

public void setType(DataType dataType)
Specified by:
setType in interface TypeObject

getType

public DataType getType()
Specified by:
getType in interface TypeObject

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 interface DataType
Overrides:
verifyDataType in class ObjectDataType


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.