dk.brics.xact.operations
Class XMLGraphConverter

java.lang.Object
  extended by dk.brics.xact.operations.XMLGraphConverter

public class XMLGraphConverter
extends Object

Converter from XML templates to XML graphs.


Nested Class Summary
static class XMLGraphConverter.GapConversion
          Gap conversion flags.
 
Method Summary
static XMLGraph convert(XML x, XMLGraphConverter.GapConversion gaps, boolean wrapchoices)
          Converts the given XML template into a new XML graph.
static XMLGraphFragment extend(XMLGraph xg, XML x, XMLGraphConverter.GapConversion gaps, boolean wrapchoices)
          Converts the given XML template by extending an existing XML graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

public static XMLGraph convert(XML x,
                               XMLGraphConverter.GapConversion gaps,
                               boolean wrapchoices)
Converts the given XML template into a new XML graph.

Parameters:
gaps - if set, gaps are included, otherwise they are implicitly closed
wrapchoices - if set, extra choice nodes are added around attribute nodes and element nodes and above text nodes

extend

public static XMLGraphFragment extend(XMLGraph xg,
                                      XML x,
                                      XMLGraphConverter.GapConversion gaps,
                                      boolean wrapchoices)
Converts the given XML template by extending an existing XML graph.

Parameters:
gaps - if set, gaps are included, otherwise they are implicitly closed


Copyright © 2005-2011 Aarhus University.