Package 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
An interface that describes a standard Resource Type property (as defined by
the WebDAV specification).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property collection tag.static final StringThe property name.static final StringFields inherited from class org.apache.webdav.lib.BaseProperty
element, response -
Constructor Summary
ConstructorsConstructorDescriptionResourceTypeProperty(ResponseEntity response, Element element) Default constructor for the property. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the value of the property.booleanReturns true if the resource is a collection.booleanMethods inherited from class org.apache.webdav.lib.BaseProperty
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getStatusCode, toString
-
Field Details
-
TAG_NAME
The property name.- See Also:
-
TAG_COLLECTION
The property collection tag.- See Also:
-
TAG_PRINCIPAL
- See Also:
-
-
Constructor Details
-
ResourceTypeProperty
Default constructor for the property.
-
-
Method Details
-
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>
-
isPrincipal
public boolean isPrincipal() -
getPropertyAsString
This method returns the value of the property. For this property "COLLECTION" is returned if this resource is a collection, "" otherwise. WARNING: this will change in the future use isCollection()- Specified by:
getPropertyAsStringin interfaceProperty- Overrides:
getPropertyAsStringin classBaseProperty
-