org.apache.jackrabbit.webdav.property
Class DavPropertySet

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.property.DavPropertySet

public class DavPropertySet
extends Object

The DavPropertySet class represents a set of WebDAV property.


Constructor Summary
DavPropertySet()
           
 
Method Summary
 DavProperty add(DavProperty property)
          Adds a new property to this set.
 void addAll(DavPropertySet pset)
           
 boolean contains(DavPropertyName name)
          Checks if this set contains the property with the specified name.
 boolean contains(String name)
          Checks if this set contains the property with the specified name and the default WebDAV namespace.
 DavProperty get(DavPropertyName name)
          Retrieves the property with the specified name
 DavProperty get(String name)
          Retrieves the property with the specified name and the default WebDAV namespace.
 DavProperty get(String name, org.jdom.Namespace namespace)
          Retrieves the property with the specified name and namespace.
 DavPropertyName[] getPropertyNames()
          Return the names of all properties present in this set.
 boolean isEmpty()
          Return true if this property set is empty.
 DavPropertyIterator iterator()
          Returns an iterator over all property in this set.
 DavPropertyIterator iterator(org.jdom.Namespace namespace)
          Returns an iterator over all those property in this set, that have the indicated namespace.
 DavProperty remove(DavPropertyName name)
          Removes the indicated property from this set.
 DavProperty remove(String name)
          Removes the property with the specified name and the default WebDAV namespace.
 DavProperty remove(String name, org.jdom.Namespace namespace)
          Removes the property with the specified name and namespace from this set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavPropertySet

public DavPropertySet()
Method Detail

add

public DavProperty add(DavProperty property)
Adds a new property to this set.

Parameters:
property - The property to add
Returns:
The previously assigned property or null.

addAll

public void addAll(DavPropertySet pset)
Parameters:
pset - Properties to add

get

public DavProperty get(String name)
Retrieves the property with the specified name and the default WebDAV namespace.

Parameters:
name - The name of the property to retrieve
Returns:
The desired property or null

get

public DavProperty get(String name,
                       org.jdom.Namespace namespace)
Retrieves the property with the specified name and namespace.

Parameters:
name - The name of the property to retrieve
namespace - The namespace of the property to retrieve
Returns:
The desired property or null

get

public DavProperty get(DavPropertyName name)
Retrieves the property with the specified name

Parameters:
name - The webdav property name of the property to retrieve
Returns:
The desired property or null

remove

public DavProperty remove(DavPropertyName name)
Removes the indicated property from this set.

Parameters:
name - The webdav property name to remove
Returns:
The removed property or null

remove

public DavProperty remove(String name)
Removes the property with the specified name and the default WebDAV namespace.

Parameters:
name - The name of the property to remove
Returns:
The removed property or null

remove

public DavProperty remove(String name,
                          org.jdom.Namespace namespace)
Removes the property with the specified name and namespace from this set.

Parameters:
name - The name of the property to remove
namespace - The namespace of the property to remove
Returns:
The removed property or null

iterator

public DavPropertyIterator iterator()
Returns an iterator over all property in this set.

Returns:
An iterator over DavProperty.

iterator

public DavPropertyIterator iterator(org.jdom.Namespace namespace)
Returns an iterator over all those property in this set, that have the indicated namespace.

Parameters:
namespace - The namespace of the property in the iteration.
Returns:
An iterator over DavProperty.

contains

public boolean contains(DavPropertyName name)
Checks if this set contains the property with the specified name.

Parameters:
name - The name of the property
Returns:
true if this set contains the property; false otherwise.

contains

public boolean contains(String name)
Checks if this set contains the property with the specified name and the default WebDAV namespace.

Parameters:
name - The name of the property
Returns:
true if this set contains the property; false otherwise.

isEmpty

public boolean isEmpty()
Return true if this property set is empty.

Returns:
true if the internal map contains no elements.

getPropertyNames

public DavPropertyName[] getPropertyNames()
Return the names of all properties present in this set.

Returns:
array of property names present in this set.


Copyright © 2005 . All Rights Reserved.