站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 3.0.6 API 英文版文档

Declaration - JBoss RULES 3.0.6 API 英文版文档


org.drools.rule
Class Declaration

java.lang.Object
  extended by org.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.
objectType - The type of this variable declaration.
order - The index within a rule.
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()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object