public static class FolSchematronNode.IsTypeOfNode extends FolSchematronNode
FolSchematronNode.Arithmetic, FolSchematronNode.AttributeNode, FolSchematronNode.BindingContext, FolSchematronNode.ComparisonNode, FolSchematronNode.Empty, FolSchematronNode.Error, FolSchematronNode.IsNullNode, FolSchematronNode.IsTypeOfNode, FolSchematronNode.LiteralNode, FolSchematronNode.Logic, FolSchematronNode.Matches, FolSchematronNode.MessageComment, FolSchematronNode.NotNode, FolSchematronNode.QuantificationNode, FolSchematronNode.VariableNode, FolSchematronNode.XpathFragment, FolSchematronNode.XpathType
Modifier and Type | Field and Description |
---|---|
protected ClassInfo |
argumentClass |
protected Variable |
var |
BY_REFERENCE, children, INLINE, INLINE_OR_BY_REFERENCE, parent, schemaObject, SIMPLE_TYPE
Constructor and Description |
---|
IsTypeOfNode(FOL2Schematron schemaObject)
Ctor
|
Modifier and Type | Method and Description |
---|---|
void |
setClass(ClassInfo ci)
If the class to be tested against is already known (it is not an
expression) this reference can be set via this method.
|
void |
setVariable(Variable var) |
FolSchematronNode.XpathFragment |
translate(FolSchematronNode.BindingContext ctx)
This compiles the FOL IsTypeOf predicate to an equivalent Xpath
expression fragment.
|
addChild, containsError, generatingAttribute, hasIdentity, hasSimpleType, hasSimpleType, isAIXMExtension, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased, nodeVariableIsBoundTo, objValueFromVariable
public IsTypeOfNode(FOL2Schematron schemaObject)
schemaObject
- The schema objectpublic void setClass(ClassInfo ci)
ci
- ClassInfo representing the type to be tested againstpublic void setVariable(Variable var)
public FolSchematronNode.XpathFragment translate(FolSchematronNode.BindingContext ctx)
This compiles the FOL IsTypeOf predicate to an equivalent Xpath expression fragment. It is translated to a predicate which compares the element name against all concrete subtypes of the given type.
translate
in class FolSchematronNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.