org.drools.semantics.base
Class ClassFieldObjectType

java.lang.Object
  extended by org.drools.semantics.base.ClassObjectType
      extended by org.drools.semantics.base.ClassFieldObjectType
All Implemented Interfaces:
java.io.Serializable, ObjectType, RuleComponent

public class ClassFieldObjectType
extends ClassObjectType
implements ObjectType

Java class semantics ObjectType.

See Also:
Serialized Form

Constructor Summary
ClassFieldObjectType(java.lang.Class objectTypeClass, java.lang.String fieldName, java.lang.String fieldValue)
          Construct.
 
Method Summary
 boolean equals(java.lang.Object object)
          Determine if another object is equal to this.
 java.lang.String getFieldName()
          Return the Java object class.
 java.lang.String getFieldValue()
          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 org.drools.semantics.base.ClassObjectType
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassFieldObjectType

public ClassFieldObjectType(java.lang.Class objectTypeClass,
                            java.lang.String fieldName,
                            java.lang.String fieldValue)
Construct.

Parameters:
objectTypeClass - Java object class.
Method Detail

getFieldName

public java.lang.String getFieldName()
Return the Java object class.

Returns:
The Java object class.

getFieldValue

public java.lang.String getFieldValue()
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
Overrides:
matches in class ClassObjectType
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.

Overrides:
equals in class ClassObjectType
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.

Overrides:
hashCode in class ClassObjectType
Returns:
The hash.

toString

public java.lang.String toString()
Overrides:
toString in class ClassObjectType