Package generic.constraint

# Class DecisionNode<T>

java.lang.Object
generic.constraint.DecisionNode<T>

Type Parameters:
  `T` - the type of objects that the constraint operates on.

Direct Known Subclasses:
  `RootDecisionNode`

public class DecisionNode<T> extends Object
A node in a decision tree. Each node contains exactly one constraint and a map of property values.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DecisionNode(Constraint<T> constraint, DecisionNode<T> parent)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected List<String>`
  `getDecisionPath()`
  `DecisionNode<T>`
  `getOrCreateNodeForContraint(Constraint<T> newConstraint)`
  `boolean`
  `populateDecisions(T t, DecisionSet decisionSet, String propertyName)`
  `void`
  `setProperty(String propertyName, String value, String source)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### DecisionNode

    public DecisionNode(Constraint<T> constraint, DecisionNode<T> parent)

- ## Method Details

  - ### getOrCreateNodeForContraint

    public DecisionNode<T> getOrCreateNodeForContraint(Constraint<T> newConstraint)

  - ### setProperty

    public void setProperty(String propertyName, String value, String source) throws XmlParseException
    Throws:
      `XmlParseException`

  - ### populateDecisions

    public boolean populateDecisions(T t, DecisionSet decisionSet, String propertyName)

  - ### getDecisionPath

    protected List<String> getDecisionPath()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`