uk.co.demon.ursus.dom
Class PMRDocumentImpl

java.lang.Object
  |
  +--org.apache.xerces.dom.NodeImpl
        |
        +--org.apache.xerces.dom.ParentNode
              |
              +--org.apache.xerces.dom.DocumentImpl
                    |
                    +--uk.co.demon.ursus.dom.AbstractDocumentImpl
                          |
                          +--uk.co.demon.ursus.dom.PMRDocumentImpl
Direct Known Subclasses:
CMLDocumentImpl, SpanningTreeImpl

public class PMRDocumentImpl
extends AbstractDocumentImpl
implements PMRDocument

DOM-based re-write of JUMBO functionality. Delegate functionality for DOM

See Also:
Serialized Form

Fields inherited from class uk.co.demon.ursus.dom.AbstractDocumentImpl
DEFAULT_PARSER_NAME, docElement
 
Fields inherited from class org.apache.xerces.dom.DocumentImpl
allowGrammarAccess, docElement, docType, errorChecking, identifiers, iterators, kidOK, ranges, treeWalkers, userData
 
Fields inherited from class org.apache.xerces.dom.ParentNode
changes, firstChild, nodeListIndex, nodeListLength, nodeListNode, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.NodeImpl
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, IGNORABLEWS, MUTATION_AGGREGATE, MUTATION_ALL, MUTATION_LOCAL, MUTATION_NONE, MUTATIONEVENTS, OWNED, ownerNode, READONLY, SETVALUE, SPECIFIED, SYNCCHILDREN, SYNCDATA
 
Fields inherited from interface uk.co.demon.ursus.dom.PMRDocument
PACKAGENAME
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
PMRDocumentImpl()
           
PMRDocumentImpl(org.xml.sax.InputSource source)
          create from source with default parser and builder
PMRDocumentImpl(PMRElement rootElement)
          create from rootNode (which is removed from its current tree)
PMRDocumentImpl(java.lang.String urlString)
          create from urlString with default parser and builder
PMRDocumentImpl(java.net.URL url)
          create from url with default parser and builder
 
Method Summary
static org.w3c.dom.Document createDocument(org.xml.sax.InputSource source)
           
static org.w3c.dom.Document createDocument(java.lang.String urlString)
           
static void main(java.lang.String[] args)
           
 void testBuild()
           
 void testRead(java.lang.String tagName)
           
 
Methods inherited from class org.apache.xerces.dom.DocumentImpl
adoptNode, clone, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createDocumentType, createElement, createElementDefinition, createElementNS, createEntity, createEntityReference, createEvent, createNodeIterator, createNodeIterator, createNotation, createProcessingInstruction, createRange, createTextNode, createTreeWalker, createTreeWalker, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getErrorChecking, getIdentifier, getIdentifiers, getImplementation, getNodeIterators, getNodeName, getNodeType, getOwnerDocument, getRanges, getTreeWalkers, getUserData, importNode, insertBefore, isKidOK, isXMLName, putIdentifier, removeChild, removeIdentifier, removeTreeWalker, setErrorChecking, setUserData
 
Methods inherited from class org.apache.xerces.dom.ParentNode
changed, changes, getChildNodes, getFirstChild, getLastChild, getLength, hasChildNodes, item, normalize, replaceChild, setReadOnly, synchronizeChildren, synchronizeChildren
 
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, appendChild, dispatchEvent, finalize, getAttributes, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getReadOnly, getUserData, removeEventListener, setNodeValue, setPrefix, setUserData, supports, synchronizeData, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PMRDocumentImpl

public PMRDocumentImpl()

PMRDocumentImpl

public PMRDocumentImpl(org.xml.sax.InputSource source)
                throws java.io.IOException,
                       org.xml.sax.SAXException,
                       java.lang.Exception
create from source with default parser and builder

PMRDocumentImpl

public PMRDocumentImpl(java.lang.String urlString)
                throws java.io.IOException,
                       org.xml.sax.SAXException,
                       java.lang.Exception
create from urlString with default parser and builder

PMRDocumentImpl

public PMRDocumentImpl(java.net.URL url)
                throws java.io.IOException,
                       org.xml.sax.SAXException,
                       java.lang.Exception
create from url with default parser and builder

PMRDocumentImpl

public PMRDocumentImpl(PMRElement rootElement)
create from rootNode (which is removed from its current tree)
Method Detail

createDocument

public static org.w3c.dom.Document createDocument(java.lang.String urlString)
                                           throws java.lang.Exception

createDocument

public static org.w3c.dom.Document createDocument(org.xml.sax.InputSource source)
                                           throws java.lang.Exception

testRead

public void testRead(java.lang.String tagName)

testBuild

public void testBuild()

main

public static void main(java.lang.String[] args)