Class MathMLCnElementImpl

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
All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, MathMLCnElement, MathMLContentElement, MathMLContentToken, MathMLElement, MathMLNodeList, Node, NodeList, TypeInfo

public class MathMLCnElementImpl extends MathMLContentTokenImpl implements MathMLCnElement
Implements a MathML numeric content element.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • MathMLCnElementImpl

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

    • getType

      public String getType()
      Returns the type of the number (real, integer, complex, etc.).
      Specified by:
      getType in interface MathMLCnElement
      Returns:
      the number type, defaults to "real"
    • setType

      public void setType(String type)
      Sets the type of the number.
      Specified by:
      setType in interface MathMLCnElement
      Parameters:
      type - the number type to set
    • getBase

      public String getBase()
      Returns the base of the number representation.
      Specified by:
      getBase in interface MathMLCnElement
      Returns:
      the number base, defaults to "10"
    • setBase

      public void setBase(String base)
      Sets the base of the number representation.
      Specified by:
      setBase in interface MathMLCnElement
      Parameters:
      base - the number base to set
    • getNargs

      public int getNargs()
      Returns the number of arguments (parts separated by sep elements).
      Specified by:
      getNargs in interface MathMLCnElement
      Returns:
      the argument count