public static class SchematronConstraintNode.Exists extends SchematronConstraintNode
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 |
---|
Exists(SchematronSchema schemaObject,
OclNode.Declaration vardecl,
boolean neg)
Ctor
|
Modifier and Type | Method and Description |
---|---|
SchematronConstraintNode |
nodeVariableIsBoundTo(OclNode.Declaration vardecl)
This method determines whether the Exists binds the given variable
declaration and if it does, which is the expression the variable is
bound to.
|
SchematronConstraintNode.XpathFragment |
translate(SchematronConstraintNode.BindingContext ctx)
This compiles the node and its children to an Xpath expression
fragment.
|
addChild, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased
public Exists(SchematronSchema schemaObject, OclNode.Declaration vardecl, boolean neg)
schemaObject
- The schema objectvardecl
- OclNode.Declaration objectneg
- Negation flagpublic SchematronConstraintNode nodeVariableIsBoundTo(OclNode.Declaration vardecl)
nodeVariableIsBoundTo
in class SchematronConstraintNode
vardecl
- The variable Declaration objectpublic SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.BindingContext ctx)
This compiles the node and its children to an Xpath expression fragment.
The object is translated in the given context and its ending position, supplemented by the binding variable, defines the context for the compilation of the body, which is appended as a predicate bracket. If negated an additional not() is applied.
translate
in class SchematronConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.