org.jscience.ml.mathml
Class MathMLContentContainerImpl

java.lang.Object
  extended by org.apache.xerces.dom.NodeImpl
      extended by org.apache.xerces.dom.ChildNode
          extended by org.apache.xerces.dom.ParentNode
              extended by org.apache.xerces.dom.ElementImpl
                  extended by org.apache.xerces.dom.ElementNSImpl
                      extended by org.jscience.ml.mathml.MathMLElementImpl
                          extended by org.jscience.ml.mathml.MathMLContentContainerImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, MathMLContainer, MathMLContentContainer, MathMLContentElement, MathMLElement, MathMLNodeList, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo
Direct Known Subclasses:
MathMLApplyElementImpl, MathMLBvarElementImpl, MathMLFnElementImpl, MathMLListElementImpl, MathMLSetElementImpl

public class MathMLContentContainerImpl
extends MathMLElementImpl
implements MathMLContentContainer

Implements a MathML content container.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
 
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
MathMLContentContainerImpl(MathMLDocumentImpl owner, java.lang.String qualifiedName)
          Constructs a MathML content container.
 
Method Summary
 void deleteArgument(int index)
          DOCUMENT ME!
 void deleteBoundVariable(int index)
          DOCUMENT ME!
 void deleteDeclaration(int index)
          DOCUMENT ME!
 MathMLElement getArgument(int index)
          DOCUMENT ME!
 MathMLNodeList getArguments()
          DOCUMENT ME!
 MathMLBvarElement getBoundVariable(int index)
          DOCUMENT ME!
 MathMLConditionElement getCondition()
          DOCUMENT ME!
 MathMLDeclareElement getDeclaration(int index)
          DOCUMENT ME!
 MathMLNodeList getDeclarations()
          DOCUMENT ME!
 MathMLElement getDomainOfApplication()
          DOCUMENT ME!
 MathMLElement getMomentAbout()
          DOCUMENT ME!
 int getNArguments()
          DOCUMENT ME!
 int getNBoundVariables()
          DOCUMENT ME!
protected  org.w3c.dom.Node getNodeByName(java.lang.String name)
          DOCUMENT ME!
 MathMLElement getOpDegree()
          DOCUMENT ME!
 MathMLElement insertArgument(MathMLElement newArgument, int index)
          DOCUMENT ME!
 MathMLBvarElement insertBoundVariable(MathMLBvarElement newBvar, int index)
          DOCUMENT ME!
 MathMLDeclareElement insertDeclaration(MathMLDeclareElement newDeclaration, int index)
          DOCUMENT ME!
 MathMLElement removeArgument(int index)
          DOCUMENT ME!
 MathMLBvarElement removeBoundVariable(int index)
          DOCUMENT ME!
 MathMLDeclareElement removeDeclaration(int index)
          DOCUMENT ME!
 MathMLElement setArgument(MathMLElement newArgument, int index)
          DOCUMENT ME!
 MathMLBvarElement setBoundVariable(MathMLBvarElement newBvar, int index)
          DOCUMENT ME!
 void setCondition(MathMLConditionElement condition)
          DOCUMENT ME!
 MathMLDeclareElement setDeclaration(MathMLDeclareElement newDeclaration, int index)
          DOCUMENT ME!
 void setDomainOfApplication(MathMLElement domainOfApplication)
          DOCUMENT ME!
 void setMomentAbout(MathMLElement momentAbout)
          DOCUMENT ME!
protected  void setNodeByName(org.w3c.dom.Node newNode, java.lang.String name)
          DOCUMENT ME!
 void setOpDegree(MathMLElement opDegree)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.ml.mathml.MathMLElementImpl
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXref
 
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues
 
Methods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren
 
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
 
Methods inherited from interface org.w3c.dom.NodeList
getLength, item
 

Constructor Detail

MathMLContentContainerImpl

public MathMLContentContainerImpl(MathMLDocumentImpl owner,
                                  java.lang.String qualifiedName)
Constructs a MathML content container.

Parameters:
owner - DOCUMENT ME!
qualifiedName - DOCUMENT ME!
Method Detail

getCondition

public MathMLConditionElement getCondition()
DOCUMENT ME!

Specified by:
getCondition in interface MathMLContentContainer
Returns:
DOCUMENT ME!

setCondition

public void setCondition(MathMLConditionElement condition)
                  throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
setCondition in interface MathMLContentContainer
Parameters:
condition - DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

getOpDegree

public MathMLElement getOpDegree()
DOCUMENT ME!

Specified by:
getOpDegree in interface MathMLContentContainer
Returns:
DOCUMENT ME!

setOpDegree

public void setOpDegree(MathMLElement opDegree)
                 throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
setOpDegree in interface MathMLContentContainer
Parameters:
opDegree - DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

getDomainOfApplication

public MathMLElement getDomainOfApplication()
DOCUMENT ME!

Specified by:
getDomainOfApplication in interface MathMLContentContainer
Returns:
DOCUMENT ME!

setDomainOfApplication

public void setDomainOfApplication(MathMLElement domainOfApplication)
                            throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
setDomainOfApplication in interface MathMLContentContainer
Parameters:
domainOfApplication - DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

getMomentAbout

public MathMLElement getMomentAbout()
DOCUMENT ME!

Specified by:
getMomentAbout in interface MathMLContentContainer
Returns:
DOCUMENT ME!

setMomentAbout

public void setMomentAbout(MathMLElement momentAbout)
                    throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
setMomentAbout in interface MathMLContentContainer
Parameters:
momentAbout - DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

getNBoundVariables

public int getNBoundVariables()
DOCUMENT ME!

Specified by:
getNBoundVariables in interface MathMLContentContainer
Returns:
DOCUMENT ME!

getBoundVariable

public MathMLBvarElement getBoundVariable(int index)
DOCUMENT ME!

Specified by:
getBoundVariable in interface MathMLContentContainer
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!

setBoundVariable

public MathMLBvarElement setBoundVariable(MathMLBvarElement newBvar,
                                          int index)
                                   throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
setBoundVariable in interface MathMLContentContainer
Parameters:
newBvar - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

insertBoundVariable

public MathMLBvarElement insertBoundVariable(MathMLBvarElement newBvar,
                                             int index)
                                      throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
insertBoundVariable in interface MathMLContentContainer
Parameters:
newBvar - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

removeBoundVariable

public MathMLBvarElement removeBoundVariable(int index)
DOCUMENT ME!

Specified by:
removeBoundVariable in interface MathMLContentContainer
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!

deleteBoundVariable

public void deleteBoundVariable(int index)
DOCUMENT ME!

Specified by:
deleteBoundVariable in interface MathMLContentContainer
Parameters:
index - DOCUMENT ME!

getNArguments

public int getNArguments()
DOCUMENT ME!

Specified by:
getNArguments in interface MathMLContainer
Returns:
DOCUMENT ME!

getArguments

public MathMLNodeList getArguments()
DOCUMENT ME!

Specified by:
getArguments in interface MathMLContainer
Returns:
DOCUMENT ME!

getDeclarations

public MathMLNodeList getDeclarations()
DOCUMENT ME!

Specified by:
getDeclarations in interface MathMLContainer
Returns:
DOCUMENT ME!

getArgument

public MathMLElement getArgument(int index)
                          throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
getArgument in interface MathMLContainer
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

setArgument

public MathMLElement setArgument(MathMLElement newArgument,
                                 int index)
                          throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
setArgument in interface MathMLContainer
Parameters:
newArgument - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

insertArgument

public MathMLElement insertArgument(MathMLElement newArgument,
                                    int index)
                             throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
insertArgument in interface MathMLContainer
Parameters:
newArgument - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

removeArgument

public MathMLElement removeArgument(int index)
                             throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
removeArgument in interface MathMLContainer
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

deleteArgument

public void deleteArgument(int index)
                    throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
deleteArgument in interface MathMLContainer
Parameters:
index - DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

getDeclaration

public MathMLDeclareElement getDeclaration(int index)
                                    throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
getDeclaration in interface MathMLContainer
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

setDeclaration

public MathMLDeclareElement setDeclaration(MathMLDeclareElement newDeclaration,
                                           int index)
                                    throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
setDeclaration in interface MathMLContainer
Parameters:
newDeclaration - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

insertDeclaration

public MathMLDeclareElement insertDeclaration(MathMLDeclareElement newDeclaration,
                                              int index)
                                       throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
insertDeclaration in interface MathMLContainer
Parameters:
newDeclaration - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

removeDeclaration

public MathMLDeclareElement removeDeclaration(int index)
                                       throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
removeDeclaration in interface MathMLContainer
Parameters:
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

deleteDeclaration

public void deleteDeclaration(int index)
                       throws org.w3c.dom.DOMException
DOCUMENT ME!

Specified by:
deleteDeclaration in interface MathMLContainer
Parameters:
index - DOCUMENT ME!
Throws:
org.w3c.dom.DOMException - DOCUMENT ME!

getNodeByName

protected org.w3c.dom.Node getNodeByName(java.lang.String name)
DOCUMENT ME!

Parameters:
name - DOCUMENT ME!
Returns:
DOCUMENT ME!

setNodeByName

protected void setNodeByName(org.w3c.dom.Node newNode,
                             java.lang.String name)
DOCUMENT ME!

Parameters:
newNode - DOCUMENT ME!
name - DOCUMENT ME!