Class MathMLContentTokenImpl

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
org.episteme.core.mathematics.loaders.mathml.MathMLContentTokenImpl
All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, MathMLContentElement, MathMLContentToken, MathMLElement, MathMLNodeList, Node, NodeList, TypeInfo
Direct Known Subclasses:
MathMLCiElementImpl, MathMLCnElementImpl, MathMLCsymbolElementImpl

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

    • MathMLContentTokenImpl

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

    • getDefinitionURL

      public String getDefinitionURL()
      Returns the definition URL of the token.
      Specified by:
      getDefinitionURL in interface MathMLContentToken
      Returns:
      the definition URL
    • setDefinitionURL

      public void setDefinitionURL(String definitionURL)
      Sets the definition URL of the token.
      Specified by:
      setDefinitionURL in interface MathMLContentToken
      Parameters:
      definitionURL - the definition URL to set
    • getEncoding

      public String getEncoding()
      Returns the encoding of the token.
      Specified by:
      getEncoding in interface MathMLContentToken
      Returns:
      the encoding
    • setEncoding

      public void setEncoding(String encoding)
      Sets the encoding of the token.
      Specified by:
      setEncoding in interface MathMLContentToken
      Parameters:
      encoding - the encoding to set
    • getArguments

      public MathMLNodeList getArguments()
      Returns a list of arguments (excluding sep elements).
      Specified by:
      getArguments in interface MathMLContentToken
      Returns:
      the argument list
    • getArgument

      public Node getArgument(int index)
      Returns the argument at the specified index.
      Specified by:
      getArgument in interface MathMLContentToken
      Parameters:
      index - the argument index (1-based)
      Returns:
      the argument node
    • setArgument

      public Node setArgument(Node newArgument, int index)
      Sets the argument at the specified index.
      Specified by:
      setArgument in interface MathMLContentToken
      Parameters:
      newArgument - the new argument node
      index - the argument index (1-based)
      Returns:
      the replaced node
    • insertArgument

      public Node insertArgument(Node newArgument, int index)
      Inserts an argument at the specified index.
      Specified by:
      insertArgument in interface MathMLContentToken
      Parameters:
      newArgument - the new argument to insert
      index - the index where to insert (1-based)
      Returns:
      the inserted node
    • removeArgument

      public Node removeArgument(int index)
      Removes the argument at the specified index.
      Specified by:
      removeArgument in interface MathMLContentToken
      Parameters:
      index - the argument index (1-based)
      Returns:
      the removed node
    • deleteArgument

      public void deleteArgument(int index)
      Deletes the argument at the specified index.
      Specified by:
      deleteArgument in interface MathMLContentToken
      Parameters:
      index - the argument index (1-based)