org.apache.webdav.lib.properties
Class ResourceTypeProperty

java.lang.Object
  |
  +--org.apache.webdav.lib.BaseProperty
        |
        +--org.apache.webdav.lib.properties.ResourceTypeProperty
All Implemented Interfaces:
Property

public class ResourceTypeProperty
extends BaseProperty

An interface that describes a standard Resource Type property (as defined by the WebDAV specification).

Author:
B.C. Holmes

Field Summary
static java.lang.String TAG_NAME
          The property name.
 
Fields inherited from class org.apache.webdav.lib.BaseProperty
element, response
 
Constructor Summary
ResourceTypeProperty(ResponseEntity response, org.w3c.dom.Element element)
          Default constructor for the property.
 
Method Summary
 boolean isCollection()
          Returns true if the resource is a collection.
 
Methods inherited from class org.apache.webdav.lib.BaseProperty
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getPropertyAsString, getStatusCode, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

public static final java.lang.String TAG_NAME
The property name.
Constructor Detail

ResourceTypeProperty

public ResourceTypeProperty(ResponseEntity response,
                            org.w3c.dom.Element element)
Default constructor for the property.
Method Detail

isCollection

public boolean isCollection()
Returns true if the resource is a collection. A collection is indicated by a response like this:
 <D:resourcetype><D:collection/></D:resourcetype>