com.taggercat.rules
Class Derivation

java.lang.Object
  extended by com.taggercat.rules.Derivation

public class Derivation
extends java.lang.Object

Encapsulates a derivation expression. The derivations are sorted, and managed with the DerivationList class.

 

Constructor Summary
Derivation(java.lang.String propertyName, java.lang.String expression)
           
 
Method Summary
 void addDependent(Derivation dependent)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Set<Derivation> getDependents()
           
 java.lang.String getExpression()
           
 java.lang.String getPropertyName()
           
 java.lang.Object getResult()
           
 int hashCode()
           
 boolean isCompleted()
           
 void setCompleted(boolean completed)
           
 void setDependents(java.util.Set<Derivation> dependents)
           
 void setExpression(java.lang.String expression)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setResult(java.lang.Object result)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Derivation

public Derivation(java.lang.String propertyName,
                  java.lang.String expression)
Method Detail

addDependent

public void addDependent(Derivation dependent)

getDependents

public java.util.Set<Derivation> getDependents()

getExpression

public java.lang.String getExpression()

getPropertyName

public java.lang.String getPropertyName()

getResult

public java.lang.Object getResult()

isCompleted

public boolean isCompleted()

setCompleted

public void setCompleted(boolean completed)

setDependents

public void setDependents(java.util.Set<Derivation> dependents)

setExpression

public void setExpression(java.lang.String expression)

setPropertyName

public void setPropertyName(java.lang.String propertyName)

setResult

public void setResult(java.lang.Object result)

equals

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

hashCode

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

toString

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