|
||||||||||
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.Cast
public static class XpathConstraintNode.Cast
This class represents oclAsType(), which is for casting a type to one of its subtypes.
Nested Class Summary |
---|
Field Summary | |
---|---|
protected ClassInfo |
argumentClass
|
protected String |
targetClassName
|
Fields inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
children, negated, parent, xpathHelper |
Constructor Summary | |
---|---|
XpathConstraintNode.Cast(XpathHelper xpathHelper)
Ctor |
Method Summary | |
---|---|
boolean |
hasIdentity()
This predicate finds out whether the Cast results in an instance, which conceptually has identity. |
boolean |
hasSimpleType()
This predicate finds out whether the Cast results in a simple XML schema type. |
void |
setClass(ClassInfo ci)
If the class to be cast to is already known (it is not an expression) this reference can be set via this method. |
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.BindingContext ctx)
This compiles the Cast to an Xpath fragment. |
Methods inherited from class de.interactive_instruments.ShapeChange.TargetHelper.XpathConstraintNode |
---|
addChild, bindsVariable, containsError, generatingAttribute, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassInfo argumentClass
protected String targetClassName
Constructor Detail |
---|
public XpathConstraintNode.Cast(XpathHelper xpathHelper)
xpathHelper
- The schema objectMethod Detail |
---|
public void setClass(ClassInfo ci)
ci
- ClassInfo representing the type to be cast topublic boolean hasSimpleType()
This predicate finds out whether the Cast results in a simple XML schema type.
hasSimpleType
in class XpathConstraintNode
public boolean hasIdentity()
This predicate finds out whether the Cast results in an instance, which conceptually has identity.
hasIdentity
in class XpathConstraintNode
public XpathConstraintNode.XpathFragment translate(XpathConstraintNode.BindingContext ctx)
This compiles the Cast to an Xpath fragment.
We realize this by making sure the current element is of the requested type or any of its concrete subtypes.
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 |