org.drools.semantics.base
Class ClassObjectType

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

public class ClassObjectType
extends Object
implements ObjectType

Java class semantics ObjectType.

Version:
$Id: ClassObjectType.java,v 1.1 2004/10/25 21:34:41 mproctor Exp $
Author:
bob@werken.com
See Also:
Serialized Form

Constructor Summary
ClassObjectType(Class objectTypeClass)
          Construct.
 
Method Summary
 boolean equals(Object thatObj)
          Determine if another object is equal to this.
 Class getType()
          Return the Java object class.
 int hashCode()
          Produce the hash of this object.
 boolean matches(Object object)
          Determine if the passed Object belongs to the object type defined by this objectType instance.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassObjectType

public ClassObjectType(Class objectTypeClass)
Construct.

Parameters:
objectTypeClass - Java object class.
Method Detail

getType

public Class getType()
Return the Java object class.

Returns:
The Java object class.

matches

public boolean matches(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(Object thatObj)
Determine if another object is equal to this.

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

hashCode

public int hashCode()
Produce the hash of this object.

Returns:
The hash.

toString

public String toString()


Copyright © 2001-2004 The Codehaus. All Rights Reserved.