|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.vfs.filebrowser.AbstractDescriptor
org.torweg.pulse.vfs.filebrowser.VFSFileDescriptor
public class VFSFileDescriptor
| Constructor Summary | |
|---|---|
protected |
VFSFileDescriptor()
Default constructor. |
|
VFSFileDescriptor(VirtualFile f)
creates a new VFSFileDescriptor for the given
VirtualFile. |
| Method Summary | |
|---|---|
int |
compareTo(FileDescriptor f)
compares the name of the given FileDescriptor with the name
of the FileDescriptor. |
org.jdom.Element |
deserializeToJDOM()
deserialises the descriptor. |
org.jdom.Element |
deserializeToJDOM(ServiceRequest request)
deserialises the descriptor. |
boolean |
equals(java.lang.Object o)
compares the VFSFileDescriptor with a given object. |
VirtualFile |
getFile()
returns the file. |
java.lang.String |
getName()
returns the name of the file. |
java.net.URI |
getURI()
returns the URI identifying the file. |
int |
hashCode()
returns a hash code for the instance. |
net.sf.json.JSONObject |
toJSON()
returns a JSON-representation of the VFSFileDescriptor
(which is basically a call on VirtualFile.toJSON()). |
| Methods inherited from class org.torweg.pulse.vfs.filebrowser.AbstractDescriptor |
|---|
getServiceRequest, insertVirtualFileInformation, setServiceRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.torweg.pulse.vfs.filebrowser.FileDescriptor |
|---|
setServiceRequest |
| Constructor Detail |
|---|
protected VFSFileDescriptor()
public VFSFileDescriptor(VirtualFile f)
VFSFileDescriptor for the given
VirtualFile.
f - the VirtualFile| Method Detail |
|---|
public final org.jdom.Element deserializeToJDOM()
deserializeToJDOM in interface JDOMablepublic final org.jdom.Element deserializeToJDOM(ServiceRequest request)
deserializeToJDOM in interface FileDescriptorrequest - the current request
public final java.net.URI getURI()
URI identifying the file.
getURI in interface FileDescriptorURI identifying the filepublic final VirtualFile getFile()
public java.lang.String getName()
getName in interface INamedpublic final int compareTo(FileDescriptor f)
FileDescriptor with the name
of the FileDescriptor.
compareTo in interface java.lang.Comparable<FileDescriptor>f - the FileDescriptor to compare with
public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
VFSFileDescriptor with a given object.
equals in class java.lang.Objecto - the object to compare to
true, if o is a
VFSFileDescriptor with the same URI.public final net.sf.json.JSONObject toJSON()
VFSFileDescriptor
(which is basically a call on VirtualFile.toJSON()).
VFSFileDescriptorVirtualFile.toJSON()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||