|
EASP API 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents a substitution specified as a replacement of a variable for a value. A Substitution can be used to simply define a variable (by omitting the value), fix a value for a variable (by setting fixed to true), or defining a default value for a variable (by defining a value and setting fixed to false).
| Method Summary | |
String |
getDescription()
Returns the description of the substitution. |
Set |
getRoles()
gets the roles of the Substitution |
String |
getVal()
Returns the value for the Substitution or null if there is no value. |
String[] |
getValVars()
Returns an array of the variable names occuring in the value of the Substitution. |
String |
getVar()
Returns the variable for the substitution. |
boolean |
isFixed()
Returns true if the substitution fixes its variable. |
boolean |
isGrounding()
Returns true if the substitution has no variables in its value. |
String |
toString()
Returns a string representation of this substution which is suitable for input to SubstEngine.createSubstitution(String). |
void |
validate()
Checks the syntax of the substitution |
| Method Detail |
public String getDescription()
public Set getRoles()
throws RuntimeSubstException
RuntimeSubstException - thrown if there is an error in the syntax of the substitution
public String getVal()
throws RuntimeSubstException
RuntimeSubstException - thrown if there is an error in the syntax of the substitution.
public String getVar()
throws RuntimeSubstException
SubstEngine.createSubstitution(String). If you are using
spaces or special characters in your variable names, use SubstEngineFactory.decodeIdentifier(String) to
remove escpaed special characters to put the variable name in a form that is suitable for presentation
to users.
RuntimeSubstException - thrown if there is an error in the syntax of the substitution.public boolean isFixed()
public boolean isGrounding()
throws RuntimeSubstException
RuntimeSubstException - thrown if there is an error in the syntax of the substitution.public String toString()
SubstEngine.createSubstitution(String).
toString in class Object
public String[] getValVars()
throws RuntimeSubstException
getVar()
for further information if you are using variable names containing spaces and other special characters.
RuntimeSubstException - thrown if there is an error in the syntax of the substitution.
public void validate()
throws SubstitutionFormatException
SubstitutionFormatException - thrown if the Substitution is invalid for reasons including lexical
or syntax errors in the string used to construct it, or if literal numbers in the string cannot be represented
by primitive Java data types.
|
EASP API 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||