public class BasicFileObject extends java.lang.Object implements IFileObject
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public BasicFileObject(com.elixirtech.jdom.Element fo,
IFileSystem fs,
IFileObject parentfo)
fo - objectfs - systemparentfo - object parent.public BasicFileObject(com.elixirtech.jdom.Element rootFO,
IFileSystem fs)
rootFO - file systemfs - systempublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
IFileObjectgetName in interface IFileObjectpublic java.lang.String getExtension()
IFileObjectgetExtension in interface IFileObjectpublic java.lang.String getPath()
IFileObjectgetPath in interface IFileObjectpublic IFileSystem getFileSystem()
IFileObjectgetFileSystem in interface IFileObjectpublic IFileObject getParent()
IFileObjectgetParent in interface IFileObjectpublic IFileObject getChild(java.lang.String name)
IFileObjectgetChild in interface IFileObjectname - Child file name.public boolean isFolder()
IFileObjectisFolder in interface IFileObjectpublic boolean isData()
IFileObjectisData in interface IFileObjectpublic long lastModified()
IFileObjectlastModified in interface IFileObjectpublic IFileObject[] getChildren()
IFileObjectgetChildren in interface IFileObject