public static class FolSchematronNode.Arithmetic extends FolSchematronNode
FolSchematronNode.Arithmetic, FolSchematronNode.AttributeNode, FolSchematronNode.BindingContext, FolSchematronNode.ComparisonNode, FolSchematronNode.Empty, FolSchematronNode.Error, FolSchematronNode.IsNullNode, FolSchematronNode.IsTypeOfNode, FolSchematronNode.LiteralNode, FolSchematronNode.Logic, FolSchematronNode.Matches, FolSchematronNode.MessageComment, FolSchematronNode.NotNode, FolSchematronNode.QuantificationNode, FolSchematronNode.VariableNode, FolSchematronNode.XpathFragment, FolSchematronNode.XpathType
BY_REFERENCE, children, INLINE, INLINE_OR_BY_REFERENCE, parent, schemaObject, SIMPLE_TYPE
Constructor and Description |
---|
Arithmetic(FOL2Schematron schemaObject,
String oper)
Ctor
|
Modifier and Type | Method and Description |
---|---|
FolSchematronNode.XpathFragment |
translate(FolSchematronNode.BindingContext ctx)
This compiles a node to an Xpath expression, which realizes the given
arithmetic operation.
|
addChild, containsError, generatingAttribute, hasIdentity, hasSimpleType, hasSimpleType, isAIXMExtension, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased, nodeVariableIsBoundTo, objValueFromVariable
public Arithmetic(FOL2Schematron schemaObject, String oper)
schemaObject
- The schema objectoper
- The operation symbol, one of + ,-, *, /public FolSchematronNode.XpathFragment translate(FolSchematronNode.BindingContext ctx)
This compiles a node to an Xpath expression, which realizes the given arithmetic operation. OCL and Xpath are very similar here.
translate
in class FolSchematronNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.