public static class FolSchematronNode.ComparisonNode extends FolSchematronNode
This class stands for comparisons. The operator is given as a String, which can take the values: =, <>, <, <=, >, >=.
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 |
---|
ComparisonNode(FOL2Schematron schemaObject,
String name)
Ctor
|
Modifier and Type | Method and Description |
---|---|
FolSchematronNode.XpathFragment |
translate(FolSchematronNode.BindingContext ctx)
This compiles the node and its children to Xpath.
|
addChild, containsError, generatingAttribute, hasIdentity, hasSimpleType, hasSimpleType, isAIXMExtension, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased, nodeVariableIsBoundTo, objValueFromVariable
public ComparisonNode(FOL2Schematron schemaObject, String name)
schemaObject
- The schema objectname
- One of =, <>, <, <=, >, >=public FolSchematronNode.XpathFragment translate(FolSchematronNode.BindingContext ctx)
This compiles the node and its children to Xpath. Xpath can express all required comparison operators.
translate
in class FolSchematronNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.