|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode
de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode.Select
public static class XpathConstraintNode.Select
This class represents the Select iterator filter.
Nested Class Summary |
---|
Field Summary | |
---|---|
protected XpathConstraintNode |
generatorBody
|
protected OclNode.Declaration |
vardecl
|
Fields inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
children, negated, parent, xpathHelper |
Constructor Summary | |
---|---|
XpathConstraintNode.Select(XpathHelper xpathHelper,
OclNode.Declaration vardecl)
Ctor |
Method Summary | |
---|---|
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. |
Methods inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
addChild, containsError, isAndOrLogic, isDependentOn, isVarOrAttribBased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OclNode.Declaration vardecl
protected XpathConstraintNode generatorBody
Constructor Detail |
---|
public XpathConstraintNode.Select(XpathHelper xpathHelper, OclNode.Declaration vardecl)
xpathHelper
- The schema objectvardecl
- OclNode.Declaration objectMethod Detail |
---|
public boolean bindsVariable(OclNode.Declaration vardecl)
bindsVariable
in class XpathConstraintNode
vardecl
- The variable Declaration object
public 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 in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |