|
||||||||||
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.Select
public static class SchematronConstraintNode.Select
This class represents the Select iterator filter.
Nested Class Summary |
---|
Field Summary | |
---|---|
protected SchematronConstraintNode |
generatorBody
|
protected OclNode.Declaration |
vardecl
|
Fields inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode |
---|
children, negated, parent, schemaObject |
Constructor Summary | |
---|---|
SchematronConstraintNode.Select(SchematronSchema schemaObject,
OclNode.Declaration vardecl)
Ctor |
Method Summary | |
---|---|
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. |
Methods inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode |
---|
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 SchematronConstraintNode generatorBody
Constructor Detail |
---|
public SchematronConstraintNode.Select(SchematronSchema schemaObject, OclNode.Declaration vardecl)
schemaObject
- The schema objectvardecl
- OclNode.Declaration objectMethod Detail |
---|
public SchematronConstraintNode nodeVariableIsBoundTo(OclNode.Declaration vardecl)
nodeVariableIsBoundTo
in class SchematronConstraintNode
vardecl
- The variable Declaration object
public 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 in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |