Interface MathMLContentContainer

All Superinterfaces:
Element, MathMLContainer, MathMLContentElement, MathMLElement, Node
All Known Subinterfaces:
MathMLApplyElement, MathMLBvarElement, MathMLFnElement, MathMLLambdaElement, MathMLListElement, MathMLSetElement

public interface MathMLContentContainer extends MathMLContentElement, MathMLContainer
This interface supports the MathML Content elements that may contain child Content elements. The elements directly supported by MathMLContentContainer include: reln (deprecated), lambda, lowlimit, uplimit, degree, domainofapplication, and momentabout. Interfaces derived from MathMLContentContainer support the elements apply, fn, interval, condition, declare, bvar, set, list, vector, matrix, and matrixrow.
  • Method Details

    • getNBoundVariables

      int getNBoundVariables()
      The number of bvar child elements of this element.
      Returns:
      value of the nBoundVariables attribute.
    • getCondition

      MathMLConditionElement getCondition()
      This attribute represents the condition child element of this node. See .
      Returns:
      value of the condition attribute.
    • setCondition

      void setCondition(MathMLConditionElement condition)
      setter for the condition attribute.
      Parameters:
      condition - new value for condition.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised if this element does not permit a child condition element. In particular, raised if this element is not a apply, set, or list.
      See Also:
    • getOpDegree

      MathMLElement getOpDegree()
      This attribute represents the degree child element of this node. This expresses, for instance, the degree of differentiation if this element is a bvar child of an apply element whose first child is a diff or partialdiff. If this is an apply element whose first child is a partialdiff, the opDegree attribute, if present, represents the total degree of differentiation. See .
      Returns:
      value of the opDegree attribute.
    • setOpDegree

      void setOpDegree(MathMLElement opDegree)
      setter for the opDegree attribute.
      Parameters:
      opDegree - new value for opDegree.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised if this element does not permit a child degree element. In particular, raised if this element is not a bvar or apply.
      See Also:
    • getDomainOfApplication

      MathMLElement getDomainOfApplication()
      This attribute represents the domainofapplication child element of this node, if present. This may express, for instance, the domain of integration if this element is an apply element whose first child is an integral operator (int). See .
      Returns:
      value of the domainOfApplication attribute.
    • setDomainOfApplication

      void setDomainOfApplication(MathMLElement domainOfApplication)
      setter for the domainOfApplication attribute.
      Parameters:
      domainOfApplication - new value for domainOfApplication.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised if this element does not permit a child domainofapplication element.
      See Also:
    • getMomentAbout

      MathMLElement getMomentAbout()
      This attribute represents the momentabout child element of this node, if present. This typically expresses the point about which a statistical moment is to be calculated, if this element is an apply element whose first child is a moment. See .
      Returns:
      value of the momentAbout attribute.
    • setMomentAbout

      void setMomentAbout(MathMLElement momentAbout)
      setter for the momentAbout attribute.
      Parameters:
      momentAbout - new value for momentAbout.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised if this element does not permit a child momentabout element. In particular, raised if this element is not an apply whose first child is a moment.
      See Also:
    • getBoundVariable

      MathMLBvarElement getBoundVariable(int index)
      This method retrieves the index-th MathMLBvarElement child of the MathMLElement. Note that only bvar child elements are counted in determining the index-th bound variable.
      Parameters:
      index - The one-based index into the bound variable children of this element of the MathMLBvarElement to be retrieved.
      Returns:
      The MathMLBvarElement representing the index-th bvar child of this element.
    • insertBoundVariable

      MathMLBvarElement insertBoundVariable(MathMLBvarElement newBVar, int index) throws DOMException
      This method inserts a MathMLBvarElement as a child node before the current index-th bound variable child of this MathMLElement. If index is 0, newBVar is appended as the last bound variable child. This has the effect of adding a bound variable to the expression this element represents. Note that the new bound variable is inserted as the index-th bvar child node, not necessarily as the index-th child node. The point of the method is to allow insertion of bound variables without requiring the caller to calculate the exact order of child qualifier elements.
      Parameters:
      newBVar - A MathMLBvarElement representing the bvar element being added.
      index - The one-based index into the bound variable children of this element before which newBVar is to be inserted.
      Returns:
      The MathMLBvarElement being added.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised if this element does not permit child bvar elements.
    • setBoundVariable

      MathMLBvarElement setBoundVariable(MathMLBvarElement newBVar, int index) throws DOMException
      This method sets the index-th bound variable child of this MathMLElement to newBVar. This has the effect of setting a bound variable in the expression this element represents. Note that the new bound variable is inserted as the index-th bvar child node, not necessarily as the index-th child node. The point of the method is to allow insertion of bound variables without requiring the caller to calculate the exact order of child qualifier elements. If there is already a bvar at the index-th position, it is replaced by newBVar.
      Parameters:
      newBVar - The new MathMLBvarElement child of this element being set.
      index - The one-based index into the bound variable children of this element at which newBVar is to be inserted.
      Returns:
      The MathMLBvarElement being set.
      Throws:
      DOMException - HIERARCHY_REQUEST_ERR: Raised if this element does not permit child bvar elements.
    • deleteBoundVariable

      void deleteBoundVariable(int index)
      This method deletes the index-th MathMLBvarElement child of the MathMLElement. This has the effect of removing this bound variable from the list of qualifiers affecting the element this represents.
      Parameters:
      index - The one-based index into the bound variable children of this element of the MathMLBvarElement to be removed.
    • removeBoundVariable

      MathMLBvarElement removeBoundVariable(int index)
      This method removes the index-th MathMLBvarElement child of the MathMLElement and returns it to the caller. This has the effect of removing this bound variable from the list of qualifiers affecting the element this represents.
      Parameters:
      index - The one-based index into the bound variable children of this element of the MathMLBvarElement to be removed.
      Returns:
      The MathMLBvarElement being removed.