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

public class PMRDOMImplementationImpl extends PMRNodeImpl implements DOMImplementation
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Field Details

    • domImplementation

      protected DOMImplementation domImplementation
      The underlying generic W3C DOM implementation.
  • Constructor Details

    • PMRDOMImplementationImpl

      protected PMRDOMImplementationImpl()
      Creates a new PMRDOMImplementationImpl object.
    • PMRDOMImplementationImpl

      protected PMRDOMImplementationImpl(DOMImplementation di)
      Creates a new PMRDOMImplementationImpl that wraps a base implementation.
      Parameters:
      di - the base DOM implementation to wrap
  • Method Details

    • createDocument

      public Document createDocument(String s, String t, DocumentType dt)
      Creates a new DOM Document of the specified type with its document element.
      Specified by:
      createDocument in interface DOMImplementation
      Parameters:
      s - the namespace URI of the document element to create
      t - the qualified name of the document element to be created
      dt - the type of document to be created or null
      Returns:
      a new PMRDocument object with its document element
    • hasFeature

      public boolean hasFeature(String feature, String version)
      Test if the DOM implementation implements a specific feature.
      Specified by:
      hasFeature in interface DOMImplementation
      Parameters:
      feature - the name of the feature to test
      version - the version number of the feature to test
      Returns:
      true if the feature is implemented, false otherwise
    • getFeature

      public Object getFeature(String feature, String version)
      Returns an object which implements the specialized APIs of the specified feature.
      Specified by:
      getFeature in interface DOMImplementation
      Specified by:
      getFeature in interface Node
      Overrides:
      getFeature in class PMRNodeImpl
      Parameters:
      feature - the name of the feature
      version - the version number of the feature
      Returns:
      the specialized object or null
    • createDocumentType

      public DocumentType createDocumentType(String s, String t, String v)
      Creates an empty DocumentType node.
      Specified by:
      createDocumentType in interface DOMImplementation
      Parameters:
      s - the qualified name of the document type to be created
      t - the public identifier of the external subset
      v - the system identifier of the external subset
      Returns:
      a new DocumentType node with ownerDocument set to null