|
||||||||||
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.Variable
public static class XpathConstraintNode.Variable
This class represents an OCL variable. It wraps the Declaration node of the OclNode object. If it happens to be boolean it can be negated.
Nested Class Summary |
---|
Field Summary | |
---|---|
protected OclNode.Declaration |
vardecl
|
Fields inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
children, negated, parent, xpathHelper |
Constructor Summary | |
---|---|
XpathConstraintNode.Variable(XpathHelper xpathHelper,
OclNode.Declaration vardecl,
boolean neg)
Ctor |
Method Summary | |
---|---|
XpathConstraintNode.Attribute |
generatingAttribute()
This inquires the Attribute node this Variable is generated by if any. |
String |
getName()
Variable name inquiry function. |
boolean |
hasIdentity()
This predicate finds out whether the Variable results in an instance, which conceptually has identity. |
boolean |
hasSimpleType()
This predicate finds out whether the Variable results in a simple XML schema type. |
boolean |
isDependentOn(OclNode.Declaration vardecl)
This method determines whether this variable is identical to the one passed as argument. |
boolean |
isVarOrAttribBased(OclNode.Declaration vardecl)
This method determines whether this variable is identical to the one passed as argument. |
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.BindingContext ctx)
This compiles a node to an Xpath expression, which stands for the given variable. |
Methods inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
addChild, bindsVariable, containsError, isAndOrLogic, isMultiple |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OclNode.Declaration vardecl
Constructor Detail |
---|
public XpathConstraintNode.Variable(XpathHelper xpathHelper, OclNode.Declaration vardecl, boolean neg)
xpathHelper
- The schema objectvardecl
- OclNode.Declaration objectneg
- Negation flagMethod Detail |
---|
public String getName()
public boolean isDependentOn(OclNode.Declaration vardecl)
This method determines whether this variable is identical to the one passed as argument.
isDependentOn
in class XpathConstraintNode
vardecl
- The Declaration of the variable
public boolean isVarOrAttribBased(OclNode.Declaration vardecl)
This method determines whether this variable is identical to the one passed as argument.
isVarOrAttribBased
in class XpathConstraintNode
vardecl
- The Declaration of the variable
public XpathConstraintNode.Attribute generatingAttribute()
This inquires the Attribute node this Variable is generated by if any.
generatingAttribute
in class XpathConstraintNode
public boolean hasSimpleType()
This predicate finds out whether the Variable results in a simple XML schema type.
hasSimpleType
in class XpathConstraintNode
public boolean hasIdentity()
This predicate finds out whether the Variable results in an instance, which conceptually has identity.
hasIdentity
in class XpathConstraintNode
public XpathConstraintNode.XpathFragment translate(XpathConstraintNode.BindingContext ctx)
This compiles a node to an Xpath expression, which stands for the given variable.
The only variable which can be properly translated in all cases is self, which will be mapped to current() or to '.', if compiled in a ISCURRENT context. Other variables require to be on the context stack of the expression, which is widely dependent on how the expression environment could be represented in Xpath.
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 |