|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MathMLContainer
This is an abstract interface containing functionality required by MathML elements that may contain arbitrarily many child elements. No elements are directly supported by this interface; all instances are instances of either MathMLPresentationContainer, MathMLContentContainer, or MathMLMathElement.
Method Summary | |
---|---|
void |
deleteArgument(int index)
This method deletes the index-th child element that is an argument of this element. |
void |
deleteDeclaration(int index)
This method deletes the MathMLDeclareElement representing the index-th declare child element of this element. |
MathMLElement |
getArgument(int index)
This method returns the indexth child argument element of this element. |
MathMLNodeList |
getArguments()
This attribute accesses the child MathMLElements of this element which are arguments of it, as a MathMLNodeList. |
MathMLDeclareElement |
getDeclaration(int index)
This method retrieves the index-th child declare element of this element. |
MathMLNodeList |
getDeclarations()
Provides access to the declare elements which are children of this element, in a MathMLNodeList. |
int |
getNArguments()
The number of child elements of this element which represent arguments of the element, as opposed to qualifiers or declare elements. |
MathMLElement |
insertArgument(MathMLElement newArgument,
int index)
This method inserts newArgument before the current index-th argument of this element. |
MathMLDeclareElement |
insertDeclaration(MathMLDeclareElement newDeclaration,
int index)
This method inserts newDeclaration before the current index-th child declare element of this element. |
MathMLElement |
removeArgument(int index)
This method deletes the index-th child element that is an argument of this element, and returns it to the caller. |
MathMLDeclareElement |
removeDeclaration(int index)
This method removes the MathMLDeclareElement representing the index-th declare child element of this element, and returns it to the caller. |
MathMLElement |
setArgument(MathMLElement newArgument,
int index)
This method sets newArgument as the index-th argument of this element. |
MathMLDeclareElement |
setDeclaration(MathMLDeclareElement newDeclaration,
int index)
This method inserts newDeclaration as the index-th child declaration of this element. |
Method Detail |
---|
int getNArguments()
MathMLNodeList getArguments()
MathMLNodeList getDeclarations()
MathMLElement getArgument(int index) throws DOMException
index
- The one-based index of the argument to be retrieved.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than the number
of child elements.MathMLElement setArgument(MathMLElement newArgument, int index) throws DOMException
newArgument
- A MathMLElement representing the element that is to be set
as the index-th argument of this element.index
- The index of the argument that is to be set to newArgument.
The first argument is numbered 1. If index is one more than
the current number of arguments, a new argument is appended.
DOMException
- HIERARCHY_REQUEST_ERR: Raised if this element does not
permit a child element of the type of newArgument, if this
is a MathMLContentContainer and newArgument is a qualifier
element, or if newElement is a MathMLDeclareElement.
INDEX_SIZE_ERR: Raised if index is greater than one more
than the number of child elements.MathMLElement insertArgument(MathMLElement newArgument, int index) throws DOMException
newArgument
- A MathMLElement representing the element that is to be
inserted as a child argument of this element.index
- The one-based index of the position before which newArgument
is to be inserted. The first argument is numbered 1.
DOMException
- HIERARCHY_REQUEST_ERR: Raised if this element does not
permit a child argument of the type of newArgument, or, for
MathMLContentContainers, if newArgument represents a
qualifier element. INDEX_SIZE_ERR: Raised if index is
greater than one more than the number of child arguments.void deleteArgument(int index) throws DOMException
index
- The one-based index of the argument to be deleted.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than the number
of child elements.MathMLElement removeArgument(int index) throws DOMException
index
- The one-based index of the argument to be removed.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than the number
of child elements.MathMLDeclareElement getDeclaration(int index) throws DOMException
index
- A one-based index into the list of child declare elements of
this element giving the position of the declare element to
be retrieved.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than the number
of child declare elements.MathMLDeclareElement setDeclaration(MathMLDeclareElement newDeclaration, int index) throws DOMException
newDeclaration
- A MathMLDeclareElement to be inserted as the index-th child
declare element.index
- A one-based index into the list of child declare elements of
this element giving the position into which newDeclaration
is to be inserted. If index is one more than the number of
declare children of this element, newDeclaration is appended
as the last declare child.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than one more
than the number of child declare elements.
HIERARCHY_REQUEST_ERR: Raised if this element does not
permit child declare elements.MathMLDeclareElement insertDeclaration(MathMLDeclareElement newDeclaration, int index) throws DOMException
newDeclaration
- A MathMLDeclareElement to be inserted as the index-th child
declare element.index
- A one-based index into the list of child declare elements of
this element giving the position before which newDeclaration
is to be inserted. If index is 0 or if it is one more than
the number of child declare children, newDeclaration is
appended as the last child declare element.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than one more
than the number of child declare elements.
HIERARCHY_REQUEST_ERR: Raised if this element does not
permit child declare elements.MathMLDeclareElement removeDeclaration(int index) throws DOMException
index
- The one-based index of the declare element to be removed.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than the number
of child declare elements.void deleteDeclaration(int index) throws DOMException
index
- The one-based index of the declare element to be removed.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than the number
of child declare elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |