org.drools.semantics.base
Class ClassObjectType

java.lang.Object
  extended byorg.drools.semantics.base.ClassObjectType
All Implemented Interfaces:
ObjectType, SemanticComponent, java.io.Serializable
Direct Known Subclasses:
ClassFieldObjectType

public class ClassObjectType
extends java.lang.Object
implements ObjectType

Java class semantics ObjectType.

See Also:
Serialized Form
 

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 getType()
          Return the Java object class.
 int hashCode()
          Produce the hash of this object.
 boolean matches(java.lang.Object object)
          Determine if the passed Object belongs to the object type defined by this objectType instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassObjectType

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

Parameters:
objectTypeClass - Java object class.
Method Detail

getType

public java.lang.Class getType()
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.

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()
Produce the hash of this object.

Returns:
The hash.

toString

public java.lang.String toString()