org.drools.rule
Class Declaration

java.lang.Object
  extended byorg.drools.rule.Declaration
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class Declaration
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

A typed, named variable for Condition evaluation.

See Also:
ObjectType, Condition, Serialized Form
 

Method Summary
 int compareTo(java.lang.Object object)
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getIdentifier()
          Retrieve the variable's identifier.
 int getIndex()
           
 ObjectType getObjectType()
          Retrieve the ObjectType.
 int hashCode()
           
 void setObjectType(ObjectType objectType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getObjectType

public ObjectType getObjectType()
Retrieve the ObjectType.

Returns:
The object-type.

setObjectType

public void setObjectType(ObjectType objectType)

getIdentifier

public java.lang.String getIdentifier()
Retrieve the variable's identifier.

Returns:
The variable's identifier.

getIndex

public int getIndex()

compareTo

public int compareTo(java.lang.Object object)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object object)