public static class SchematronConstraintNode.Empty extends SchematronConstraintNode
This one stands for the OCL isEmpty() and notEmpty() predicate operations. Which of these is meant is expressed in the state variable negated.
SchematronConstraintNode.AllInstances, SchematronConstraintNode.Arithmetic, SchematronConstraintNode.Attribute, SchematronConstraintNode.BindingContext, SchematronConstraintNode.Cast, SchematronConstraintNode.ChangeCase, SchematronConstraintNode.Comparison, SchematronConstraintNode.Concatenate, SchematronConstraintNode.Empty, SchematronConstraintNode.Error, SchematronConstraintNode.Exists, SchematronConstraintNode.IfThenElse, SchematronConstraintNode.KindOf, SchematronConstraintNode.Let, SchematronConstraintNode.Literal, SchematronConstraintNode.Logic, SchematronConstraintNode.Matches, SchematronConstraintNode.MessageComment, SchematronConstraintNode.Select, SchematronConstraintNode.Size, SchematronConstraintNode.Substring, SchematronConstraintNode.Unique, SchematronConstraintNode.Variable, SchematronConstraintNode.XpathFragment, SchematronConstraintNode.XpathType
children, negated, parent, schemaObject
Constructor and Description |
---|
Empty(SchematronSchema schemaObject,
boolean neg)
Ctor
|
Modifier and Type | Method and Description |
---|---|
SchematronConstraintNode.XpathFragment |
translate(SchematronConstraintNode.BindingContext ctx)
This compiles the node and its children to an Xpath fragment.
|
addChild, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased, nodeVariableIsBoundTo
public Empty(SchematronSchema schemaObject, boolean neg)
schemaObject
- The schema objectneg
- Flag: isEmpty (false) and notEmpty (true)public SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.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 SchematronConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.