de.interactive_instruments.ShapeChange.Target.XmlSchema
Class SchematronConstraintNode.Literal
java.lang.Object
de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode
de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode.Literal
- Enclosing class:
- SchematronConstraintNode
public static class SchematronConstraintNode.Literal
- extends SchematronConstraintNode
This wraps any form of Literal value from the OclNode.
Nested classes/interfaces inherited from class de.interactive_instruments.ShapeChange.Target.XmlSchema.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchematronConstraintNode.Literal
public SchematronConstraintNode.Literal(SchematronSchema schemaObject,
OclNode.LiteralExp lit,
boolean neg)
- Ctor
- Parameters:
schemaObject
- The schema objectlit
- OclNode.LiteralExp objectneg
- Negation flag
translate
public SchematronConstraintNode.XpathFragment translate(SchematronConstraintNode.BindingContext ctx)
This function translates the Literal to equivalent Xpath code.
- Specified by:
translate
in class SchematronConstraintNode
- Parameters:
ctx
- BindingContext this node shall be compiled in
- Returns:
- XpathFragment representing the literal
Copyright © 2015. All rights reserved.