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
public class BaseProperty extends java.lang.Object implements Property
This interface models a DAV property.- Version:
- $Revision: 1.5 $
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.ElementelementAssociated node element.protected ResponseEntityresponseAssociated response entity.
-
Constructor Summary
Constructors Constructor Description BaseProperty(ResponseEntity response, org.w3c.dom.Element element)Default constructor for the property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.ElementgetElement()This method returns the property as a DOM Element.java.lang.StringgetLocalName()This method returns the local name of the property.java.lang.StringgetName()This method returns the full name of the property.java.lang.StringgetNamespaceURI()This method returns the namespace of the property.java.lang.StringgetOwningURL()This method returns URL file path of the resource to which this property belongs.java.lang.StringgetPropertyAsString()This method returns the value of the property.intgetStatusCode()This method returns the status code associated with the property.java.lang.StringtoString()Get a String representation of the property.
-
-
-
Field Detail
-
response
protected ResponseEntity response
Associated response entity.
-
element
protected org.w3c.dom.Element element
Associated node element.
-
-
Constructor Detail
-
BaseProperty
public BaseProperty(ResponseEntity response, org.w3c.dom.Element element)
Default constructor for the property.
-
-
Method Detail
-
getName
public java.lang.String 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
public java.lang.String 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:
getLocalNamein interfaceProperty
-
getNamespaceURI
public java.lang.String 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:
getNamespaceURIin interfaceProperty
-
getElement
public org.w3c.dom.Element getElement()
This method returns the property as a DOM Element.- Specified by:
getElementin interfaceProperty
-
getPropertyAsString
public java.lang.String 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:
getPropertyAsStringin interfaceProperty
-
getStatusCode
public int getStatusCode()
This method returns the status code associated with the property.- Specified by:
getStatusCodein interfaceProperty
-
getOwningURL
public java.lang.String getOwningURL()
This method returns URL file path of the resource to which this property belongs.- Specified by:
getOwningURLin interfaceProperty
-
toString
public java.lang.String toString()
Get a String representation of the property.- Overrides:
toStringin classjava.lang.Object
-
-