org.apache.webdav.lib.methods
Class XMLResponseMethodBase.ResourceTypePropertyImpl

java.lang.Object
  |
  +--org.apache.webdav.lib.methods.XMLResponseMethodBase.PropertyImpl
        |
        +--org.apache.webdav.lib.methods.XMLResponseMethodBase.ResourceTypePropertyImpl
All Implemented Interfaces:
Property, ResourceTypeProperty
Enclosing class:
XMLResponseMethodBase

static class XMLResponseMethodBase.ResourceTypePropertyImpl
extends XMLResponseMethodBase.PropertyImpl
implements ResourceTypeProperty

This represents a DAV:resourcetype property. It provides some convenience methods for working with the property.


Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase.PropertyImpl
element, response
 
Fields inherited from interface org.apache.webdav.lib.properties.ResourceTypeProperty
TAG_NAME
 
Constructor Summary
(package private) XMLResponseMethodBase.ResourceTypePropertyImpl(XMLResponseMethodBase.Response response, org.w3c.dom.Element element)
           
 
Method Summary
 boolean isCollection()
          Returns true if the resource is a collection.
 
Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase.PropertyImpl
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
 
Methods inherited from interface org.apache.webdav.lib.Property
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getPropertyAsString, getStatusCode
 

Constructor Detail

XMLResponseMethodBase.ResourceTypePropertyImpl

XMLResponseMethodBase.ResourceTypePropertyImpl(XMLResponseMethodBase.Response response,
                                               org.w3c.dom.Element element)
Method Detail

isCollection

public boolean isCollection()
Description copied from interface: ResourceTypeProperty
Returns true if the resource is a collection. A collection is indicated by a response like this:
 <D:resourcetype><D:collection/></D:resourcetype>
 
Specified by:
isCollection in interface ResourceTypeProperty