de.interactive_instruments.ShapeChange.TargetHelper
Class XpathConstraintNode.Empty
java.lang.Object
de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode
de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode.Empty
- Enclosing class:
- XpathConstraintNode
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.
Nested classes/interfaces inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XpathConstraintNode.Empty
public XpathConstraintNode.Empty(XpathHelper xpathHelper,
boolean neg)
- Ctor
- Parameters:
xpathHelper
- The schema objectneg
- Flag: isEmpty (false) and notEmpty (true)
translate
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().
- Specified by:
translate
in class XpathConstraintNode
- Parameters:
ctx
- BindingContext this node shall be compiled in
- Returns:
- Object containing the fragment and its operator priority
Copyright © 2015. All rights reserved.