public class DavPropertyNameSet extends PropContainer implements java.lang.Iterable<DavPropertyName>
DavPropertyNameSet
represents a Set of DavPropertyName
objects.creationDateFormat, DEPTH_0, DEPTH_1, DEPTH_INFINITY, DEPTH_INFINITY_S, HEADER_AUTHORIZATION, HEADER_CONTENT_LANGUAGE, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_DAV, HEADER_DEPTH, HEADER_DESTINATION, HEADER_ETAG, HEADER_IF, HEADER_LAST_MODIFIED, HEADER_LOCK_TOKEN, HEADER_OVERWRITE, HEADER_TIMEOUT, INFINITE_TIMEOUT, modificationDateFormat, NAMESPACE, OPAQUE_LOCK_TOKEN_PREFIX, PROPERTY_CREATIONDATE, PROPERTY_DISPLAYNAME, PROPERTY_GETCONTENTLANGUAGE, PROPERTY_GETCONTENTLENGTH, PROPERTY_GETCONTENTTYPE, PROPERTY_GETETAG, PROPERTY_GETLASTMODIFIED, PROPERTY_LOCKDISCOVERY, PROPERTY_RESOURCETYPE, PROPERTY_SOURCE, PROPERTY_SUPPORTEDLOCK, PROPFIND_ALL_PROP, PROPFIND_ALL_PROP_INCLUDE, PROPFIND_BY_PROPERTY, PROPFIND_PROPERTY_NAMES, TIMEOUT_INFINITE, UNDEFINED_TIME, UNDEFINED_TIMEOUT, XML_ACTIVELOCK, XML_ALLPROP, XML_COLLECTION, XML_DEPTH, XML_DST, XML_EXCLUSIVE, XML_HREF, XML_INCLUDE, XML_KEEPALIVE, XML_LINK, XML_LOCKENTRY, XML_LOCKINFO, XML_LOCKROOT, XML_LOCKSCOPE, XML_LOCKTOKEN, XML_LOCKTYPE, XML_MULTISTATUS, XML_OMIT, XML_OWNER, XML_PROP, XML_PROPERTYBEHAVIOR, XML_PROPERTYUPDATE, XML_PROPFIND, XML_PROPNAME, XML_PROPSTAT, XML_REMOVE, XML_RESPONSE, XML_RESPONSEDESCRIPTION, XML_SET, XML_SHARED, XML_SOURCE, XML_STATUS, XML_TIMEOUT, XML_WRITE
Constructor and Description |
---|
DavPropertyNameSet()
Create a new empty set.
|
DavPropertyNameSet(DavPropertyNameSet initialSet)
Create a new
DavPropertyNameSet with the given initial values. |
DavPropertyNameSet(org.w3c.dom.Element propElement)
Create a new
DavPropertyNameSet from the given DAV:prop
element. |
Modifier and Type | Method and Description |
---|---|
boolean |
add(DavPropertyName propertyName)
Adds the specified
DavPropertyName object to this
set if it is not already present. |
boolean |
add(java.lang.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 . |
java.util.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. |
addContent, toXml
public DavPropertyNameSet()
public DavPropertyNameSet(DavPropertyNameSet initialSet)
DavPropertyNameSet
with the given initial values.initialSet
- public DavPropertyNameSet(org.w3c.dom.Element propElement)
DavPropertyNameSet
from the given DAV:prop
element.propElement
- java.lang.IllegalArgumentException
- if the specified element is null
or is not a DAV:prop element.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(java.lang.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 java.lang.Iterable<DavPropertyName>
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(PropEntry 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 java.util.Collection<DavPropertyName> getContent()
PropContainer
PropContainer
.getContent
in class PropContainer
PropContainer
.PropContainer.getContent()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"