|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MathMLVectorElement
vector is the container element for a vector.
Field Summary |
---|
Method Summary | |
---|---|
void |
deleteComponent(int index)
A convenience method to delete an element. |
MathMLContentElement |
getComponent(int index)
A convenience method to retrieve a component. |
int |
getNcomponents()
The number of components in the vector. |
MathMLContentElement |
insertComponent(MathMLContentElement newComponent,
int index)
A convenience method to insert a new component in the vector before the current index-th component. |
MathMLContentElement |
removeComponent(int index)
A convenience method to remove a component from a vector and return it to the caller. |
MathMLContentElement |
setComponent(MathMLContentElement newComponent,
int index)
A convenience method to set the index-th component of the vector to newComponent. |
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 |
Method Detail |
---|
int getNcomponents()
MathMLContentElement getComponent(int index)
index
- Position of the component in the list of components. The
first element is numbered 1.
MathMLContentElement insertComponent(MathMLContentElement newComponent, int index) throws DOMException
newComponent
- A MathMLContentElement representing the component that is to
be added.index
- Position of the component in the list of components. The
first component is numbered 1.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than one more
than the current number of components of this vector
element.MathMLContentElement setComponent(MathMLContentElement newComponent, int index) throws DOMException
newComponent
- A MathMLContentElement representing the element that is to
be the index-th component of the vector.index
- Position of the component in the list of components. The
first element is numbered 1.
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than one more
than the current number of components of this vector
element.void deleteComponent(int index) throws DOMException
index
- Position of the component in the vector. The position of the
first component is 1
DOMException
- INDEX_SIZE_ERR: Raised if index is greater than the current
number of components of this vector element.MathMLContentElement removeComponent(int index)
index
- Position of the component in the list of components. The
first element is numbered 1.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |