pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.vfs.filebrowser
Class AbstractDescriptor

java.lang.Object
  extended by org.torweg.pulse.vfs.filebrowser.AbstractDescriptor
All Implemented Interfaces:
JDOMable
Direct Known Subclasses:
VFSDirectoryDescriptor, VFSFileDescriptor

public abstract class AbstractDescriptor
extends java.lang.Object
implements JDOMable

contains common methods for descriptors of the VirtualFileSystem .

Version:
$Revision: 1640 $
Author:
Thomas Weber

Constructor Summary
AbstractDescriptor()
           
 
Method Summary
protected  ServiceRequest getServiceRequest()
          returns the current ServiceRequest.
 org.jdom.Element insertVirtualFileInformation(org.jdom.Element e, VirtualFile f, ServiceRequest req)
          inserts the information of the given VirtualFile into the given Element.
 void setServiceRequest(ServiceRequest r)
          sets the current ServiceRequest for the descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.bundle.JDOMable
deserializeToJDOM
 

Constructor Detail

AbstractDescriptor

public AbstractDescriptor()
Method Detail

insertVirtualFileInformation

public final org.jdom.Element insertVirtualFileInformation(org.jdom.Element e, VirtualFile f, ServiceRequest req)
inserts the information of the given VirtualFile into the given Element.

This is a utility method for the JDOM deserialisation.

Parameters:
e - the element
f - the file
req - the current request
Returns:
an Element with the information of the given VirtualFile inserted

setServiceRequest

public final void setServiceRequest(ServiceRequest r)
sets the current ServiceRequest for the descriptor.

Parameters:
r - the current ServiceRequest

getServiceRequest

protected final ServiceRequest getServiceRequest()
returns the current ServiceRequest.

Returns:
the current ServiceRequest