org.apache.webdav.lib
Class BaseProperty
java.lang.Object
org.apache.webdav.lib.BaseProperty
- Property
public class BaseProperty
extends java.lang.Object
This interface models a DAV property.
Element | getElement() - This method returns the property as a DOM Element.
|
String | getLocalName() - This method returns the local name of the property.
|
String | getName() - This method returns the full name of the property.
|
String | getNamespaceURI() - This method returns the namespace of the property.
|
String | getOwningURL() - This method returns URL file path of the resource to which this
property belongs.
|
String | getPropertyAsString() - This method returns the value of the property.
|
int | getStatusCode() - This method returns the status code associated with the property.
|
String | toString() - Get a String representation of the property.
|
element
protected Element element
Associated node element.
BaseProperty
public BaseProperty(ResponseEntity response,
Element element)
Default constructor for the property.
getElement
public Element getElement()
This method returns the property as a DOM Element.
- getElement in interface Property
getLocalName
public 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>
returns
getlastmodified
.
- getLocalName in interface Property
getName
public 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>
returns
D:getlastmodified
.
- getName in interface Property
getNamespaceURI
public 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>
returns
DAV:
.
- getNamespaceURI in interface Property
getOwningURL
public String getOwningURL()
This method returns URL file path of the resource to which this
property belongs.
- getOwningURL in interface Property
getPropertyAsString
public 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>
returns
Tue, 05 Dec 2000 05:25:02
.
Note: Mixed content (text and xml together) will not be returned
accurately.
- getPropertyAsString in interface Property
getStatusCode
public int getStatusCode()
This method returns the status code associated with the property.
- getStatusCode in interface Property
toString
public String toString()
Get a String representation of the property.