de.interactive_instruments.ShapeChange.Target.XmlSchema
Class SchematronConstraintNode.XpathFragment

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Target.XmlSchema.SchematronConstraintNode.XpathFragment
Enclosing class:
SchematronConstraintNode

protected static class SchematronConstraintNode.XpathFragment
extends Object

This auxiliary class encapsulates an Xpath expression, which can be formulated using variables defined using <let> expressions of a Schematron <rule>. Additionally there is a number indicating the XPath operator precedence of that fragment. Priorities are as follows:

  1. or
  2. and
  3. Equality operators
  4. Other comparison operators
  5. Infix +, -
  6. *, div, mod
  7. Prefix -
  8. union |
  9. PathExpression
  10. FilterExpression id[...]
  11. (bracketed expressions) or identifier


Field Summary
 SchematronConstraintNode.BindingContext atEnd
           
 String fragment
           
 TreeMap<String,String> lets
           
 int priority
           
 SchematronConstraintNode.XpathType type
           
 
Constructor Summary
SchematronConstraintNode.XpathFragment(int p, String f)
           
SchematronConstraintNode.XpathFragment(int p, String f, SchematronConstraintNode.XpathType t)
           
 
Method Summary
 void bracket()
           
 String findOrAdd(String ex)
           
 String merge(SchematronConstraintNode.XpathFragment xf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

priority

public int priority

fragment

public String fragment

type

public SchematronConstraintNode.XpathType type

lets

public TreeMap<String,String> lets

atEnd

public SchematronConstraintNode.BindingContext atEnd
Constructor Detail

SchematronConstraintNode.XpathFragment

public SchematronConstraintNode.XpathFragment(int p,
                                              String f,
                                              SchematronConstraintNode.XpathType t)

SchematronConstraintNode.XpathFragment

public SchematronConstraintNode.XpathFragment(int p,
                                              String f)
Method Detail

bracket

public void bracket()

merge

public String merge(SchematronConstraintNode.XpathFragment xf)

findOrAdd

public String findOrAdd(String ex)


Copyright © 2015. All rights reserved.