public static class SchematronConstraintNode.KindOf extends SchematronConstraintNode
SchematronConstraintNode.AllInstances, SchematronConstraintNode.Arithmetic, SchematronConstraintNode.Attribute, SchematronConstraintNode.BindingContext, SchematronConstraintNode.Cast, SchematronConstraintNode.ChangeCase, SchematronConstraintNode.Comparison, SchematronConstraintNode.Concatenate, SchematronConstraintNode.Empty, SchematronConstraintNode.Error, SchematronConstraintNode.Exists, SchematronConstraintNode.IfThenElse, SchematronConstraintNode.KindOf, SchematronConstraintNode.Let, SchematronConstraintNode.Literal, SchematronConstraintNode.Logic, SchematronConstraintNode.Matches, SchematronConstraintNode.MessageComment, SchematronConstraintNode.Select, SchematronConstraintNode.Size, SchematronConstraintNode.Substring, SchematronConstraintNode.Unique, SchematronConstraintNode.Variable, SchematronConstraintNode.XpathFragment, SchematronConstraintNode.XpathType
Modifier and Type | Field and Description |
---|---|
protected ClassInfo |
argumentClass |
protected boolean |
exact |
children, negated, parent, schemaObject
Constructor and Description |
---|
KindOf(SchematronSchema schemaObject,
boolean exact,
boolean neg)
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.
|
SchematronConstraintNode.XpathFragment |
translate(SchematronConstraintNode.BindingContext ctx)
This compiles the KindOf predicate (and its negation) to an
equivalent Xpath expression fragment.
|
addChild, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased, nodeVariableIsBoundTo
protected ClassInfo argumentClass
protected boolean exact
public KindOf(SchematronSchema schemaObject, boolean exact, boolean neg)
schemaObject
- The schema objectexact
- Flag: Only check the given typeneg
- Flag: Negated meaningpublic void setClass(ClassInfo ci)
ci
- ClassInfo representing the type to be tested againstpublic SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.BindingContext ctx)
This compiles the KindOf predicate (and its negation) to an equivalent Xpath expression fragment. KindOf is translated to a predicate which compares the element name against all concrete subtypes of the given type.
translate
in class SchematronConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2017. All rights reserved.