|
||||||||||
| 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.DavPropertyNameSet
public class DavPropertyNameSet
DavPropertyNameSet represents a Set of DavPropertyName
objects.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DavPropertyNameSet()
Create a new empty set. |
|
DavPropertyNameSet(DavPropertyNameSet initialSet)
Create a new DavPropertyNameSet with the given initial values. |
|
DavPropertyNameSet(Element propElement)
Create a new DavPropertyNameSet from the given DAV:prop
element. |
|
| Method Summary | |
|---|---|
boolean |
add(DavPropertyName propertyName)
Adds the specified DavPropertyName object to this
set if it is not already present. |
boolean |
add(String localName,
Namespace namespace)
Creates a DavPropertyName from the given parameters and add it to this set. |
boolean |
addAll(DavPropertyNameSet propertyNames)
Add the property names contained in the specified set to this set. |
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)
Returns true if this PropContainer contains a content element
that matches the given DavPropertyName. |
Collection<DavPropertyName> |
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. |
boolean |
isEmpty()
Returns true if the PropContainer does not yet contain any content elements. |
DavPropertyNameIterator |
iterator()
|
boolean |
remove(DavPropertyName propertyName)
Removes the specified DavPropertyName object 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 DavPropertyNameSet()
public DavPropertyNameSet(DavPropertyNameSet initialSet)
DavPropertyNameSet with the given initial values.
initialSet - public DavPropertyNameSet(Element propElement)
DavPropertyNameSet from the given DAV:prop
element.
propElement -
IllegalArgumentException - if the specified element is null
or is not a DAV:prop element.| Method Detail |
|---|
public boolean add(DavPropertyName propertyName)
DavPropertyName object to this
set if it is not already present.
propertyName - element to be added to this set.
public boolean add(String localName,
Namespace namespace)
localName - namespace -
public boolean addAll(DavPropertyNameSet propertyNames)
propertyNames -
public boolean remove(DavPropertyName propertyName)
DavPropertyName object from this set.
propertyName -
HashSet.remove(Object)public DavPropertyNameIterator iterator()
iterator in interface Iterable<DavPropertyName>DavPropertyNames contained in this
set.public boolean contains(DavPropertyName name)
PropContainerPropContainer contains a content element
that matches the given DavPropertyName.
contains in class PropContainerPropContainer.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 an instance of DavPropertyName
in order to successfully add the given entry.
DavPropertyName
that could be added to this set. False otherwise.PropContainer.addContent(Object)public boolean isEmpty()
PropContainer
isEmpty in class PropContainerPropContainer.isEmpty()public int getContentSize()
PropContainerPropContainer.
getContentSize in class PropContainerPropContainer.getContentSize()public Collection<DavPropertyName> getContent()
PropContainerPropContainer.
getContent in class PropContainerPropContainer.PropContainer.getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||