|
||||||||||
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 |
addAll(DavPropertyNameSet propertyNames)
Add the property names contained in the specified set to this set. |
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)
Returns true if this PropContainer contains a content element
that matches the given DavPropertyName . |
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 . |
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 |
---|
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 addAll(DavPropertyNameSet propertyNames)
propertyNames
-
public boolean remove(DavPropertyName propertyName)
DavPropertyName
object from this set.
propertyName
-
HashSet.remove(Object)
public DavPropertyNameIterator iterator()
DavPropertyName
s contained in this
set.public boolean contains(DavPropertyName name)
PropContainer
PropContainer
contains a content element
that matches the given DavPropertyName
.
contains
in class PropContainer
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 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 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 |