Package org.apache.webdav.lib
Class BaseProperty
java.lang.Object
org.apache.webdav.lib.BaseProperty
- All Implemented Interfaces:
Property
- Direct Known Subclasses:
AclProperty
,CurrentUserPrivilegeSetProperty
,DateProperty
,GetContentLengthProperty
,HrefValuedProperty
,LockDiscoveryProperty
,PrincipalCollectionSetProperty
,ResourceTypeProperty
,SupportedLockProperty
This interface models a DAV property.
- Version:
- $Revision: 1.5 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Element
Associated node element.protected ResponseEntity
Associated response entity. -
Constructor Summary
ConstructorsConstructorDescriptionBaseProperty
(ResponseEntity response, Element element) Default constructor for the property. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the property as a DOM Element.This method returns the local name of the property.getName()
This method returns the full name of the property.This method returns the namespace of the property.This method returns URL file path of the resource to which this property belongs.This method returns the value of the property.int
This method returns the status code associated with the property.toString()
Get a String representation of the property.
-
Field Details
-
response
Associated response entity. -
element
Associated node element.
-
-
Constructor Details
-
BaseProperty
Default constructor for the property.
-
-
Method Details
-
getName
This method returns the full name of the property. Thus, for example, calling this method on a property such as<D:getlastmodified>Tue, 05 Dec 2000 05:25:02</D:getlastmodified>
returnsD:getlastmodified
. -
getLocalName
This method returns the local name of the property. Thus, for example, calling this method on a property such as<D:getlastmodified>Tue, 05 Dec 2000 05:25:02</D:getlastmodified>
returnsgetlastmodified
.- Specified by:
getLocalName
in interfaceProperty
-
getNamespaceURI
This method returns the namespace of the property. Thus, for example, calling this method on a property such as<D:getlastmodified>Tue, 05 Dec 2000 05:25:02</D:getlastmodified>
returnsDAV:
.- Specified by:
getNamespaceURI
in interfaceProperty
-
getElement
This method returns the property as a DOM Element.- Specified by:
getElement
in interfaceProperty
-
getPropertyAsString
This method returns the value of the property. Thus, for example, calling this method on a property such as<D:getlastmodified>Tue, 05 Dec 2000 05:25:02</D:getlastmodified>
returnsTue, 05 Dec 2000 05:25:02
.
Note: Mixed content (text and xml together) will not be returned accurately.- Specified by:
getPropertyAsString
in interfaceProperty
-
getStatusCode
public int getStatusCode()This method returns the status code associated with the property.- Specified by:
getStatusCode
in interfaceProperty
-
getOwningURL
This method returns URL file path of the resource to which this property belongs.- Specified by:
getOwningURL
in interfaceProperty
-
toString
Get a String representation of the property.
-