|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.PropContainer
org.apache.jackrabbit.webdav.property.DavPropertySet
public class 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(PropEntry contentEntry)
Tries to add the specified entry 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<? extends PropEntry> |
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 |
|---|
addContent, 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
nullpublic DavProperty<?> get(DavPropertyName name)
name
name - The webdav property name of the property to retrieve
nullpublic DavProperty<?> remove(DavPropertyName name)
name - The webdav property name to remove
nullpublic 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
nullpublic DavPropertyIterator iterator()
iterator in interface Iterable<DavProperty<?>>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 PropContainername - The name of the property
true if this set contains the property;
false otherwise.PropContainer.contains(DavPropertyName)public boolean addContent(PropEntry contentEntry)
PropContainerPropContainer and
returns a boolean indicating whether the content could be added to the
internal set/map.
addContent in class PropContainercontentEntry - 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(PropEntry)public boolean isEmpty()
PropContainer
isEmpty in class PropContainerPropContainer.isEmpty()public int getContentSize()
PropContainerPropContainer.
getContentSize in class PropContainerPropContainer.getContentSize()public Collection<? extends PropEntry> getContent()
PropContainerPropContainer.
getContent in class PropContainerPropContainer.PropContainer.getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||