|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataModel
| Method Summary | |
|---|---|
void |
addModificationStateListener(ModificationStateListener listenerToAdd)
Adds the given ModificationStateListener to the list of listeners. |
int |
addNode(Node<?> newChild,
Node<?> parent)
Adds the given child Node as the last child of the given parent Node. |
void |
addNodeReaderForPath(NodeReader<?> readerToAdd,
String nodePath)
Associates the given NodeReader to the provided node absolute path in the XML file. |
DataModelInformation |
getDataModelInformation()
Gets the DataModel metadata |
ModificationState |
getModificationState()
Gets the ModificationState of the DataModel. |
NodeReader<?> |
getNodeReader(String nodePath)
Gets the NodeReader associated with the given file format. |
Node<?> |
getRootNode()
Gets the DataModel root Node. |
void |
insertNodeInto(Node<?> newChild,
Node<?> parent,
int index)
Inserts the given child Node in the given parent Node, at the given index. |
void |
loadModel(URI rootURI)
Loads the DataModel from the given root Node URI. |
void |
removeModificationStateListener(ModificationStateListener listenerToRemove)
Removes the given ModificationStateListener from the list of listeners. |
void |
removeReaderForPath(String nodePath)
Removes the association between the given node path and its NodeReader. |
void |
saveModel()
Saves the whole model. |
void |
saveModelAs(URI rootURI)
Saves the DataModel, with the given URI as the root Node. |
void |
setModificationState(ModificationState newState)
Sets the ModificationState of the DataModel to the given new state. |
void |
setRootNode(Node<?> rootNode)
Sets the root Node of the DataModel. |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
| Method Detail |
|---|
Node<?> getRootNode()
DataModel root Node.
Node of the DataModelvoid setRootNode(Node<?> rootNode)
Node of the DataModel.
rootNode - the root Node to setDataModelInformation getDataModelInformation()
DataModel metadata
DataModelInformation of the DataModel
void insertNodeInto(Node<?> newChild,
Node<?> parent,
int index)
Node in the given parent Node, at the given index.
newChild - the child Node to addparent - the parent Node in which to add the new Nodeindex - the index of insertion
int addNode(Node<?> newChild,
Node<?> parent)
Node as the last child of the given parent Node.
newChild - the Node to addparent - the Node in which to add the new Node
Nodevoid saveModel()
void saveModelAs(URI rootURI)
DataModel, with the given URI as the root Node.
rootURI - the root Node URIvoid loadModel(URI rootURI)
DataModel from the given root Node URI.
rootURI - the root Node URIModificationState getModificationState()
ModificationState of the DataModel.
ModificationState of the DataModelvoid setModificationState(ModificationState newState)
ModificationState of the DataModel to the given new state.
newState - the ModificationState to set.void addModificationStateListener(ModificationStateListener listenerToAdd)
ModificationStateListener to the list of listeners.
listenerToAdd - the ModificationStateListener to addvoid removeModificationStateListener(ModificationStateListener listenerToRemove)
ModificationStateListener from the list of listeners.
listenerToRemove - the ModificationStateListener to removeNodeReader<?> getNodeReader(String nodePath)
NodeReader associated with the given file format.
nodePath - the file format of the node currently read
NodeReader for the given file format
void addNodeReaderForPath(NodeReader<?> readerToAdd,
String nodePath)
NodeReader to the provided node absolute path in the XML file.
readerToAdd - the NodeReader to addnodePath - the absolute path of the node in the XML filevoid removeReaderForPath(String nodePath)
NodeReader.
nodePath - the absolute node path in the XML file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||