org.drools.base
Class ClassObjectType

java.lang.Object
  extended byorg.drools.base.ClassObjectType
All Implemented Interfaces:
ObjectType, java.io.Serializable

public class ClassObjectType
extends java.lang.Object
implements ObjectType

Java class semantics ObjectType.

See Also:
Serialized Form
 

Field Summary
protected  java.lang.Class objectTypeClass
          Java object class.
protected  int valueType
           
 
Constructor Summary
ClassObjectType(java.lang.Class objectTypeClass)
          Construct.
 
Method Summary
 boolean equals(java.lang.Object object)
          Determine if another object is equal to this.
 java.lang.Class getClassType()
          Return the Java object class.
 int getValueType()
           
 int hashCode()
           
 boolean matches(java.lang.Object object)
          Determine if the passed Object belongs to the object type defined by this objectType instance.
protected  void setValueType(java.lang.Class clazz)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

objectTypeClass

protected java.lang.Class objectTypeClass
Java object class.


valueType

protected int valueType
Constructor Detail

ClassObjectType

public ClassObjectType(java.lang.Class objectTypeClass)
Construct.

Parameters:
objectTypeClass - Java object class.
Method Detail

getClassType

public java.lang.Class getClassType()
Return the Java object class.

Returns:
The Java object class.

matches

public boolean matches(java.lang.Object object)
Determine if the passed Object belongs to the object type defined by this objectType instance.

Specified by:
matches in interface ObjectType
Parameters:
object - The Object to test.
Returns:
true if the Object matches this object type, else false.

getValueType

public int getValueType()
Specified by:
getValueType in interface ObjectType

setValueType

protected void setValueType(java.lang.Class clazz)

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object object)
Determine if another object is equal to this.

Parameters:
object - The object to test.
Returns:
true if object is equal to this, otherwise false.

hashCode

public int hashCode()