Interface MathMLMatrixrowElement

All Superinterfaces:
Element, MathMLContentElement, MathMLElement, Node

public interface MathMLMatrixrowElement extends MathMLContentElement
The matrixrow element is the container element for the elements of a matrix.
  • Method Details

    • getNEntries

      int getNEntries()
      The number of entries in the row.
      Returns:
      value of the nEntries attribute.
    • getEntry

      MathMLContentElement getEntry(int index) throws DOMException
      A convenience method to retrieve the contents of an entry by index.
      Parameters:
      index - Position of the entry in the row. The first entry is numbered 1.
      Returns:
      The MathMLContentElement element representing the index-th entry in the row.
      Throws:
      DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number of entries in the row.
    • insertEntry

      MathMLContentElement insertEntry(MathMLContentElement newEntry, int index) throws DOMException
      A convenience method to insert an entry before the current index-th entry of the row. If index is 0, newEntry is appended as the last entry. Note that this method increases the size of the matrixrow.
      Parameters:
      newEntry - The MathMLContentElement to be representing the new entry to be inserted into the row.
      index - The index before which newEntry is to be inserted in the row. The first entry is numbered 1.
      Returns:
      The MathMLContentElement child of this MathMLMatrixrowElement representing newEntry in the DOM.
      Throws:
      DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number of entries in the row.
    • setEntry

      MathMLContentElement setEntry(MathMLContentElement newEntry, int index) throws DOMException
      A convenience method to set the contents of the entry at position index in the row to newEntry. If there is already a entry at the specified index, it is replaced by the new entry.
      Parameters:
      newEntry - The MathMLContentElement representing the element that is to be the index-th entry.
      index - The index of the entry that is to be set equal to newEntry. The first entry is numbered 1.
      Returns:
      The MathMLContentElement child of this MathMLMatrixRowElement representing newEntry in the DOM.
      Throws:
      DOMException - INDEX_SIZE_ERR: Raised if index is greater than one more than the number of elements in the row.
    • deleteEntry

      void deleteEntry(int index) throws DOMException
      A convenience method to delete an entry. The deletion changes the indices of the following entries.
      Parameters:
      index - Position of the entry to be deleted in the row. The first entry is numbered 1.
      Throws:
      DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number of entries in the row.
    • removeEntry

      MathMLContentElement removeEntry(int index) throws DOMException
      A convenience method to remove an entry from the row and return the removed entry to the caller.
      Parameters:
      index - Position of the entry to be removed from the row. The first entry is numbered 1.
      Returns:
      The MathMLContentElement being removed from the row.
      Throws:
      DOMException - INDEX_SIZE_ERR: Raised if index is greater than the number of entries in the row.