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 String
The property collection tag.static final String
The property name.static final String
Fields 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.boolean
Returns true if the resource is a collection.boolean
Methods 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:
getPropertyAsString
in interfaceProperty
- Overrides:
getPropertyAsString
in classBaseProperty
-