org.pf.six
Class ModelConverter

java.lang.Object
  extended by org.pf.six.ModelConverter

public class ModelConverter
extends java.lang.Object

Supports conversion of a XML representation in org.pf.six.Element to a DOM tree.

Version:
1.1
Author:
Manfred Duchrow

Constructor Summary
ModelConverter()
          Initialize the new instance with default values.
 
Method Summary
 org.w3c.dom.Document toDOM(Element rootElement)
          Converts the given SIX element and its children to a DOM Document tree.
 Element toSIXElement(org.w3c.dom.Document doc)
          Converts the given DOM Document tree to a SIX element tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelConverter

public ModelConverter()
Initialize the new instance with default values.

Method Detail

toDOM

public org.w3c.dom.Document toDOM(Element rootElement)
Converts the given SIX element and its children to a DOM Document tree. The element needs not necessarily be a root element (document type).

Parameters:
rootElement - The root element for the document to create
Returns:
The document or null in any case of exception

toSIXElement

public Element toSIXElement(org.w3c.dom.Document doc)
Converts the given DOM Document tree to a SIX element tree.

Parameters:
doc - The document to be converted to the SIX structure
Returns:
The root element or null in any case of exception