smbdav.properties
Class GetLastModifiedProperty

java.lang.Object
  extended bysmbdav.AbstractProperty
      extended bysmbdav.properties.GetLastModifiedProperty
All Implemented Interfaces:
Property

public class GetLastModifiedProperty
extends AbstractProperty

Provides access to the creationdate property. This implementation returns the resource's last modified date.

Author:
Eric Glass

Field Summary
 
Fields inherited from interface smbdav.Property
DAV_NAMESPACE, WEB_FOLDERS_NAMESPACE, XMLNS_NAMESPACE
 
Constructor Summary
GetLastModifiedProperty()
           
 
Method Summary
 org.w3c.dom.Element createElement(org.w3c.dom.Document document, jcifs.smb.SmbFile file)
          Creates a property element for the given resource (if applicable), with the specified document as the owner.
 int retrieve(jcifs.smb.SmbFile file, org.w3c.dom.Element element)
          Populates the provided Element with the current value of the property for the given resource.
 
Methods inherited from class smbdav.AbstractProperty
addNamespace, destroy, equals, getName, getNamespace, getNamespace, getPrefix, getPrefix, getServletConfig, hashCode, init, toString, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetLastModifiedProperty

public GetLastModifiedProperty()
Method Detail

createElement

public org.w3c.dom.Element createElement(org.w3c.dom.Document document,
                                         jcifs.smb.SmbFile file)
                                  throws java.io.IOException
Description copied from class: AbstractProperty
Creates a property element for the given resource (if applicable), with the specified document as the owner. The element will not be added to the document. This default implementation creates an empty element, and adds a namespace assignment to the given document if necessary.

Specified by:
createElement in interface Property
Overrides:
createElement in class AbstractProperty
Parameters:
document - The document that is to own the property element.
file - The resource being queried.
Returns:
An Element for the property. If this property does not apply to the specified resource, null will be returned. The default implementation creates an empty element for all resources.
Throws:
java.io.IOException - If an IO error occurs while creating the element.

retrieve

public int retrieve(jcifs.smb.SmbFile file,
                    org.w3c.dom.Element element)
             throws java.io.IOException
Description copied from interface: Property
Populates the provided Element with the current value of the property for the given resource.

Specified by:
retrieve in interface Property
Specified by:
retrieve in class AbstractProperty
Throws:
java.io.IOException


Copyright © 2004 Eric Glass