|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.nrl.parser.operators.PropertyAwareObject
net.sourceforge.nrl.parser.operators.Operators
public class Operators
A basic implementation of an operator collection.
| Field Summary | |
|---|---|
static String |
DOCUMENTATION_CHANGED
Event - documentation changed. |
static String |
MODEL_FILE_NAMES_CHANGED
Event - model file name list changed. |
static String |
OPERATOR_LIST_CHANGED
Event - operator list changed. |
| Fields inherited from class net.sourceforge.nrl.parser.operators.PropertyAwareObject |
|---|
listeners |
| Constructor Summary | |
|---|---|
Operators()
|
|
| Method Summary | |
|---|---|
void |
addModelFileName(String fileName)
|
void |
addOperator(IOperator operator)
Add an operator to the end of the list. |
void |
addOperator(IOperator operator,
IOperator before)
Add an operator before another one |
void |
clear()
|
String |
getDocumentation()
Return the operator documentation, may be null. |
List<String> |
getModelFileNames()
The list of referenced models. |
IOperator |
getOperator(String name)
Get an operator by name. |
List<IOperator> |
getOperators()
Return all operators in this collection. |
void |
removeModelFileName(String fileName)
|
void |
removeOperator(IOperator operator)
|
List<NRLError> |
resolveModelReferences(IModelCollection models)
Resolve all parameter type and return type references against models. |
void |
setDocumentation(String documentation)
|
| Methods inherited from class net.sourceforge.nrl.parser.operators.PropertyAwareObject |
|---|
addPropertyChangeListener, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DOCUMENTATION_CHANGED
public static final String MODEL_FILE_NAMES_CHANGED
public static final String OPERATOR_LIST_CHANGED
| Constructor Detail |
|---|
public Operators()
| Method Detail |
|---|
public void addModelFileName(String fileName)
public void addOperator(IOperator operator)
operator - the operator
public void addOperator(IOperator operator,
IOperator before)
operator - operator to addbefore - operator to add before. If this is null or not in the list, then
"operator" is added at the frontpublic void clear()
public String getDocumentation()
IOperators
getDocumentation in interface IOperatorspublic List<String> getModelFileNames()
IOperators
getModelFileNames in interface IOperatorspublic IOperator getOperator(String name)
IOperators
getOperator in interface IOperatorsname - the name
public List<IOperator> getOperators()
IOperators
getOperators in interface IOperatorsIOperator.public void removeModelFileName(String fileName)
public void removeOperator(IOperator operator)
public List<NRLError> resolveModelReferences(IModelCollection models)
IOperators
resolveModelReferences in interface IOperatorsmodels - the models
public void setDocumentation(String documentation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||