|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MathMLContentToken
This is the interface from which the interfaces representing the MathML Content token elements (ci, cn and csymbol) are derived. These elements may contain MathML Presentation elements, Text nodes, or a combination of both. Thus the getArgument and insertArgument methods have been provided to deal with this distinction between these elements and other MathML Content elements.
Field Summary |
---|
Method Summary | |
---|---|
void |
deleteArgument(int index)
A convenience method to delete the argument child located at the position referenced by index. |
Node |
getArgument(int index)
A convenience method to retrieve the child argument at the position referenced by index. |
MathMLNodeList |
getArguments()
The arguments of this element, returned as a MathMLNodeList. |
String |
getDefinitionURL()
A URI pointing to a semantic definition for this content element. |
String |
getEncoding()
A string describing the syntax in which the definition located at definitionURL is given. |
Node |
insertArgument(Node newArgument,
int index)
A convenience method to insert newArgument before the current index-th argument child of this element. |
Node |
removeArgument(int index)
A convenience method to delete the argument child located at the position referenced by index, and to return it to the caller. |
Node |
setArgument(Node newArgument,
int index)
A convenience method to set an argument child at the position referenced by index. |
void |
setDefinitionURL(String definitionURL)
setter for the definitionURL attribute. |
void |
setEncoding(String encoding)
setter for the encoding 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 |
---|
MathMLNodeList getArguments()
String getDefinitionURL()
void setDefinitionURL(String definitionURL)
definitionURL
- new value for definitionURL.getDefinitionURL()
String getEncoding()
void setEncoding(String encoding)
encoding
- new value for encoding.getEncoding()
Node getArgument(int index)
index
- Position of desired argument in the list of arguments. The
first argument is numbered 1.
Node insertArgument(Node newArgument, int index)
newArgument
- Node to be inserted as the index-th argument. This will
either be a MathMLElement or a Text node.index
- Position before which newArgument is to be inserted. The
first argument is numbered 1.Note that this is not
necessarily the index of the Node in the list of child
nodes, as nodes representing such elements as sep are not
counted as arguments.newArgument
- Node to be inserted as the index-th argument. This will
either be a MathMLElement or a Text node.
Node setArgument(Node newArgument, int index)
newArgument
- Node to be inserted as the argument. This will either be a
MathMLElement or a Text node.index
- Position of the argument that is to be set to newArgument in
the list of arguments. The first argument is numbered 1.
Note that this is not necessarily the index of the Node in
the list of child nodes, as nodes representing such elements
as sep are not counted as arguments.newArgument
- Node to be inserted as the argument. This will either be a
MathMLElement or a Text node.
void deleteArgument(int index)
index
- Position of the argument to be deleted from the list of
arguments. The first argument is numbered 1.Node removeArgument(int index)
index
- Position of the argument to be deleted from the list of
arguments. The first argument is numbered 1.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |