public class Directory extends DirectoryLayout
Modifier and Type | Class and Description |
---|---|
static class |
Directory.TYPE
Enumerates the new directory types supported in this schema
|
Modifier and Type | Field and Description |
---|---|
private Directory.TYPE |
mType
The type of directory
|
mFileServers, mInternalMount
Constructor and Description |
---|
Directory()
Default constructor
|
Directory(DirectoryLayout directory,
Directory.TYPE type)
Convenience constructor for adapter class
|
Modifier and Type | Method and Description |
---|---|
void |
accept(SiteDataVisitor visitor)
Accept method for the SiteData classes that accepts a visitor
|
java.lang.Object |
clone()
Returns the clone of the object.
|
Directory.TYPE |
getType()
Set the type of directory
|
void |
setType(Directory.TYPE type)
Set the type of directory
|
void |
setType(java.lang.String type)
Set the type of directory
|
void |
toXML(java.io.Writer writer,
java.lang.String indent)
Writes out the xml description of the object.
|
addFileServer, getFileServers, getFileServersIterator, getInternalMountPoint, hasFileServerForGETOperations, hasFileServerForOperations, hasFileServerForPUTOperations, isEmpty, resetFileServers, selectFileServer, setFileServers, setInternalMountPoint
toString, toXML, writeAttribute
private Directory.TYPE mType
public Directory()
public Directory(DirectoryLayout directory, Directory.TYPE type)
directory
- the directory layout objecttype
- the type associatedpublic void accept(SiteDataVisitor visitor) throws java.io.IOException
accept
in class AbstractSiteData
visitor
- the visitor to be usedjava.io.IOException
- if something fishy happens to the stream.public void setType(java.lang.String type)
type
- the type of directorypublic void setType(Directory.TYPE type)
type
- the type of directorypublic Directory.TYPE getType()
public void toXML(java.io.Writer writer, java.lang.String indent) throws java.io.IOException
AbstractSiteData
toXML
in class AbstractSiteData
writer
- indent
- java.io.IOException
public java.lang.Object clone()
clone
in class DirectoryLayout