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