Class MathMLElementImpl

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.episteme.core.mathematics.loaders.mathml.MathMLElementImpl
All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, MathMLElement, MathMLNodeList, Node, NodeList, TypeInfo
Direct Known Subclasses:
MathMLAlignGroupElementImpl, MathMLAlignMarkElementImpl, MathMLAnnotationElementImpl, MathMLConditionElementImpl, MathMLContentContainerImpl, MathMLContentTokenImpl, MathMLFractionElementImpl, MathMLGlyphElementImpl, MathMLMathElementImpl, MathMLMatrixElementImpl, MathMLMatrixrowElementImpl, MathMLPredefinedSymbolImpl, MathMLPresentationContainerImpl, MathMLPresentationTokenImpl, MathMLRadicalElementImpl, MathMLScriptElementImpl, MathMLSpaceElementImpl, MathMLUnderOverElementImpl, MathMLVectorElementImpl, MathMLXMLAnnotationElementImpl

public class MathMLElementImpl extends org.apache.xerces.dom.ElementNSImpl implements MathMLElement, MathMLNodeList
Implements a MathML element (and node list).
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • MathMLElementImpl

      public MathMLElementImpl(MathMLDocumentImpl owner, String qualifiedName)
      Constructs a MathML element.
      Parameters:
      owner - the MathML document that owns this element
      qualifiedName - the qualified name of the element
  • Method Details

    • getClassName

      public String getClassName()
      Returns the class attribute value.
      Specified by:
      getClassName in interface MathMLElement
      Returns:
      the class name
    • setClassName

      public void setClassName(String className)
      Sets the class attribute value.
      Specified by:
      setClassName in interface MathMLElement
      Parameters:
      className - the class name to set
    • getMathElementStyle

      public String getMathElementStyle()
      Returns the style attribute value.
      Specified by:
      getMathElementStyle in interface MathMLElement
      Returns:
      the element style
    • setMathElementStyle

      public void setMathElementStyle(String mathElementStyle)
      Sets the style attribute value.
      Specified by:
      setMathElementStyle in interface MathMLElement
      Parameters:
      mathElementStyle - the style to set
    • getId

      public String getId()
      Returns the id attribute value.
      Specified by:
      getId in interface MathMLElement
      Returns:
      the element id
    • setId

      public void setId(String id)
      Sets the id attribute value.
      Specified by:
      setId in interface MathMLElement
      Parameters:
      id - the id to set
    • getHref

      public String getHref()
      Returns the xlink:href attribute value.
      Specified by:
      getHref in interface MathMLElement
      Returns:
      the href link
    • setHref

      public void setHref(String href)
      Sets the xlink:href attribute value.
      Specified by:
      setHref in interface MathMLElement
      Parameters:
      href - the href link to set
    • getXref

      public String getXref()
      Returns the xref attribute value.
      Specified by:
      getXref in interface MathMLElement
      Returns:
      the cross-reference
    • setXref

      public void setXref(String xref)
      Sets the xref attribute value.
      Specified by:
      setXref in interface MathMLElement
      Parameters:
      xref - the cross-reference to set
    • getOwnerMathElement

      public MathMLMathElement getOwnerMathElement()
      Returns the nearest ancestor math element.
      Specified by:
      getOwnerMathElement in interface MathMLElement
      Returns:
      the owner math element, or null if this is the math element