org.drools.rule
Class Declaration

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

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

See Also:
Serialized Form
 

Constructor Summary
Declaration(java.lang.String identifier, Extractor extractor, int column)
          Construct.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int getColumn()
          Returns the index of the column
 Extractor getExtractor()
          Returns the Extractor expression
 java.lang.String getIdentifier()
          Retrieve the variable's identifier.
 ObjectType getObjectType()
          Retrieve the ObjectType.
 java.lang.Object getValue(java.lang.Object object)
           
 int hashCode()
           
 void setColumn(int column)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Declaration

public Declaration(java.lang.String identifier,
                   Extractor extractor,
                   int column)
Construct.

Parameters:
identifier - The name of the variable.
Method Detail

getIdentifier

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

Returns:
The variable's identifier.

getObjectType

public ObjectType getObjectType()
Retrieve the ObjectType.

Returns:
The object-type.

getColumn

public int getColumn()
Returns the index of the column

Returns:
the column

setColumn

public void setColumn(int column)

getExtractor

public Extractor getExtractor()
Returns the Extractor expression

Returns:

getValue

public java.lang.Object getValue(java.lang.Object object)

toString

public java.lang.String toString()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object object)