|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode
de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode.AllInstances
public static class SchematronConstraintNode.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.Target.XmlSchema.SchematronConstraintNode |
---|
children, negated, parent, schemaObject |
Constructor Summary | |
---|---|
SchematronConstraintNode.AllInstances(SchematronSchema schemaObject,
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. |
SchematronConstraintNode.XpathFragment |
translate(SchematronConstraintNode.BindingContext ctx)
allInstances() is translated to a search for the given type. |
Methods inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode |
---|
addChild, containsError, generatingAttribute, isAndOrLogic, isDependentOn, isVarOrAttribBased, nodeVariableIsBoundTo |
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 SchematronConstraintNode.AllInstances(SchematronSchema schemaObject, ClassInfo ci, boolean negated)
schemaObject
- 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 SchematronConstraintNode
public boolean hasSimpleType()
allInstances() is never simple.
hasSimpleType
in class SchematronConstraintNode
public boolean hasIdentity()
This predicate finds out whether the allInstances results in a collection of instances, which conceptually have identity.
hasIdentity
in class SchematronConstraintNode
public SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.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 SchematronConstraintNode
ctx
- BindingContext this node shall be compiled in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |