public static class XpathConstraintNode.Comparison extends XpathConstraintNode
This class stands for comparisons. The operator is given as a String, which can take the values: =, <>, <, <=, >, >=.
XpathConstraintNode.AllInstances, XpathConstraintNode.Arithmetic, XpathConstraintNode.Attribute, XpathConstraintNode.BindingContext, XpathConstraintNode.Cast, XpathConstraintNode.ChangeCase, XpathConstraintNode.Comparison, XpathConstraintNode.Concatenate, XpathConstraintNode.Empty, XpathConstraintNode.Error, XpathConstraintNode.Exists, XpathConstraintNode.IfThenElse, XpathConstraintNode.KindOf, XpathConstraintNode.Literal, XpathConstraintNode.Logic, XpathConstraintNode.Matches, XpathConstraintNode.MessageComment, XpathConstraintNode.Select, XpathConstraintNode.Size, XpathConstraintNode.Substring, XpathConstraintNode.Unique, XpathConstraintNode.Variable, XpathConstraintNode.XpathFragment, XpathConstraintNode.XpathType
children, negated, parent, xpathHelper
Constructor and Description |
---|
Comparison(XpathHelper xpathHelper,
String name)
Ctor
|
Modifier and Type | Method and Description |
---|---|
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.BindingContext ctx)
This compiles the node and its children to Xpath.
|
addChild, bindsVariable, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased
public Comparison(XpathHelper xpathHelper, String name)
xpathHelper
- The schema objectname
- One of =, <>, <, <=, >, >=public XpathConstraintNode.XpathFragment translate(XpathConstraintNode.BindingContext ctx)
This compiles the node and its children to Xpath. Xpath can express all required comparison operators.
translate
in class XpathConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2018. All rights reserved.