public static class SchematronConstraintNode.Let 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 |
---|
Let(SchematronSchema schemaObject,
OclNode.Declaration[] vardecls)
Ctor
|
Modifier and Type | Method and Description |
---|---|
SchematronConstraintNode |
nodeVariableIsBoundTo(OclNode.Declaration vardecl)
This method determines whether the Let 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 Let(SchematronSchema schemaObject, OclNode.Declaration[] vardecls)
schemaObject
- The schema objectvardecl
- OclNode.Declaration objectpublic 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 defined binding variables bearing values given by expressions. The variables define the context for the compilation of the body, however this is not represented in the BindingContext, because the method of fetching the variables is completely different than with iterator variables.
translate
in class SchematronConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2018. All rights reserved.