dk.brics.xact.analysis.transformations
Class SchemaTypeLinking
java.lang.Object
dk.brics.xact.analysis.transformations.SchemaTypeLinking
public class SchemaTypeLinking
- extends Object
Loads all XML schemas used by the program and then builds an XML graph containing:
- All types defined in loaded XML schemas.
- The necessary types from the XMLSchema-datatypes namespace.
- The necessary quantified versions of those types (suffixed ?,+, or * accordingly)
Additionally, only ChoiceNodes can have element and attribute nodes as content,
and the contents of each element node will be a ChoiceNode.
A quantified type is the name of a type suffixed with ?, + or *, corresponding
to the zero-or-one, one-or-more and zero-or-more operators. Quantifiers can appear both
inside and outside of gap annotations.
For example, these are all types that use quantifiers:
foo+
foo[bar* X]
foo*[bar+ Z]
foo[bar? X, baz? Y]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaTypeLinking
public SchemaTypeLinking()
run
public void run(FlowGraph g,
Configuration config)
wrapNodesInChoices
void wrapNodesInChoices(XMLGraph xg)
- Puts a choice node around each element node, and before each attribute node
Copyright © 2005-2011 Aarhus University.