public static class XpathConstraintNode.Arithmetic 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
children, negated, parent, xpathHelper
Constructor and Description |
---|
Arithmetic(XpathHelper xpathHelper,
String oper)
Ctor
|
Modifier and Type | Method and Description |
---|---|
XpathConstraintNode.XpathFragment |
translate(XpathConstraintNode.BindingContext ctx)
This compiles a node to an Xpath expression, which realizes the
given arithmetic operation.
|
addChild, bindsVariable, containsError, generatingAttribute, hasIdentity, hasSimpleType, isAndOrLogic, isDependentOn, isMultiple, isVarOrAttribBased
public Arithmetic(XpathHelper xpathHelper, String oper)
xpathHelper
- The schema objectoper
- The operation symbol, one of + ,-, *, /public XpathConstraintNode.XpathFragment translate(XpathConstraintNode.BindingContext ctx)
This compiles a node to an Xpath expression, which realizes the given arithmetic operation. OCL and Xpath are very similar here.
translate
in class XpathConstraintNode
ctx
- BindingContext this node shall be compiled inCopyright © 2018. All rights reserved.