|
||||||||||
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.AllInstances
public static class XpathConstraintNode.AllInstances
This class represents the OCL operation allInstances(). AllInstances is based on a class literal and represents all instances of that class.
Nested Class Summary |
---|
Field Summary | |
---|---|
protected ClassInfo |
objectClass
|
Fields inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
children, negated, parent, xpathHelper |
Constructor Summary | |
---|---|
XpathConstraintNode.AllInstances(XpathHelper xpathHelper,
ClassInfo ci,
boolean negated)
Ctor |
Method Summary | |
---|---|
boolean |
hasIdentity()
This predicate finds out whether the allInstances results in a collection of instances, which conceptually have identity. |
boolean |
hasSimpleType()
allInstances() is never simple. |
boolean |
isMultiple()
Allinstances always produces a set. |
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.BindingContext ctx)
allInstances() is translated to a search for the given type. |
Methods inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
addChild, bindsVariable, containsError, generatingAttribute, isAndOrLogic, isDependentOn, isVarOrAttribBased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassInfo objectClass
Constructor Detail |
---|
public XpathConstraintNode.AllInstances(XpathHelper xpathHelper, ClassInfo ci, boolean negated)
xpathHelper
- The schema objectci
- ClassInfo of the class to enumeratenegated
- May be negated if of type booleanMethod Detail |
---|
public boolean isMultiple()
Allinstances always produces a set.
isMultiple
in class XpathConstraintNode
public boolean hasSimpleType()
allInstances() is never simple.
hasSimpleType
in class XpathConstraintNode
public boolean hasIdentity()
This predicate finds out whether the allInstances results in a collection of instances, which conceptually have identity.
hasIdentity
in class XpathConstraintNode
public XpathConstraintNode.XpathFragment translate(XpathConstraintNode.BindingContext ctx)
allInstances() is translated to a search for the given type. The result is a nodeset containing all the given features.
In compiling x.allInstances() we create a nodeset union (n1|...|ni), where nk=//Tk[@gml:id] and Tk is one of the concrete derivations of the type x, including x.
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 |