com.lonniepryor.blues.xml
Class GraphBuilder

java.lang.Object
  |
  +--com.lonniepryor.blues.xml.GraphBuilder

public class GraphBuilder
extends java.lang.Object

Handles transforming a single XML document into a graph of objects. NOTE: this class is NOT thread-safe and instances may only be used on a single thread at a time.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Field Summary
static java.lang.String bluesNamespaceUri
          The URI of the Blues namespace.
 
Constructor Summary
GraphBuilder(java.lang.ClassLoader classLoader)
          Creates a new GraphBuilder object.
 
Method Summary
 java.lang.Object buildGraph(javax.xml.parsers.SAXParser parser, java.lang.String documentPath)
          Parses the XML document at the specified URL, transforming it into a graph of objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bluesNamespaceUri

public static final java.lang.String bluesNamespaceUri
The URI of the Blues namespace.

See Also:
Constant Field Values
Constructor Detail

GraphBuilder

public GraphBuilder(java.lang.ClassLoader classLoader)
Creates a new GraphBuilder object.

Parameters:
classLoader - The class loader to load element classes from.
Method Detail

buildGraph

public java.lang.Object buildGraph(javax.xml.parsers.SAXParser parser,
                                   java.lang.String documentPath)
Parses the XML document at the specified URL, transforming it into a graph of objects.

Parameters:
parser - The parser to use.
documentPath - The location of the document to parse.
Returns:
The object generated for the root element of the document.


Copyright © 2003 Blues Framework. All Rights Reserved.