|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.webdav.property.PropContainer org.apache.jackrabbit.webdav.property.DavPropertySet
The DavPropertySet
class represents a set of WebDAV
property.
Field Summary |
Constructor Summary | |
DavPropertySet()
|
Method Summary | |
DavProperty |
add(DavProperty property)
Adds a new property to this set. |
void |
addAll(DavPropertySet pset)
|
boolean |
addContent(Object contentEntry)
Tries to add the specified object to the PropContainer and
returns a boolean indicating whether the content could be added to the
internal set/map. |
boolean |
contains(DavPropertyName name)
Checks if this set contains the property with the specified name. |
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,
Namespace namespace)
Retrieves the property with the specified name and
namespace . |
Collection |
getContent()
Returns the collection that contains all the content elements of this PropContainer . |
int |
getContentSize()
Returns the number of property related content elements that are present in this PropContainer . |
DavPropertyName[] |
getPropertyNames()
Return the names of all properties present in this set. |
boolean |
isEmpty()
Returns true if the PropContainer does not yet contain any content elements. |
DavPropertyIterator |
iterator()
Returns an iterator over all property in this set. |
DavPropertyIterator |
iterator(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,
Namespace namespace)
Removes the property with the specified name and
namespace from this set. |
Methods inherited from class org.apache.jackrabbit.webdav.property.PropContainer |
toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DavPropertySet()
Method Detail |
public DavProperty add(DavProperty property)
property
- The property to add
null
.public void addAll(DavPropertySet pset)
pset
- Properties to addpublic DavProperty get(String name)
name
and the
default WebDAV namespace
.
name
- The name of the property to retrieve
null
public DavProperty get(String name, Namespace namespace)
name
and
namespace
.
name
- The name of the property to retrievenamespace
- The namespace of the property to retrieve
null
public DavProperty get(DavPropertyName name)
name
name
- The webdav property name of the property to retrieve
null
public DavProperty remove(DavPropertyName name)
name
- The webdav property name to remove
null
public DavProperty remove(String name)
name
and the
default WebDAV namespace
.
name
- The name of the property to remove
null
public DavProperty remove(String name, Namespace namespace)
name
and
namespace
from this set.
name
- The name of the property to removenamespace
- The namespace of the property to remove
null
public DavPropertyIterator iterator()
DavProperty
.public DavPropertyIterator iterator(Namespace namespace)
namespace
.
namespace
- The namespace of the property in the iteration.
DavProperty
.public DavPropertyName[] getPropertyNames()
property names
present in this set.public boolean contains(DavPropertyName name)
contains
in class PropContainer
name
- The name of the property
true
if this set contains the property;
false
otherwise.PropContainer.contains(DavPropertyName)
public boolean addContent(Object contentEntry)
PropContainer
PropContainer
and
returns a boolean indicating whether the content could be added to the
internal set/map.
addContent
in class PropContainer
contentEntry
- NOTE, that the given object must be an instance of
DavProperty
in order to be successfully added to this set.
DavProperty
and false otherwise.PropContainer.addContent(Object)
public boolean isEmpty()
PropContainer
isEmpty
in class PropContainer
PropContainer.isEmpty()
public int getContentSize()
PropContainer
PropContainer
.
getContentSize
in class PropContainer
PropContainer.getContentSize()
public Collection getContent()
PropContainer
PropContainer
.
getContent
in class PropContainer
PropContainer
.PropContainer.getContent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |