Class MathMLMatrixElementImpl
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.episteme.core.mathematics.loaders.mathml.MathMLElementImpl
org.episteme.core.mathematics.loaders.mathml.MathMLMatrixElementImpl
- All Implemented Interfaces:
Serializable, Cloneable, Element, ElementTraversal, EventTarget, MathMLContentElement, MathMLElement, MathMLMatrixElement, MathMLNodeList, Node, NodeList, TypeInfo
Implements a MathML
matrix element.- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURIFields inherited from class org.apache.xerces.dom.ElementImpl
attributes, nameFields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSiblingFields 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_NODEFields inherited from interface 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_NODEFields inherited from interface TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION -
Constructor Summary
ConstructorsConstructorDescriptionMathMLMatrixElementImpl(MathMLDocumentImpl owner, String qualifiedName) Constructs a MathMLmatrixelement. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRow(int index) Deletes the row at the specified index.intgetNcols()Returns the number of columns in the matrix.intgetNrows()Returns the number of rows in the matrix.getRow(int index) Returns the row at the specified index.getRows()Returns a list of all matrix rows.insertRow(MathMLMatrixrowElement newRow, int index) Inserts a row at the specified index.removeRow(int index) Removes the row at the specified index.setRow(MathMLMatrixrowElement newRow, int index) Sets the row at the specified index.Methods inherited from class MathMLElementImpl
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods inherited from class org.apache.xerces.dom.ElementNSImpl
getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setPrefix, setTypeMethods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDataMethods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildrenMethods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods 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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods inherited from interface 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 Details
-
MathMLMatrixElementImpl
Constructs a MathMLmatrixelement.- Parameters:
owner- the MathML document that owns this elementqualifiedName- the qualified name of the element
-
-
Method Details
-
getNrows
public int getNrows()Returns the number of rows in the matrix.- Specified by:
getNrowsin interfaceMathMLMatrixElement- Returns:
- the row count
-
getNcols
public int getNcols()Returns the number of columns in the matrix.- Specified by:
getNcolsin interfaceMathMLMatrixElement- Returns:
- the column count
-
getRows
Returns a list of all matrix rows.- Specified by:
getRowsin interfaceMathMLMatrixElement- Returns:
- the list of row elements
-
getRow
Returns the row at the specified index.- Specified by:
getRowin interfaceMathMLMatrixElement- Parameters:
index- the row index (1-based)- Returns:
- the matrix row element
- Throws:
DOMException- INDEX_SIZE_ERR if out of bounds
-
setRow
Sets the row at the specified index.- Specified by:
setRowin interfaceMathMLMatrixElement- Parameters:
newRow- the new row elementindex- the row index (1-based)- Returns:
- the new row element
- Throws:
DOMException- INDEX_SIZE_ERR if out of bounds
-
insertRow
public MathMLMatrixrowElement insertRow(MathMLMatrixrowElement newRow, int index) throws DOMException Inserts a row at the specified index.- Specified by:
insertRowin interfaceMathMLMatrixElement- Parameters:
newRow- the new row element to insertindex- the index where to insert (0 for end)- Returns:
- the inserted row element
- Throws:
DOMException- INDEX_SIZE_ERR if out of bounds
-
removeRow
Removes the row at the specified index.- Specified by:
removeRowin interfaceMathMLMatrixElement- Parameters:
index- the row index (1-based)- Returns:
- the removed row element
- Throws:
DOMException- INDEX_SIZE_ERR if out of bounds
-
deleteRow
Deletes the row at the specified index.- Specified by:
deleteRowin interfaceMathMLMatrixElement- Parameters:
index- the row index (1-based)- Throws:
DOMException- INDEX_SIZE_ERR if out of bounds
-