com.jaxfront.core.jep
Class NodeLabel
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
com.jaxfront.core.jep.JaxfrontMathCommand
com.jaxfront.core.jep.SuperTypeNode
com.jaxfront.core.jep.NodeLabel
- All Implemented Interfaces:
- org.nfunk.jep.function.PostfixMathCommandI
public class NodeLabel
- extends SuperTypeNode
This class represents a function that returns the label text (including NLS
translation) for a type that is adressed by the given xpath expression. If
the addressed type is complex, this function will return its caption title as
complex types do not have any labels. If a complex type belongs to a choice
selection, its specified choice label can be retrieved by using the
additional flag "boolean getChoiceLabel".
Example: nodeLabel(choosenNode(".")) would return the label of the type if it
is a SimpleType, if it is a ComplexType its caption title will be returned.
Example: nodeLabel(choosenNode("."), true) would return the choice label for
the choosen type if it is a ComplexType. SimpleTypes don't have choice
labels.
- Version:
- 1.60
Constructor Summary |
NodeLabel()
Default constructor. |
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand |
getNumberOfParameters, getRootNode, run, setCurNumberOfParameters |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeLabel
public NodeLabel()
- Default constructor.
run
public void run(MathEvaluator.MathCommunicator communicator,
java.util.Stack stack)
throws org.nfunk.jep.ParseException
- Specified by:
run
in class JaxfrontMathCommand
- Throws:
org.nfunk.jep.ParseException
- See Also:
org.nfunk.jep.function.PostfixMathCommandI#run(Stack)