public static class XpathConstraintNode.Empty extends XpathConstraintNode
This one stands for the OCL isEmpty() and notEmpty() predicate operations. Which of these is meant is expressed in the state variable negated.
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 |
---|
Empty(XpathHelper xpathHelper,
boolean neg)
Ctor
|
Modifier and Type | Method and Description |
---|---|
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.BindingContext ctx)
This compiles the node and its children to an Xpath fragment.
|
addChild, bindsVariable, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased
public Empty(XpathHelper xpathHelper, boolean neg)
xpathHelper
- The schema objectneg
- Flag: isEmpty (false) and notEmpty (true)public XpathConstraintNode.XpathFragment translate(XpathConstraintNode.BindingContext ctx)
This compiles the node and its children to an Xpath fragment. The translation is essentially the nodeset derived from the object part of the expression, because notEmpty() is fulfilled for a nodeset, which converts to a boolean true. isEmpty() requires an additional not().
translate
in class XpathConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.