Interface AbstractCMLDocument

All Superinterfaces:
CMLNode, Document, Node, PMRDocument
All Known Implementing Classes:
AbstractCMLDocumentImpl

public interface AbstractCMLDocument extends PMRDocument, CMLNode
CORE InterfaceDTD ClassThe interface for any Document objects There are NO Core Methods.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Field Details

  • Method Details

    • getFirstElement

      Element getFirstElement(String name)
      gets first element of given type
      Parameters:
      name - element to return
      Returns:
      Element the element (null if none)
    • getElementVector

      Vector<Element> getElementVector(String name)
      gets all element of given type (included nested children)
      Parameters:
      name - elements to return
      Returns:
      Vector of elements (empty if none)
    • getElementList

      Element[] getElementList(String name)
      gets all element of given type (included nested children)
      Parameters:
      name - elements to return
      Returns:
      array of elements (empty if none)
    • createSubclassedElement

      Element createSubclassedElement(String tagName)
      creates new Element of given subclass
      Parameters:
      tagName - determines the class
      Returns:
      the new element
    • subclass

      Element subclass(Element oldEl)
      Wraps an existing W3C Element in a CML-specific subclass implementation.
      Parameters:
      oldEl - the generic W3C element to subclass
      Returns:
      the subclassed element instance
    • createAbstractBase

      AbstractBase createAbstractBase()
      creates new AbstractBase
      Returns:
      the new element
    • setDebug

      void setDebug(boolean d)
      toggle debugging
      Parameters:
      d - debug
    • getDebug

      boolean getDebug()
      debug status
      Returns:
      is debug set
    • clone

      AbstractBase clone(AbstractBase element) throws CMLException
      clone element in context of document.
      Parameters:
      element - to clone (may or may not be owned by this)
      Returns:
      the cloned element (owner is this)
      Throws:
      CMLException - cannot clone non-AbstractBase
    • updateDelegates

      void updateDelegates()
      update delegates. updates documentElement delegates (content and attributes) then recurses through children
    • updateDOM

      void updateDOM()
      update DOM. updates documentElement DOM (content and attributes) then recurses through children