|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.io.XPFileSystemObject com.plumtree.openfoundation.io.XPDirectory
public class XPDirectory
XPDirectory is an abstract representation of a directory pathname.
Constructor Summary | |
---|---|
XPDirectory(java.lang.String directoryName)
Create a new directory object (not the actual file system directory) by converting the given pathname string into an abstract pathname. |
Method Summary | |
---|---|
void |
Create()
Create a subdirectory named by this abstract path name. |
void |
Delete()
Delete this directory. |
boolean |
Exists()
Returns true if this directory exists; false otherwise. |
XPFileSystemObject |
GetChild(java.lang.String name)
Returns a child directory or file that is represented by the name. |
XPFileSystemObject[] |
GetChildren()
Returns an enumerator of XPFileSystemObjects of all files and sub-directories of this directory. |
java.lang.String |
GetFullPath()
Returns the full path for this directory (e.g. |
XPDateTime |
GetLastModifiedTime()
Returns the last modified time of this directory. |
java.lang.String |
GetName()
Returns the name of this directory (e.g. |
XPDirectory |
GetParent()
Returns an XPDirectory representing the directory this directory resides in. |
java.io.File |
GetUnderlyingObject()
Returns the platform specific object that this class wraps. |
boolean |
IsDirectory()
Returns a boolean value that determines if this object is a directory or not. |
boolean |
IsHidden()
Returns a boolean value that determines if this directory is hidden. |
boolean |
IsReadOnly()
Returns a boolean value that determines if this directory is read only or not. |
boolean |
SetReadOnly()
Returns a boolean value that determines if the Readonly property is set or not. |
Methods inherited from class com.plumtree.openfoundation.io.XPFileSystemObject |
---|
GetExistingPath, GetPathSeparator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPDirectory(java.lang.String directoryName)
directoryName
- pathname of the directoryMethod Detail |
---|
public void Create()
public void Delete()
Delete
in class XPFileSystemObject
public boolean Exists()
Exists
in class XPFileSystemObject
public XPFileSystemObject GetChild(java.lang.String name)
name
- pathname of the child object (File or Directory)
public XPFileSystemObject[] GetChildren()
public java.lang.String GetFullPath()
GetFullPath
in class XPFileSystemObject
public java.lang.String GetName()
GetName
in class XPFileSystemObject
public XPDirectory GetParent()
GetParent
in class XPFileSystemObject
public java.io.File GetUnderlyingObject()
public boolean IsDirectory()
IsDirectory
in class XPFileSystemObject
public XPDateTime GetLastModifiedTime()
GetLastModifiedTime
in class XPFileSystemObject
public boolean SetReadOnly()
SetReadOnly
in class XPFileSystemObject
public boolean IsReadOnly()
IsReadOnly
in class XPFileSystemObject
public boolean IsHidden()
IsHidden
in class XPFileSystemObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |