Package org.apache.webdav.lib.properties
Class HrefValuedProperty
- java.lang.Object
-
- org.apache.webdav.lib.BaseProperty
-
- org.apache.webdav.lib.properties.HrefValuedProperty
-
- All Implemented Interfaces:
Property
- Direct Known Subclasses:
CheckedinProperty,CheckedoutProperty,OwnerProperty
public class HrefValuedProperty extends BaseProperty
Base classe for properties with a singlehrefvalue.
-
-
Field Summary
-
Fields inherited from class org.apache.webdav.lib.BaseProperty
element, response
-
-
Constructor Summary
Constructors Constructor Description HrefValuedProperty(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 java.lang.StringgetHref()Returns the value of the href element.java.lang.StringgetPropertyAsString()This method returns the value of the property.java.lang.StringtoString()Get a String representation of the property.-
Methods inherited from class org.apache.webdav.lib.BaseProperty
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getStatusCode
-
-
-
-
Constructor Detail
-
HrefValuedProperty
public HrefValuedProperty(ResponseEntity response, org.w3c.dom.Element element)
Default constructor for the property.
-
-
Method Detail
-
getHref
public java.lang.String getHref()
Returns the value of the href element.
-
getPropertyAsString
public java.lang.String getPropertyAsString()
Description copied from class:BasePropertyThis 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- Overrides:
getPropertyAsStringin classBaseProperty
-
toString
public java.lang.String toString()
Description copied from class:BasePropertyGet a String representation of the property.- Overrides:
toStringin classBaseProperty
-
-