org.aitools.programd.multiplexor
Class PredicateInfo

java.lang.Object
  extended by org.aitools.programd.multiplexor.PredicateInfo

public class PredicateInfo
extends java.lang.Object

A very simple data class that describes a predicate.


Field Summary
private  java.lang.String defaultValue
          The default value of the predicate.
private  boolean returnNameWhenSet
          Whether the predicate should return its name, or its newly-set value, when set.
 
Constructor Summary
PredicateInfo(java.lang.String predicateName, java.lang.String defaultPredicateValue, boolean returnNameSetting)
          Creates a new PredicateInfo.
 
Method Summary
 java.lang.String getDefaultValue()
           
 boolean returnNameWhenSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultValue

private java.lang.String defaultValue
The default value of the predicate.


returnNameWhenSet

private boolean returnNameWhenSet
Whether the predicate should return its name, or its newly-set value, when set.

Constructor Detail

PredicateInfo

public PredicateInfo(java.lang.String predicateName,
                     java.lang.String defaultPredicateValue,
                     boolean returnNameSetting)
Creates a new PredicateInfo.

Parameters:
predicateName - the predicate name
defaultPredicateValue - the default predicate value
returnNameSetting - whether to return the name when setting the predicate
Method Detail

getDefaultValue

public java.lang.String getDefaultValue()
Returns:
the default value

returnNameWhenSet

public boolean returnNameWhenSet()
Returns:
whether the predicate is supposed to return its name when set