data.nodes
Class FileNode

java.lang.Object
  extended by data.nodes.FileNode
All Implemented Interfaces:
DataNode

public class FileNode
extends java.lang.Object
implements DataNode

Repräsentiert konkrete Datei als File-Node.

Author:
Thorsten Berger, Steffen Dienst

Field Summary
static java.lang.String INVISIBLE
           
static java.lang.String TYPE_LINK
           
 
Constructor Summary
FileNode(java.lang.String path)
           
FileNode(java.lang.String path, Directory dir)
           
FileNode(java.lang.String path, Directory dir, java.lang.String restrictPath)
           
FileNode(java.lang.String path, java.lang.String restrictPath)
           
 
Method Summary
 void delete()
           
 java.lang.String getAbsolutePath()
           
 java.lang.String getDescription()
           
 java.io.FileInputStream getFileInputStream()
           
 java.io.FileReader getFileReader()
           
 java.lang.String getIcon()
           
 java.lang.String getIdentification()
           
 java.lang.String getName()
           
 java.lang.String getRawDescription()
           
 java.lang.String getSpecialType()
           
 DataNode[] getSubNodes()
          FileNode kann keine SubNodes haben!
 boolean hasFlag(java.lang.String flagname)
           
 boolean isFolder()
           
 boolean isRemovable()
           
 long lastModified()
           
 void removeFlag(java.lang.String flagname)
           
 void setDescription(java.lang.String s)
           
 void setFlag(java.lang.String flagname)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVISIBLE

public static final java.lang.String INVISIBLE
See Also:
Constant Field Values

TYPE_LINK

public static final java.lang.String TYPE_LINK
See Also:
Constant Field Values
Constructor Detail

FileNode

public FileNode(java.lang.String path,
                Directory dir,
                java.lang.String restrictPath)
         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

FileNode

public FileNode(java.lang.String path,
                Directory dir)
         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

FileNode

public FileNode(java.lang.String path,
                java.lang.String restrictPath)
         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

FileNode

public FileNode(java.lang.String path)
         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

getSubNodes

public DataNode[] getSubNodes()
FileNode kann keine SubNodes haben!

Specified by:
getSubNodes in interface DataNode

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface DataNode

setDescription

public void setDescription(java.lang.String s)

getRawDescription

public java.lang.String getRawDescription()

getIdentification

public java.lang.String getIdentification()
Specified by:
getIdentification in interface DataNode

isFolder

public boolean isFolder()
Specified by:
isFolder in interface DataNode

getIcon

public java.lang.String getIcon()
Specified by:
getIcon in interface DataNode

getName

public java.lang.String getName()

delete

public void delete()

getFileInputStream

public java.io.FileInputStream getFileInputStream()

getFileReader

public java.io.FileReader getFileReader()

getAbsolutePath

public java.lang.String getAbsolutePath()

isRemovable

public boolean isRemovable()

lastModified

public long lastModified()

setFlag

public void setFlag(java.lang.String flagname)

hasFlag

public boolean hasFlag(java.lang.String flagname)

removeFlag

public void removeFlag(java.lang.String flagname)

getSpecialType

public java.lang.String getSpecialType()