dk.brics.xmlgraph
Class XMLGraphFragment

java.lang.Object
  extended by dk.brics.xmlgraph.XMLGraphFragment

public class XMLGraphFragment
extends Object

Encapsulation of root node, open gaps, and gap type map.


Constructor Summary
XMLGraphFragment(Node root, Collection<String> tgaps, Collection<String> agaps, Map<String,String> gap_types)
          Constructs a new XML graph fragment encapsulation.
 
Method Summary
 Collection<String> getAttributeGaps()
          Returns the attribute gaps.
 Map<String,String> getGapTypeMap()
          Returns the gap type map.
 Node getRoot()
          Returns the root node.
 Collection<String> getTemplateGaps()
          Returns the template gaps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLGraphFragment

public XMLGraphFragment(Node root,
                        Collection<String> tgaps,
                        Collection<String> agaps,
                        Map<String,String> gap_types)
Constructs a new XML graph fragment encapsulation.

Parameters:
root - root node, null if none
tgaps - open template gaps, null if none
agaps - open attribute gaps, null if none
gap_types - gap type map, null if none
Method Detail

getAttributeGaps

public Collection<String> getAttributeGaps()
Returns the attribute gaps.

Returns:
collection of gap names (null if none)

getGapTypeMap

public Map<String,String> getGapTypeMap()
Returns the gap type map.

Returns:
gap type map (null if none)

getRoot

public Node getRoot()
Returns the root node.

Returns:
root node (null if none)

getTemplateGaps

public Collection<String> getTemplateGaps()
Returns the template gaps.

Returns:
collection of gap names (null if none)


Copyright © 2005-2010 Anders Møller.