public class DblMatrixDOM extends RepositoryStorageDOM implements DblMatrixStorage
document, dostylesheets, storageRoot, templateDOM
nickname, reposListeners, transferAgent
Constructor and Description |
---|
DblMatrixDOM() |
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element |
addNewEntry() |
void |
clearAll()
Removes all entries and resets to an empty matrix.
|
protected void |
clearContents() |
protected void |
clearMatrixSize() |
DblMatrix |
copyAsDblMatrix()
Copy the contents of this repository storage into a new DblMatrix.
|
void |
copyFromDblMatrix(DblMatrix x) |
java.lang.Object |
get(int element)
Gets the specified element.
|
protected org.w3c.dom.Element |
getContentsRoot() |
java.lang.Class |
getDefaultGraphicalEditorClass() |
java.lang.Class |
getDOMStorageClass()
Returns a DOM storage variant of this storage instance.
|
int[] |
getMatrixSize() |
java.lang.String |
getRootElementName() |
protected org.w3c.dom.Element |
getSizeRoot() |
java.lang.Class |
getStorageTransferAgentClass()
This method should be overridden by subclasses wanting to extend the transfer method.
|
protected java.lang.String |
getStylesheetRef()
Returns the hyper-reference to the style sheet to be used in formating
the XML translation of this DOM.
|
void |
set(java.lang.Object N,
int element)
Sets the specified element.
|
void |
setMatrixSize(int[] siz)
Calls clearAll first then sets size and preallocates to zero.
|
protected void |
specifyStorage(org.w3c.dom.Document doc,
org.w3c.dom.Element root) |
createElementByName, getAttributeByElementName, getComment, getCommentElementName, getCreatedBy, getCreatedByAttributeName, getCreatedOn, getCreatedOnAttributeName, getDocument, getEnabled, getEnabledAttributeName, getNickname, getNicknameAttributeName, getStorage, getStorageRoot, getTemplateDOM, getTextNodeByElementName, isValidXML, readXML, setComment, setCreatedBy, setCreatedOn, setEnabled, setNickname, setProcessingInstructions, setTextNodeByElementName, show, show, useStyleSheetInfo, usingStyleSheetInfo, writeTemplateXML, writeXML
addRepositoryListener, afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, getStorageCalculationsAgentClass, removeRepositoryListener, transferStorage, transferStorageCommands
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRepositoryListener, getComment, getCreatedBy, getCreatedOn, getEnabled, getNickname, removeRepositoryListener, setComment, setCreatedBy, setCreatedOn, setEnabled, setNickname
afterCopyStorage, afterTransferStorage, beforeCopyStorage, beforeTransferStorage, copyStorage, copyStorageCommands, transferStorage, transferStorageCommands
public java.lang.Class getDefaultGraphicalEditorClass()
getDefaultGraphicalEditorClass
in interface RepositoryStorage
getDefaultGraphicalEditorClass
in class RepositoryStorageDOM
public java.lang.String getRootElementName()
getRootElementName
in class RepositoryStorageDOM
protected java.lang.String getStylesheetRef()
RepositoryStorageDOM
setProcessingInstructions
method.getStylesheetRef
in class RepositoryStorageDOM
RepositoryStorageDOM.setProcessingInstructions()
protected void specifyStorage(org.w3c.dom.Document doc, org.w3c.dom.Element root)
specifyStorage
in class RepositoryStorageDOM
public java.lang.Class getStorageTransferAgentClass()
AbstractRepositoryStorage
getStorageTransferAgentClass
in class AbstractRepositoryStorage
public java.lang.Class getDOMStorageClass()
AbstractRepositoryStorage
getDOMStorageClass
in interface DOMStorable
getDOMStorageClass
in class RepositoryStorageDOM
protected org.w3c.dom.Element getSizeRoot()
protected org.w3c.dom.Element addNewEntry()
public int[] getMatrixSize()
getMatrixSize
in interface DblMatrixStorage
public void setMatrixSize(int[] siz)
DblMatrixStorage
setMatrixSize
in interface DblMatrixStorage
protected void clearMatrixSize()
protected org.w3c.dom.Element getContentsRoot()
public void set(java.lang.Object N, int element)
DblMatrixStorage
set
in interface DblMatrixStorage
public java.lang.Object get(int element)
DblMatrixStorage
get
in interface DblMatrixStorage
public void clearAll()
DblMatrixStorage
clearAll
in interface DblMatrixStorage
protected void clearContents()
public void copyFromDblMatrix(DblMatrix x)
copyFromDblMatrix
in interface DblMatrixStorage
public DblMatrix copyAsDblMatrix()
copyAsDblMatrix
in interface DblMatrixStorage
Copyright © 2011, 2013. Daniel P. Dougherty