|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.batik.dom.AbstractNode org.apache.batik.dom.AbstractParentNode org.apache.batik.dom.AbstractParentChildNode org.apache.batik.dom.AbstractElement org.apache.batik.dom.AbstractElementNS org.apache.batik.dom.GenericElementNS net.sourceforge.jeuclid.elements.AbstractJEuclidElement net.sourceforge.jeuclid.elements.presentation.AbstractContainer
public abstract class AbstractContainer
Abstract implementation for all classes that provide support for the DOM MathMLContainer interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractElement |
---|
AbstractElement.ElementTypeInfo, AbstractElement.Entry, AbstractElement.NamedNodeHashMap |
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
Field Summary |
---|
Fields inherited from class net.sourceforge.jeuclid.elements.AbstractJEuclidElement |
---|
ATTR_CLASS, ATTR_DEPRECATED_BACKGROUND, ATTR_DEPRECATED_COLOR, ATTR_DEPRECATED_FONTFAMILY, ATTR_DEPRECATED_FONTSIZE, ATTR_DEPRECATED_FONTSTYLE, ATTR_DEPRECATED_FONTWEIGHT, ATTR_HREF, ATTR_ID, ATTR_MATHBACKGROUND, ATTR_MATHCOLOR, ATTR_MATHSIZE, ATTR_MATHVARIANT, ATTR_STYLE, ATTR_XREF, TRIVIAL_SPACE_MAX, URI |
Fields inherited from class org.apache.batik.dom.GenericElementNS |
---|
nodeName, readonly |
Fields inherited from class org.apache.batik.dom.AbstractElementNS |
---|
namespaceURI |
Fields inherited from class org.apache.batik.dom.AbstractElement |
---|
attributes, typeInfo |
Fields inherited from class org.apache.batik.dom.AbstractParentChildNode |
---|
nextSibling, parentNode, previousSibling |
Fields inherited from class org.apache.batik.dom.AbstractParentNode |
---|
childNodes |
Fields inherited from class org.apache.batik.dom.AbstractNode |
---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
Constructor Summary | |
---|---|
AbstractContainer(String qname,
AbstractDocument odoc)
Default constructor. |
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. |
Methods inherited from class org.apache.batik.dom.GenericElementNS |
---|
copyInto, deepCopyInto, deepExport, export, getNodeName, isReadonly, newNode, setNodeName, setReadonly |
Methods inherited from class org.apache.batik.dom.AbstractElementNS |
---|
getNamespaceURI |
Methods inherited from class org.apache.batik.dom.AbstractParentChildNode |
---|
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling |
Methods inherited from class org.apache.batik.dom.AbstractParentNode |
---|
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, removeChild, replaceChild |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
---|
public AbstractContainer(String qname, AbstractDocument odoc)
qname
- Qualified name.odoc
- Owner Document.Method Detail |
---|
public int getNArguments()
getNArguments
in interface MathMLContainer
public MathMLNodeList getArguments()
getArguments
in interface MathMLContainer
public MathMLNodeList getDeclarations()
getDeclarations
in interface MathMLContainer
public MathMLElement getArgument(int index)
getArgument
in interface MathMLContainer
index
- The one-based index of the argument to be retrieved.
public MathMLElement setArgument(MathMLElement newArgument, int index)
setArgument
in interface MathMLContainer
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.
public MathMLElement insertArgument(MathMLElement newArgument, int index)
insertArgument
in interface MathMLContainer
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.
public void deleteArgument(int index)
deleteArgument
in interface MathMLContainer
index
- The one-based index of the argument to be deleted.public MathMLElement removeArgument(int index)
removeArgument
in interface MathMLContainer
index
- The one-based index of the argument to be removed.
public MathMLDeclareElement getDeclaration(int index)
getDeclaration
in interface MathMLContainer
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.
public MathMLDeclareElement setDeclaration(MathMLDeclareElement newDeclaration, int index)
setDeclaration
in interface MathMLContainer
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.
public MathMLDeclareElement insertDeclaration(MathMLDeclareElement newDeclaration, int index)
insertDeclaration
in interface MathMLContainer
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.
public MathMLDeclareElement removeDeclaration(int index)
removeDeclaration
in interface MathMLContainer
index
- The one-based index of the declare element to be removed.
public void deleteDeclaration(int index)
deleteDeclaration
in interface MathMLContainer
index
- The one-based index of the declare element to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |