|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node<T>
Mutable node for Keridwen tree-based DataModel
.
Method Summary | |
---|---|
void |
clearContent()
Removes the content of the node. |
T |
getContent()
Gets the content of the Node . |
String |
getDescription()
Gets the String description of the Node |
String |
getName()
Gets the Node name. |
NodeInformation |
getNodeInformation()
Gets metadata information about the Node . |
NodeReader<T> |
getNodeReader()
Gets the NodeReader . |
NodeState |
getNodeState()
Gets the NodeState . |
URI |
getNodeURI()
Gets the URI where the Node is saved. |
nu.xom.Element |
getXmlElement()
Gets the XML description of the Node . |
boolean |
isContentLoaded()
Indicates whether the content of the node has been loaded in memory or not. |
boolean |
isContentLocal()
Indicates whether the content of the node is stored within the model or linked from outside. |
boolean |
isFolder()
Indicates if this Node is a folder Node or a leaf Node . |
Iterator<Node<?>> |
iterator()
|
void |
load(URI nodeURI)
Loads the Node content from the given URI . |
void |
reload()
Reloads the Node content |
void |
saveNode()
Saves the Node to its current URI |
void |
saveNodeAs(URI nodeURI)
Saves the Node to the given URI |
void |
setContentLocal(boolean isContentLocal)
Indicates whether the content of the node is stored within the model or linked from outside. |
void |
setNodeReader(NodeReader<T> nodeReader)
Sets the NodeReader . |
void |
setNodeState(NodeState stateToSet)
Sets the Node state. |
void |
setNodeURI(URI uriToSet)
Sets the Node URI . |
void |
setNodeWriter(NodeWriter nodeWriter)
Sets the NodeWriter . |
Methods inherited from interface javax.swing.tree.MutableTreeNode |
---|
insert, remove, remove, removeFromParent, setParent, setUserObject |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Method Detail |
---|
String getName()
Node
name.
Node
nameNodeInformation getNodeInformation()
Node
.
NodeInformation
containing metadatavoid setNodeState(NodeState stateToSet)
Node
state.
stateToSet
- the NodeState
to set.NodeState getNodeState()
NodeState
. Its state tells if the node has been removed, is up to date, has been newly created
...
NodeState
of the Node
boolean isFolder()
Node
is a folder Node
or a leaf Node
. A folder Node
does not
have any content associated to it. It this does not have a NodeReader
nor a NodeWriter
.
true
if the Node
is a folder.boolean isContentLocal()
void setContentLocal(boolean isContentLocal)
isContentLocal
- the boolean value to setT getContent()
Node
.
void clearContent()
void reload()
Node
content
void load(URI nodeURI)
Node
content from the given URI
.
void saveNode()
Node
to its current URI
void saveNodeAs(URI nodeURI)
Node
to the given URI
nodeURI
- void setNodeWriter(NodeWriter nodeWriter)
NodeWriter
.
nodeWriter
- the NodeWriter
to setnu.xom.Element getXmlElement()
Node
.
Node
as a Xom Element
NodeReader<T> getNodeReader()
NodeReader
.
NodeReader
void setNodeReader(NodeReader<T> nodeReader)
NodeReader
.
nodeReader
- the NodeReader
to setURI getNodeURI()
URI
where the Node
is saved.
Node
URI
void setNodeURI(URI uriToSet)
Node
URI
.
uriToSet
- the URI
to setIterator<Node<?>> iterator()
iterator
in interface Iterable<Node<?>>
String getDescription()
String
description of the Node
String
description of the Node
boolean isContentLoaded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |