com.elixirtech.ers2.client
Class BasicFileObject

java.lang.Object
  extended by com.elixirtech.ers2.client.BasicFileObject
All Implemented Interfaces:
IFileObject

public class BasicFileObject
extends java.lang.Object
implements IFileObject


Constructor Summary
BasicFileObject(com.elixirtech.jdom.Element rootFO, IFileSystem fs)
          Root File Object constructor
BasicFileObject(com.elixirtech.jdom.Element fo, IFileSystem fs, IFileObject parentfo)
          File Object constructor
 
Method Summary
 IFileObject getChild(java.lang.String name)
          Get the child file object by its name.
 IFileObject[] getChildren()
          Get a list of the child file objects.
 java.lang.String getExtension()
          Get extension of file object.
 IFileSystem getFileSystem()
          Get extension the file system of the file object.
 java.lang.String getName()
          Get display name of the file object.
 IFileObject getParent()
          Get the parent file object.
 java.lang.String getPath()
          Get full path of file object.
 boolean isData()
          Check if file object is a data.
 boolean isFolder()
          Check if file object is a folder.
 long lastModified()
          Check modified time stamp of the file object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicFileObject

public BasicFileObject(com.elixirtech.jdom.Element fo,
                       IFileSystem fs,
                       IFileObject parentfo)
File Object constructor

Parameters:
fo - object
fs - system
parentfo - object parent.

BasicFileObject

public BasicFileObject(com.elixirtech.jdom.Element rootFO,
                       IFileSystem fs)
Root File Object constructor

Parameters:
rootFO - file system
fs - system
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Description copied from interface: IFileObject
Get display name of the file object.

Specified by:
getName in interface IFileObject

getExtension

public java.lang.String getExtension()
Description copied from interface: IFileObject
Get extension of file object.

Specified by:
getExtension in interface IFileObject

getPath

public java.lang.String getPath()
Description copied from interface: IFileObject
Get full path of file object.

Specified by:
getPath in interface IFileObject

getFileSystem

public IFileSystem getFileSystem()
Description copied from interface: IFileObject
Get extension the file system of the file object.

Specified by:
getFileSystem in interface IFileObject

getParent

public IFileObject getParent()
Description copied from interface: IFileObject
Get the parent file object.

Specified by:
getParent in interface IFileObject

getChild

public IFileObject getChild(java.lang.String name)
Description copied from interface: IFileObject
Get the child file object by its name.

Specified by:
getChild in interface IFileObject
Parameters:
name - Child file name.

isFolder

public boolean isFolder()
Description copied from interface: IFileObject
Check if file object is a folder.

Specified by:
isFolder in interface IFileObject

isData

public boolean isData()
Description copied from interface: IFileObject
Check if file object is a data.

Specified by:
isData in interface IFileObject

lastModified

public long lastModified()
Description copied from interface: IFileObject
Check modified time stamp of the file object.

Specified by:
lastModified in interface IFileObject

getChildren

public IFileObject[] getChildren()
Description copied from interface: IFileObject
Get a list of the child file objects.

Specified by:
getChildren in interface IFileObject