public static class SchematronConstraintNode.Select 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
Modifier and Type | Field and Description |
---|---|
protected SchematronConstraintNode |
generatorBody |
protected OclNode.Declaration |
vardecl |
children, negated, parent, schemaObject
Constructor and Description |
---|
Select(SchematronSchema schemaObject,
OclNode.Declaration vardecl)
Ctor
|
Modifier and Type | Method and Description |
---|---|
SchematronConstraintNode.Attribute |
generatingAttribute()
By means of this function you can inquire which Attribute node is
generating the objects of this Select node if any.
|
boolean |
hasIdentity()
This predicate finds out whether the Select results in a
collection of instances, which conceptually have identity.
|
boolean |
hasSimpleType()
This predicate finds out whether the Select results in a simple
XML schema type.
|
boolean |
isMultiple()
The value of Select is always a set.
|
SchematronConstraintNode |
nodeVariableIsBoundTo(OclNode.Declaration vardecl)
This method determines whether the Select 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 Select node and its children to an Xpath
expression fragment.
|
addChild, containsError, isAndOrLogic, isDependentOn, isVarOrAttribBased
protected OclNode.Declaration vardecl
protected SchematronConstraintNode generatorBody
public Select(SchematronSchema schemaObject, OclNode.Declaration vardecl)
schemaObject
- The schema objectvardecl
- OclNode.Declaration objectpublic SchematronConstraintNode nodeVariableIsBoundTo(OclNode.Declaration vardecl)
nodeVariableIsBoundTo
in class SchematronConstraintNode
vardecl
- The variable Declaration objectpublic SchematronConstraintNode.Attribute generatingAttribute()
By means of this function you can inquire which Attribute node is generating the objects of this Select node if any.
generatingAttribute
in class SchematronConstraintNode
public boolean isMultiple()
The value of Select is always a set.
isMultiple
in class SchematronConstraintNode
public boolean hasSimpleType()
This predicate finds out whether the Select results in a simple XML schema type.
hasSimpleType
in class SchematronConstraintNode
public boolean hasIdentity()
This predicate finds out whether the Select results in a collection of instances, which conceptually have identity.
hasIdentity
in class SchematronConstraintNode
public SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.BindingContext ctx)
This compiles the Select 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. Note that Select is very similar to Exists - the only diffence being that the result is not interpreted in a Boolean way.
translate
in class SchematronConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2018. All rights reserved.