org.w3c.dom.mathml
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.


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 void deleteBoundVariable(int index)
          This method deletes the index-th MathMLBvarElement child of the MathMLElement.
 MathMLBvarElement getBoundVariable(int index)
          This method retrieves the index-th MathMLBvarElement child of the MathMLElement.
 MathMLConditionElement getCondition()
          This attribute represents the condition child element of this node.
 MathMLElement getDomainOfApplication()
          This attribute represents the domainofapplication child element of this node, if present.
 MathMLElement getMomentAbout()
          This attribute represents the momentabout child element of this node, if present.
 int getNBoundVariables()
          The number of bvar child elements of this element.
 MathMLElement getOpDegree()
          This attribute represents the degree child element of this node.
 MathMLBvarElement insertBoundVariable(MathMLBvarElement newBVar, int index)
          This method inserts a MathMLBvarElement as a child node before the current index-th bound variable child of this MathMLElement.
 MathMLBvarElement removeBoundVariable(int index)
          This method removes the index-th MathMLBvarElement child of the MathMLElement and returns it to the caller.
 MathMLBvarElement setBoundVariable(MathMLBvarElement newBVar, int index)
          This method sets the index-th bound variable child of this MathMLElement to newBVar.
 void setCondition(MathMLConditionElement condition)
          setter for the condition attribute.
 void setDomainOfApplication(MathMLElement domainOfApplication)
          setter for the domainOfApplication attribute.
 void setMomentAbout(MathMLElement momentAbout)
          setter for the momentAbout attribute.
 void setOpDegree(MathMLElement opDegree)
          setter for the opDegree attribute.
 
Methods inherited from interface org.w3c.dom.mathml.MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXref
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.w3c.dom.mathml.MathMLContainer
deleteArgument, deleteDeclaration, getArgument, getArguments, getDeclaration, getDeclarations, getNArguments, insertArgument, insertDeclaration, removeArgument, removeDeclaration, setArgument, setDeclaration
 

Method Detail

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:
getCondition()

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:
getOpDegree()

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:
getDomainOfApplication()

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:
getMomentAbout()

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.


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.