com.metamatrix.query.mapping.xml
Class MappingLoader

java.lang.Object
  extended by com.metamatrix.query.mapping.xml.MappingLoader

public class MappingLoader
extends java.lang.Object

Reads an mapping definition file in XML format. When finished reading the mapping info from the XML file, this class holds an object representation of it, rooted in a MappingNode instance, and also holds an XML Document representation.

Example usage (loading from stream; exceptions not shown)

     MappingLoader loader = new MappingLoader();
     MappingNode mappingRootNode = loader.loadDocument(istream);
 

See Also:
MappingNode

Constructor Summary
MappingLoader()
           
 
Method Summary
 MappingDocument loadDocument(java.io.InputStream stream)
          Load mapping definition from XML Document object.
 MappingDocument loadDocument(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingLoader

public MappingLoader()
Method Detail

loadDocument

public MappingDocument loadDocument(java.io.InputStream stream)
                             throws MappingException

Load mapping definition from XML Document object.

Throws:
MappingException

loadDocument

public MappingDocument loadDocument(java.lang.String fileName)
                             throws MappingException
Throws:
MappingException


Copyright © 2009. All Rights Reserved.