Package jmri.jmrit.symbolicprog
Class QualifierAdder
- java.lang.Object
-
- jmri.jmrit.symbolicprog.QualifierAdder
-
public abstract class QualifierAdder extends java.lang.Object
Abstract base for adding qualifiers to objects- See Also:
Qualifier
,ArithmeticQualifier
,PaneProgFrame
-
-
Constructor Summary
Constructors Constructor Description QualifierAdder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addListener(java.beans.PropertyChangeListener qc)
protected abstract Qualifier
createQualifier(VariableValue var, java.lang.String relation, java.lang.String value)
Invoked to create the qualifier object and connect as needed.(package private) void
processElement(org.jdom2.Element q, java.util.ArrayList<Qualifier> lq, VariableTableModel model)
(package private) void
processList(java.util.List<org.jdom2.Element> le, java.util.ArrayList<Qualifier> lq, VariableTableModel model)
void
processModifierElements(org.jdom2.Element e, VariableTableModel model)
-
-
-
Constructor Detail
-
QualifierAdder
public QualifierAdder()
-
-
Method Detail
-
createQualifier
protected abstract Qualifier createQualifier(VariableValue var, java.lang.String relation, java.lang.String value)
Invoked to create the qualifier object and connect as needed. If extra state is needed, provide it via the subclass constructor.- Parameters:
var
- The variable that qualifies this, e.g. the one that's watchedrelation
- The relation term from the qualifier definition, e.g. greater thanvalue
- The value for the comparison- Returns:
- the new Qualifier object for this request.
-
addListener
protected abstract void addListener(java.beans.PropertyChangeListener qc)
-
processModifierElements
public void processModifierElements(org.jdom2.Element e, VariableTableModel model)
-
processList
void processList(java.util.List<org.jdom2.Element> le, java.util.ArrayList<Qualifier> lq, VariableTableModel model)
-
processElement
void processElement(org.jdom2.Element q, java.util.ArrayList<Qualifier> lq, VariableTableModel model)
-
-