Home » Xerces-J-src.2.9.1 » org.apache.xerces » parsers » [javadoc | source]
org.apache.xerces.parsers
public class: DOMParserImpl [javadoc | source]
java.lang.Object
   org.apache.xerces.parsers.XMLParser
      org.apache.xerces.parsers.AbstractXMLDocumentParser
         org.apache.xerces.parsers.AbstractDOMParser
            org.apache.xerces.parsers.DOMParserImpl

All Implemented Interfaces:
    DOMConfiguration, LSParser, XMLDocumentHandler, XMLDTDContentModelHandler, XMLDTDHandler

Direct Known Subclasses:
    DOMASBuilderImpl

This is Xerces DOM Builder class. It uses the abstract DOM parser with a document scanner, a dtd scanner, and a validator, as well as a grammar pool.
Field Summary
protected static final  String NAMESPACES    Feature identifier: namespaces. 
protected static final  String VALIDATION_FEATURE    Feature id: validation. 
protected static final  String XMLSCHEMA    XML Schema validation 
protected static final  String XMLSCHEMA_FULL_CHECKING    XML Schema full checking 
protected static final  String DYNAMIC_VALIDATION    Dynamic validation 
protected static final  String NORMALIZE_DATA    Feature identifier: expose schema normalized value 
protected static final  String DISALLOW_DOCTYPE_DECL_FEATURE    Feature identifier: disallow docType Decls. 
protected static final  String HONOUR_ALL_SCHEMALOCATIONS    Feature identifier: honour all schemaLocations 
protected static final  String SYMBOL_TABLE     
protected static final  String PSVI_AUGMENT     
protected  boolean fNamespaceDeclarations    Include namespace declaration attributes in the document. 
protected  String fSchemaType     
protected  boolean fBusy     
protected static final  boolean DEBUG     
Fields inherited from org.apache.xerces.parsers.AbstractDOMParser:
NAMESPACES,  CREATE_ENTITY_REF_NODES,  INCLUDE_COMMENTS_FEATURE,  CREATE_CDATA_NODES_FEATURE,  INCLUDE_IGNORABLE_WHITESPACE,  DEFER_NODE_EXPANSION,  DOCUMENT_CLASS_NAME,  CURRENT_ELEMENT_NODE,  DEFAULT_DOCUMENT_CLASS_NAME,  CORE_DOCUMENT_CLASS_NAME,  PSVI_DOCUMENT_CLASS_NAME,  ABORT,  fErrorHandler,  fInDTD,  fCreateEntityRefNodes,  fIncludeIgnorableWhitespace,  fIncludeComments,  fCreateCDATANodes,  fDocument,  fDocumentImpl,  fStorePSVI,  fDocumentClassName,  fDocumentType,  fCurrentNode,  fCurrentCDATASection,  fCurrentEntityDecl,  fDeferredEntityDecl,  fStringBuffer,  fInternalSubset,  fDeferNodeExpansion,  fNamespaceAware,  fDeferredDocumentImpl,  fDocumentIndex,  fDocumentTypeIndex,  fCurrentNodeIndex,  fCurrentCDATASectionIndex,  fInDTDExternalSubset,  fRoot,  fInCDATASection,  fFirstChunk,  fFilterReject,  fBaseURIStack,  fRejectedElement,  fSkippedElemStack,  fInEntityRef,  fDOMFilter
Fields inherited from org.apache.xerces.parsers.AbstractXMLDocumentParser:
fInDTD,  fDocumentSource,  fDTDSource,  fDTDContentModelSource
Fields inherited from org.apache.xerces.parsers.XMLParser:
ENTITY_RESOLVER,  ERROR_HANDLER,  fConfiguration
Constructor:
 public DOMParserImpl(XMLParserConfiguration config) 
    Constructs a DOM Builder using the specified parser configuration.
 public DOMParserImpl(SymbolTable symbolTable) 
    Constructs a DOM Builder using the specified symbol table.
 public DOMParserImpl(String configuration,
    String schemaType) 
    Constructs a DOM Builder using the standard parser configuration.
 public DOMParserImpl(SymbolTable symbolTable,
    XMLGrammarPool grammarPool) 
    Constructs a DOM Builder using the specified symbol table and grammar pool.
Method from org.apache.xerces.parsers.DOMParserImpl Summary:
abort,   canSetParameter,   dom2xmlInputSource,   getAsync,   getBusy,   getDomConfig,   getFilter,   getParameter,   getParameterNames,   parse,   parseURI,   parseWithContext,   reset,   setFilter,   setParameter,   startElement
Methods from org.apache.xerces.parsers.AbstractDOMParser:
abort,   attributeDecl,   characters,   comment,   createAttrNode,   createElementNode,   doctypeDecl,   dropDocumentReferences,   elementDecl,   emptyElement,   endAttlist,   endCDATA,   endConditional,   endDTD,   endDocument,   endElement,   endExternalSubset,   endGeneralEntity,   endParameterEntity,   externalEntityDecl,   getDocument,   getDocumentClassName,   handleBaseURI,   handleBaseURI,   ignorableWhitespace,   ignoredCharacters,   internalEntityDecl,   notationDecl,   processingInstruction,   reset,   setCharacterData,   setDocumentClassName,   setLocale,   startAttlist,   startCDATA,   startConditional,   startDTD,   startDocument,   startElement,   startExternalSubset,   startGeneralEntity,   startParameterEntity,   textDecl,   unparsedEntityDecl,   xmlDecl
Methods from org.apache.xerces.parsers.AbstractXMLDocumentParser:
any,   attributeDecl,   characters,   comment,   doctypeDecl,   element,   elementDecl,   empty,   emptyElement,   endAttlist,   endCDATA,   endConditional,   endContentModel,   endDTD,   endDocument,   endElement,   endExternalSubset,   endGeneralEntity,   endGroup,   endParameterEntity,   externalEntityDecl,   getDTDContentModelSource,   getDTDSource,   getDocumentSource,   ignorableWhitespace,   ignoredCharacters,   internalEntityDecl,   notationDecl,   occurrence,   pcdata,   processingInstruction,   reset,   separator,   setDTDContentModelSource,   setDTDSource,   setDocumentSource,   startAttlist,   startCDATA,   startConditional,   startContentModel,   startDTD,   startDocument,   startElement,   startExternalSubset,   startGeneralEntity,   startGroup,   startParameterEntity,   textDecl,   unparsedEntityDecl,   xmlDecl
Methods from org.apache.xerces.parsers.XMLParser:
parse,   reset
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.parsers.DOMParserImpl Detail:
 public  void abort() 
 public boolean canSetParameter(String name,
    Object value) 
 XMLInputSource dom2xmlInputSource(LSInput is) 
    NON-DOM: convert LSInput to XNIInputSource
 public boolean getAsync() 
 public boolean getBusy() 
 public DOMConfiguration getDomConfig() 
 public LSParserFilter getFilter() 
    When the application provides a filter, the parser will call out to the filter at the completion of the construction of each Element node. The filter implementation can choose to remove the element from the document being constructed (unless the element is the document element) or to terminate the parse early. If the document is being validated when it's loaded the validation happens before the filter is called.
 public Object getParameter(String name) throws DOMException 
    Look up the value of a feature or a property.
 public DOMStringList getParameterNames() 
    DOM Level 3 CR - Experimental. The list of the parameters supported by this DOMConfiguration object and for which at least one value can be set by the application. Note that this list can also contain parameter names defined outside this specification.
 public Document parse(LSInput is) throws LSException 
    Parse an XML document from a resource identified by an LSInput.
 public Document parseURI(String uri) throws LSException 
    Parse an XML document from a location identified by an URI reference. If the URI contains a fragment identifier (see section 4.1 in ), the behavior is not defined by this specification.
 public Node parseWithContext(LSInput is,
    Node cnode,
    short action) throws LSException, DOMException 
    Parse an XML document or fragment from a resource identified by an LSInput and insert the content into an existing document at the position epcified with the contextNode and action arguments. When parsing the input stream the context node is used for resolving unbound namespace prefixes.
 public  void reset() 
    Resets the parser state.
 public  void setFilter(LSParserFilter filter) 
    When the application provides a filter, the parser will call out to the filter at the completion of the construction of each Element node. The filter implementation can choose to remove the element from the document being constructed (unless the element is the document element) or to terminate the parse early. If the document is being validated when it's loaded the validation happens before the filter is called.
 public  void setParameter(String name,
    Object value) throws DOMException 
    Set parameters and properties
 public  void startElement(QName element,
    XMLAttributes attributes,
    Augmentations augs) 
    The start of an element. If the document specifies the start element by using an empty tag, then the startElement method will immediately be followed by the endElement method, with no intervening methods. Overriding the parent to handle DOM_NAMESPACE_DECLARATIONS=false.