com.bankframe.ei.xml
Class EDocumentBuilder

java.lang.Object
  extended bycom.bankframe.ei.xml.EDocumentBuilder

public class EDocumentBuilder
extends java.lang.Object

This class is used to create an XML Document object from either an InputSource, a DataPacket, or a Vector of DataPackets


Method Summary
 boolean isIgnoringComments()
          This method indicates whether or not the builder is configured to produce parsers which ignores comments
 boolean isIgnoringElementContentWhiteSpace()
          This method indicates whether or not this builder is configured to produce parsers which ignore ignorable whitespace in element content.
 boolean isNameSpaceAware()
          This method indicates whether or not the builder is configured to produce parsers which are namespace aware.
 boolean isValidating()
          This method ndicates whether or not the bulider is configured to produce parsers which validate the XML content during parse.
 org.w3c.dom.Document newDocument()
          This method creates a new XML Document object for creating DOM elements.
 org.w3c.dom.Document parse(DataPacket dp)
          This method parses a DataPacket into an XML Document object.
 org.w3c.dom.Document parse(org.xml.sax.InputSource inSource)
          This method parses an input stream into an XML Document object.
 org.w3c.dom.Document parse(java.util.Vector vec)
          This method parses a Vector of DataPackets into an XML Document object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isIgnoringComments

public boolean isIgnoringComments()
This method indicates whether or not the builder is configured to produce parsers which ignores comments

Returns:
true if the bulider is configured to produce parsers which ignores comments; false otherwise

isIgnoringElementContentWhiteSpace

public boolean isIgnoringElementContentWhiteSpace()
This method indicates whether or not this builder is configured to produce parsers which ignore ignorable whitespace in element content.

Returns:
true if the bulider is configured to produce parsers which ignore ignorable whitespace in element content; false otherwise.

isNameSpaceAware

public boolean isNameSpaceAware()
This method indicates whether or not the builder is configured to produce parsers which are namespace aware.


isValidating

public boolean isValidating()
This method ndicates whether or not the bulider is configured to produce parsers which validate the XML content during parse.

Returns:
true if the factory is configured to produce parsers which validate the XML content during parse; false otherwise.

newDocument

public org.w3c.dom.Document newDocument()
This method creates a new XML Document object for creating DOM elements. The default implementation uses Sun's API for XML Processing, therefore the underlying JAXP DocumentBuilder class to use is set in the JAXP system variables.

Returns:
A new XML Document object.

parse

public org.w3c.dom.Document parse(DataPacket dp)
                           throws javax.xml.parsers.ParserConfigurationException
This method parses a DataPacket into an XML Document object. The resulting XML Document will conform to the BankFrame XML format, as specified in the ( BankFrameProcess Document Type Definition.

Returns:
an XML Document that conforms to the BankFrame XML format.
Throws:
javax.xml.parsers.ParserConfigurationException - if errors occur creating the parser from a DocumentBuilder

parse

public org.w3c.dom.Document parse(java.util.Vector vec)
                           throws javax.xml.parsers.ParserConfigurationException
This method parses a Vector of DataPackets into an XML Document object. The resulting XML Document will conform to the BankFrame XML format, as specified in the BankFrameProcess Document Type Definition.

Returns:
An XML Document that conforms to the BankFrame XML format.
Throws:
javax.xml.parsers.ParserConfigurationException - is thrown if there are errors creating the DocumentBuilder and configuring the parser

parse

public org.w3c.dom.Document parse(org.xml.sax.InputSource inSource)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException,
                                  javax.xml.parsers.ParserConfigurationException
This method parses an input stream into an XML Document object. The default implementation uses Sun's Java API for XML Processing, therefore the type of the parser used is set in the System variable or the jaxp.properties file, as specified in the javax.xml.DocumentBuilder specification.

Returns:
An XML Document that represents the contents of the InputSource. The resulting Document could be in any XML format.
Throws:
java.io.IOException - if there are IO errors.
org.xml.sax.SAXException - if there are errors parsing the input source into a Document.
javax.xml.parsers.ParserConfigurationException - if there are errors configuring the parser.


Copyright © 2005, 2007, Oracle. All rights reserved.