public static class XpathConstraintNode.KindOf extends XpathConstraintNode
XpathConstraintNode.AllInstances, XpathConstraintNode.Arithmetic, XpathConstraintNode.Attribute, XpathConstraintNode.BindingContext, XpathConstraintNode.Cast, XpathConstraintNode.ChangeCase, XpathConstraintNode.Comparison, XpathConstraintNode.Concatenate, XpathConstraintNode.Empty, XpathConstraintNode.Error, XpathConstraintNode.Exists, XpathConstraintNode.IfThenElse, XpathConstraintNode.KindOf, XpathConstraintNode.Literal, XpathConstraintNode.Logic, XpathConstraintNode.Matches, XpathConstraintNode.MessageComment, XpathConstraintNode.Select, XpathConstraintNode.Size, XpathConstraintNode.Substring, XpathConstraintNode.Unique, XpathConstraintNode.Variable, XpathConstraintNode.XpathFragment, XpathConstraintNode.XpathType
Modifier and Type | Field and Description |
---|---|
protected ClassInfo |
argumentClass |
protected boolean |
exact |
children, negated, parent, xpathHelper
Constructor and Description |
---|
KindOf(XpathHelper xpathHelper,
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.
|
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.BindingContext ctx)
This compiles the KindOf predicate (and its negation) to an
equivalent Xpath expression fragment.
|
addChild, bindsVariable, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased
protected ClassInfo argumentClass
protected boolean exact
public KindOf(XpathHelper xpathHelper, boolean exact, boolean neg)
xpathHelper
- 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 XpathConstraintNode.XpathFragment translate(XpathConstraintNode.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 XpathConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2018. All rights reserved.