Class PMRDOMImplementationImpl
java.lang.Object
org.episteme.natural.chemistry.loaders.cml.dom.pmr.PMRNodeImpl
org.episteme.natural.chemistry.loaders.cml.dom.pmr.PMRDOMImplementationImpl
- All Implemented Interfaces:
DOMImplementation, Node
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DOMImplementationThe underlying generic W3C DOM implementation.Fields inherited from class PMRNodeImpl
childNodes, delegateNode, parentNode, pmrDocument, siblingNodesFields inherited from interface Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new PMRDOMImplementationImpl object.protectedCreates a new PMRDOMImplementationImpl that wraps a base implementation. -
Method Summary
Modifier and TypeMethodDescriptioncreateDocument(String s, String t, DocumentType dt) Creates a new DOM Document of the specified type with its document element.createDocumentType(String s, String t, String v) Creates an empty DocumentType node.getFeature(String feature, String version) Returns an object which implements the specialized APIs of the specified feature.booleanhasFeature(String feature, String version) Test if the DOM implementation implements a specific feature.Methods inherited from class PMRNodeImpl
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getDelegateNode, getDelegateParentNode, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setDelegateNode, setNodeValue, setOwnerDocument, setOwnerDocumentRecursively, setPrefix, setTextContent, setUserData, toString, wrapRecursively
-
Field Details
-
domImplementation
The underlying generic W3C DOM implementation.
-
-
Constructor Details
-
PMRDOMImplementationImpl
protected PMRDOMImplementationImpl()Creates a new PMRDOMImplementationImpl object. -
PMRDOMImplementationImpl
Creates a new PMRDOMImplementationImpl that wraps a base implementation.- Parameters:
di- the base DOM implementation to wrap
-
-
Method Details
-
createDocument
Creates a new DOM Document of the specified type with its document element.- Specified by:
createDocumentin interfaceDOMImplementation- Parameters:
s- the namespace URI of the document element to createt- the qualified name of the document element to be createddt- the type of document to be created or null- Returns:
- a new PMRDocument object with its document element
-
hasFeature
Test if the DOM implementation implements a specific feature.- Specified by:
hasFeaturein interfaceDOMImplementation- Parameters:
feature- the name of the feature to testversion- the version number of the feature to test- Returns:
- true if the feature is implemented, false otherwise
-
getFeature
Returns an object which implements the specialized APIs of the specified feature.- Specified by:
getFeaturein interfaceDOMImplementation- Specified by:
getFeaturein interfaceNode- Overrides:
getFeaturein classPMRNodeImpl- Parameters:
feature- the name of the featureversion- the version number of the feature- Returns:
- the specialized object or null
-
createDocumentType
Creates an empty DocumentType node.- Specified by:
createDocumentTypein interfaceDOMImplementation- Parameters:
s- the qualified name of the document type to be createdt- the public identifier of the external subsetv- the system identifier of the external subset- Returns:
- a new DocumentType node with ownerDocument set to null
-