public static class XpathConstraintNode.Select extends 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
Modifier and Type | Field and Description |
---|---|
protected XpathConstraintNode |
generatorBody |
protected OclNode.Declaration |
vardecl |
children, negated, parent, xpathHelper
Constructor and Description |
---|
Select(XpathHelper xpathHelper,
OclNode.Declaration vardecl)
Ctor
|
Modifier and Type | Method and Description |
---|---|
boolean |
bindsVariable(OclNode.Declaration vardecl)
This method determines whether the Select binds the given variable
declaration.
|
XpathConstraintNode.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.
|
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.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 XpathConstraintNode generatorBody
public Select(XpathHelper xpathHelper, OclNode.Declaration vardecl)
xpathHelper
- The schema objectvardecl
- OclNode.Declaration objectpublic boolean bindsVariable(OclNode.Declaration vardecl)
bindsVariable
in class XpathConstraintNode
vardecl
- The variable Declaration objectpublic XpathConstraintNode.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 XpathConstraintNode
public boolean isMultiple()
The value of Select is always a set.
isMultiple
in class XpathConstraintNode
public boolean hasSimpleType()
This predicate finds out whether the Select results in a simple XML schema type.
hasSimpleType
in class XpathConstraintNode
public boolean hasIdentity()
This predicate finds out whether the Select results in a collection of instances, which conceptually have identity.
hasIdentity
in class XpathConstraintNode
public XpathConstraintNode.XpathFragment translate(XpathConstraintNode.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 XpathConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.