|
||||||||||
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.Cast
public static class SchematronConstraintNode.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.Target.XmlSchema.SchematronConstraintNode |
---|
children, negated, parent, schemaObject |
Constructor Summary | |
---|---|
SchematronConstraintNode.Cast(SchematronSchema schemaObject)
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. |
SchematronConstraintNode.XpathFragment |
translate(SchematronConstraintNode.BindingContext ctx)
This compiles the Cast to an Xpath fragment. |
Methods inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode |
---|
addChild, containsError, generatingAttribute, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased, nodeVariableIsBoundTo |
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 SchematronConstraintNode.Cast(SchematronSchema schemaObject)
schemaObject
- 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 SchematronConstraintNode
public boolean hasIdentity()
This predicate finds out whether the Cast results in an instance, which conceptually has identity.
hasIdentity
in class SchematronConstraintNode
public SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.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 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 |