| java.lang.Object org.apache.xerces.dom.CoreDOMImplementationImpl
All known Subclasses: org.apache.xerces.dom.DOMImplementationImpl, org.apache.xerces.dom.PSVIDOMImplementationImpl, org.apache.xerces.impl.xs.XSImplementationImpl,
CoreDOMImplementationImpl | public class CoreDOMImplementationImpl implements DOMImplementation,DOMImplementationLS(Code) | | The DOMImplementation class is description of a particular
implementation of the Document Object Model. As such its data is
static, shared by all instances of this implementation.
The DOM API requires that it be a real object rather than static
methods. However, there's nothing that says it can't be a singleton,
so that's how I've implemented it.
This particular class, along with CoreDocumentImpl, supports the DOM
Core and Load/Save (Experimental). Optional modules are supported by
the more complete DOMImplementation class along with DocumentImpl.
version: $Id: CoreDOMImplementationImpl.java 571293 2007-08-30 20:16:22Z mrglavas $ since: PR-DOM-Level-1-19980818. |
Inner Class :static class RevalidationHandlerHolder | |
Inner Class :static class XMLDTDLoaderHolder | |
Method Summary | |
protected synchronized int | assignDocTypeNumber() | protected synchronized int | assignDocumentNumber() | final void | checkQName(String qname) | public Document | createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) Introduced in DOM Level 2. | public DocumentType | createDocumentType(String qualifiedName, String publicID, String systemID) Introduced in DOM Level 2. | public LSInput | createLSInput() DOM Level 3 LS CR - Experimental. | public LSOutput | createLSOutput() DOM Level 3 LS CR - Experimental. | public LSParser | createLSParser(short mode, String schemaType) DOM Level 3 LS CR - Experimental.
Create a new LSParser . | public LSSerializer | createLSSerializer() DOM Level 3 LS CR - Experimental.
Create a new LSSerializer object.
The newly created LSSerializer object.Note: By default, the newly createdLSSerializer has no DOMErrorHandler ,i.e. | public static DOMImplementation | getDOMImplementation() | final synchronized XMLDTDLoader | getDTDLoader(String xmlVersion) | public Object | getFeature(String feature, String version) DOM Level 3 WD - Experimental. | synchronized RevalidationHandler | getValidator(String schemaType, String xmlVersion) NON-DOM: retrieve validator. | public boolean | hasFeature(String feature, String version) Test if the DOM implementation supports a specific "feature" --
currently meaning language and level thereof. | final synchronized void | releaseDTDLoader(String xmlVersion, XMLDTDLoader loader) | synchronized void | releaseValidator(String schemaType, String xmlVersion, RevalidationHandler validator) |
assignDocTypeNumber | protected synchronized int assignDocTypeNumber()(Code) | | NON-DOM: increment document/doctype counter
|
assignDocumentNumber | protected synchronized int assignDocumentNumber()(Code) | | NON-DOM: increment document/doctype counter
|
createDocument | public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException(Code) | | Introduced in DOM Level 2.
Creates an XML Document object of the specified type with its document
element.
Parameters: namespaceURI - The namespace URI of the documentelement to create, or null. Parameters: qualifiedName - The qualified name of the documentelement to create. Parameters: doctype - The type of document to be created or null. When doctype is not null, itsNode.ownerDocument attribute is set tothe document being created. Document A new Document object. throws: DOMException - WRONG_DOCUMENT_ERR: Raised if doctype hasalready been used with a different document. since: WD-DOM-Level-2-19990923 |
createDocumentType | public DocumentType createDocumentType(String qualifiedName, String publicID, String systemID)(Code) | | Introduced in DOM Level 2.
Creates an empty DocumentType node.
Parameters: qualifiedName - The qualified name of the document type to be created. Parameters: publicID - The document type public identifier. Parameters: systemID - The document type system identifier. since: WD-DOM-Level-2-19990923 |
createLSInput | public LSInput createLSInput()(Code) | | DOM Level 3 LS CR - Experimental.
Create a new empty input source.
The newly created input object. |
createLSOutput | public LSOutput createLSOutput()(Code) | | DOM Level 3 LS CR - Experimental.
Create a new empty output destination object where
LSOutput.characterStream ,
LSOutput.byteStream , LSOutput.systemId ,
LSOutput.encoding are null.
The newly created output object. |
createLSParser | public LSParser createLSParser(short mode, String schemaType) throws DOMException(Code) | | DOM Level 3 LS CR - Experimental.
Create a new LSParser . The newly constructed parser may
then be configured by means of its DOMConfiguration
object, and used to parse documents by means of its parse
method.
Parameters: mode - The mode argument is eitherMODE_SYNCHRONOUS or MODE_ASYNCHRONOUS , ifmode is MODE_SYNCHRONOUS then theLSParser that is created will operate in synchronousmode, if it's MODE_ASYNCHRONOUS then theLSParser that is created will operate in asynchronousmode. Parameters: schemaType - An absolute URI representing the type of the schemalanguage used during the load of a Document using thenewly created LSParser . Note that no lexical checkingis done on the absolute URI. In order to create aLSParser for any kind of schema types (i.e. theLSParser will be free to use any schema found), use the valuenull .Note: For W3C XML Schema [XML Schema Part 1], applications must use the value"http://www.w3.org/2001/XMLSchema" . For XML DTD [XML 1.0],applications must use the value"http://www.w3.org/TR/REC-xml" . Other Schema languagesare outside the scope of the W3C and therefore should recommend anabsolute URI in order to use this method. The newly created LSParser object. ThisLSParser is either synchronous or asynchronousdepending on the value of the mode argument. Note: By default, the newly created LSParser does not contain a DOMErrorHandler , i.e. the value ofthe "error-handler" configuration parameter is null . However, implementationsmay provide a default error handler at creation time. In that case,the initial value of the "error-handler" configurationparameter on the new created LSParser contains areference to the default error handler. exception: DOMException - NOT_SUPPORTED_ERR: Raised if the requested mode or schema type isnot supported. |
createLSSerializer | public LSSerializer createLSSerializer()(Code) | | DOM Level 3 LS CR - Experimental.
Create a new LSSerializer object.
The newly created LSSerializer object.Note: By default, the newly createdLSSerializer has no DOMErrorHandler ,i.e. the value of the "error-handler" configurationparameter is null . However, implementations mayprovide a default error handler at creation time. In that case, theinitial value of the "error-handler" configurationparameter on the new created LSSerializer contains areference to the default error handler. |
getDOMImplementation | public static DOMImplementation getDOMImplementation()(Code) | | NON-DOM: Obtain and return the single shared object
|
hasFeature | public boolean hasFeature(String feature, String version)(Code) | | Test if the DOM implementation supports a specific "feature" --
currently meaning language and level thereof.
Parameters: feature - The package name of the feature to test.In Level 1, supported values are "HTML" and "XML" (case-insensitive).At this writing, org.apache.xerces.dom supports only XML. Parameters: version - The version number of the feature being tested.This is interpreted as "Version of the DOM API supported for thespecified Feature", and in Level 1 should be "1.0" true iff this implementation is compatible with the specifiedfeature and version. |
releaseDTDLoader | final synchronized void releaseDTDLoader(String xmlVersion, XMLDTDLoader loader)(Code) | | NON-DOM: release DTD loader
|
|
|