de.winterfish.nathan.model
Class NDoc

java.lang.Object
  |
  +--de.winterfish.neon.model.DataNode
        |
        +--de.winterfish.nathan.model.NDoc

public class NDoc
extends DataNode


Field Summary
 
Fields inherited from class de.winterfish.neon.model.DataNode
aGui, aParent
 
Method Summary
 boolean delete()
          Deletes a Node without any security questions.
 DataNode duplicate(DataNode newParent)
           
 byte[] getContent()
           
 java.io.File getFile()
           
 java.lang.String getFilePath()
           
 long getId()
           
 Identity getIdentity()
           
 java.io.File getOriginalFile()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.io.File getPropertyFile()
           
 java.net.URL getURL()
          Returns a URL reference to the document represented by this DataNode.
 void setContent(byte[] content)
           
 boolean setName(java.lang.String name)
           
 void setParent(javax.swing.tree.MutableTreeNode newParent)
          Moves a NodeNode
 void setProperty(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class de.winterfish.neon.model.DataNode
doesNameExist, equals, getIcon, getInputStream, getName, getParent, getPath, getType, getURI, isDeleted, isFolder, isRoot, removeFromParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFilePath

public java.lang.String getFilePath()

getIdentity

public Identity getIdentity()

getId

public long getId()

setName

public boolean setName(java.lang.String name)
Overrides:
setName in class DataNode

setParent

public void setParent(javax.swing.tree.MutableTreeNode newParent)
Description copied from class: DataNode
Moves a NodeNode

Overrides:
setParent in class DataNode

delete

public boolean delete()
Description copied from class: DataNode
Deletes a Node without any security questions. Such request dialogs are handled by the GUI. Should be called from an inheriting class.

Overrides:
delete in class DataNode
Returns:
True if operation was successful.

duplicate

public DataNode duplicate(DataNode newParent)
Specified by:
duplicate in class DataNode

getContent

public byte[] getContent()
Specified by:
getContent in class DataNode

setContent

public void setContent(byte[] content)
Specified by:
setContent in class DataNode

getURL

public java.net.URL getURL()
Description copied from class: DataNode
Returns a URL reference to the document represented by this DataNode. May be a temporaryly generated one. Some viewers or other applications may depend on a file based data access.

Overrides:
getURL in class DataNode

getOriginalFile

public java.io.File getOriginalFile()
Returns:
A valid File object if NDoc has an original file associated with it , null if not.

getPropertyFile

public java.io.File getPropertyFile()

getProperty

public java.lang.String getProperty(java.lang.String key)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

getFile

public java.io.File getFile()