| java.lang.Object org.netbeans.tax.dom.DOMImplementationImpl
Method Summary | |
public Document | createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) Creates a DOM Document object of the specified type with its document
element.
Parameters: namespaceURI - The namespace URI of the document element tocreate. Parameters: qualifiedName - The qualified name of the document element to becreated. Parameters: doctype - The type of document to be created or null .When doctype is not null , itsNode.ownerDocument attribute is set to the documentbeing created. | public DocumentType | createDocumentType(String qualifiedName, String publicId, String systemId) Creates an empty DocumentType node. | public Object | getFeature(String a, String b) | public boolean | hasFeature(String feature, String version) Test if the DOM implementation implements a specific feature.
Parameters: feature - The name of the feature to test (case-insensitive). |
DOMImplementationImpl | public DOMImplementationImpl()(Code) | | Creates a new instance of DOMImplementationImpl
|
createDocument | public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException(Code) | | Creates a DOM Document object of the specified type with its document
element.
Parameters: namespaceURI - The namespace URI of the document element tocreate. Parameters: qualifiedName - The qualified name of the document element to becreated. Parameters: doctype - The type of document to be created or null .When doctype is not null , itsNode.ownerDocument attribute is set to the documentbeing created. A new Document object. exception: DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified namecontains an illegal character. NAMESPACE_ERR: Raised if the qualifiedName ismalformed, if the qualifiedName has a prefix and thenamespaceURI is null , or if thequalifiedName has a prefix that is "xml" and thenamespaceURI is different from "http://www.w3.org/XML/1998/namespace" , or if the DOMimplementation does not support the "XML" feature buta non-null namespace URI was provided, since namespaces weredefined by XML. WRONG_DOCUMENT_ERR: Raised if doctype has alreadybeen used with a different document or was created from a differentimplementation. NOT_SUPPORTED_ERR: May be raised by DOM implementations which donot support the "XML" feature, if they choose not to support thismethod. Other features introduced in the future, by the DOM WG orin extensions defined by other groups, may also demand support forthis method; please consult the definition of the feature to see ifit requires this method. since: DOM Level 2 |
createDocumentType | public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException(Code) | | Creates an empty DocumentType node. Entity declarations
and notations are not made available. Entity reference expansions and
default attribute additions do not occur. It is expected that a
future version of the DOM will provide a way for populating a
DocumentType .
Parameters: qualifiedName - The qualified name of the document type to becreated. Parameters: publicId - The external subset public identifier. Parameters: systemId - The external subset system identifier. A new DocumentType node withNode.ownerDocument set to null . exception: DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified namecontains an illegal character. NAMESPACE_ERR: Raised if the qualifiedName ismalformed. NOT_SUPPORTED_ERR: May be raised by DOM implementations which donot support the "XML" feature, if they choose not tosupport this method. Other features introduced in the future, bythe DOM WG or in extensions defined by other groups, may alsodemand support for this method; please consult the definition ofthe feature to see if it requires this method. since: DOM Level 2 |
hasFeature | public boolean hasFeature(String feature, String version)(Code) | | Test if the DOM implementation implements a specific feature.
Parameters: feature - The name of the feature to test (case-insensitive). Thevalues used by DOM features are defined throughout the DOM Level 2specifications and listed in the section. The name must be an XMLname. To avoid possible conflicts, as a convention, names referringto features defined outside the DOM specification should be madeunique. Parameters: version - This is the version number of the feature to test. InLevel 2, the string can be either "2.0" or "1.0". If the version isnot specified, supporting any version of the feature causes themethod to return true . true if the feature is implemented in thespecified version, false otherwise. |
|
|