org.apache.webdav.lib.properties
Class PrincipalCollectionSetProperty

java.lang.Object
  extended byorg.apache.webdav.lib.BaseProperty
      extended byorg.apache.webdav.lib.properties.PrincipalCollectionSetProperty
All Implemented Interfaces:
Property

public class PrincipalCollectionSetProperty
extends BaseProperty

This class models the <D:principal-collection-set> property, which is defined in the WebDAV Access Control Protocol specification.

Version:
$Revision: 1.4 $

Field Summary
static java.lang.String TAG_NAME
          The property name.
 
Fields inherited from class org.apache.webdav.lib.BaseProperty
element, response
 
Constructor Summary
PrincipalCollectionSetProperty(ResponseEntity response, org.w3c.dom.Element element)
          Default constructor for the property.
 
Method Summary
 java.lang.String[] getHrefs()
          Returns the Hrefs present in this principal-collection-set property.
 java.lang.String getPropertyAsString()
          This method returns the value of the property.
 
Methods inherited from class org.apache.webdav.lib.BaseProperty
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getStatusCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NAME

public static final java.lang.String TAG_NAME
The property name.

See Also:
Constant Field Values
Constructor Detail

PrincipalCollectionSetProperty

public PrincipalCollectionSetProperty(ResponseEntity response,
                                      org.w3c.dom.Element element)
Default constructor for the property.

Method Detail

getHrefs

public java.lang.String[] getHrefs()
Returns the Hrefs present in this principal-collection-set property.

Returns:
String[] A href array or null when there are no href.

getPropertyAsString

public java.lang.String getPropertyAsString()
Description copied from class: BaseProperty
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.

Specified by:
getPropertyAsString in interface Property
Overrides:
getPropertyAsString in class BaseProperty