org.drools.semantics.java
Class ClassObjectType

java.lang.Object
  |
  +--org.drools.semantics.java.ClassObjectType
All Implemented Interfaces:
ObjectType, SemanticComponent

public class ClassObjectType
extends java.lang.Object
implements ObjectType

Java class semantics ObjectType.

Version:
$Id: ClassObjectType.java,v 1.8 2003/03/25 19:47:29 tdiesler Exp $
Author:
bob@werken.com

Constructor Summary
ClassObjectType()
          Construct, partially.
ClassObjectType(java.lang.Class objectTypeClass)
          Construct.
 
Method Summary
 boolean equals(java.lang.Object thatObj)
          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.
 void setType(java.lang.Class objectTypeClass)
          Set the Java object class.
 java.lang.String toString()
          Produce a debug string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassObjectType

public ClassObjectType()
Construct, partially.
See Also:
setType(java.lang.Class)

ClassObjectType

public ClassObjectType(java.lang.Class objectTypeClass)
Construct.
Parameters:
objectTypeClass - Java object class.
Method Detail

setType

public void setType(java.lang.Class objectTypeClass)
Set the Java object class.
Parameters:
objectTypeClass - The Java object class.

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 thatObj)
Determine if another object is equal to this.
Overrides:
equals in class java.lang.Object
Parameters:
thatObj - The object to test.
Returns:
true if thatObj is equal to this, otherwise false.

toString

public java.lang.String toString()
Produce a debug string.
Overrides:
toString in class java.lang.Object
Returns:
The debug string.

hashCode

public int hashCode()
Produce the hash of this object.
Overrides:
hashCode in class java.lang.Object
Returns:
The hash.


Copyright © 2001-2003 The Werken Company. All Rights Reserved.