|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MathMLSemanticsElement
This interface represents the semantics element in MathML.
| Field Summary |
|---|
| Method Summary | |
|---|---|
void |
deleteAnnotation(int index)
A convenience method to delete the index-th alternate content associated with this semantics element. |
MathMLElement |
getAnnotation(int index)
This method gives access to the index-th alternate content associated with a semantics element. |
MathMLElement |
getBody()
This attribute represents the first child of the semantics element, i.e. the child giving the primary content represented by the element. |
int |
getNAnnotations()
Represents the number of annotation or annotation-xml children of the semantics element, i.e. the number of alternate content forms for this element. |
MathMLElement |
insertAnnotation(MathMLElement newAnnotation,
int index)
This method inserts newAnnotation before the current index-th alternate content associated with a semantics element. |
MathMLElement |
removeAnnotation(int index)
A convenience method to delete the index-th alternate content associated with this semantics element, and to return it to the caller. |
MathMLElement |
setAnnotation(MathMLElement newAnnotation,
int index)
This method allows setting or replacement of the index-th alternate content associated with a semantics element. |
void |
setBody(MathMLElement body)
setter for the body 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 |
| Method Detail |
|---|
MathMLElement getBody()
void setBody(MathMLElement body)
body - new value for body.getBody()int getNAnnotations()
MathMLElement getAnnotation(int index)
index - The one-based index of the annotation being retrieved.
MathMLElement insertAnnotation(MathMLElement newAnnotation,
int index)
throws DOMException
newAnnotation - A MathMLAnnotationElement or MathMLXMLAnnotationElement
representing the new annotation or annotation-xml to be
inserted.index - The position in the list of annotation or annotation-xml
children before which newAnnotation is to be inserted. The
first annotation is numbered 1.
DOMException - HIERARCHY_REQUEST_ERR: Raised if newAnnotation is not a
MathMLAnnotationElement or MathMLXMLAnnotationElement.
INDEX_SIZE_ERR: Raised if index is greater than the current
number of annotation or annotation-xml children of this
semantics element.
MathMLElement setAnnotation(MathMLElement newAnnotation,
int index)
throws DOMException
newAnnotation - A MathMLAnnotationElement or MathMLXMLAnnotationElement
representing the new value of the index-th annotation or
annotation-xml child of this semantics element.index - The position in the list of annotation or annotation-xml
children of this semantics element that is to be occupied by
newAnnotation. The first annotation element is numbered 1.
DOMException - HIERARCHY_REQUEST_ERR: Raised if newAnnotation is not a
MathMLAnnotationElement or MathMLXMLAnnotationElement.
INDEX_SIZE_ERR: Raised if index is greater than one more
than the current number of annotation or annotation-xml
children of this semantics element.void deleteAnnotation(int index)
index - The one-based index of the annotation being deleted.MathMLElement removeAnnotation(int index)
index - The one-based index of the annotation being deleted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||