public class DavPropertySet extends PropContainer implements java.lang.Iterable<DavProperty<?>>
DavPropertySet
class represents a set of WebDAV
property.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 |
---|
DavPropertySet() |
Modifier and Type | Method and Description |
---|---|
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(java.lang.String name)
Retrieves the property with the specified
name and the
default WebDAV namespace . |
DavProperty<?> |
get(java.lang.String name,
Namespace namespace)
Retrieves the property with the specified
name and
namespace . |
java.util.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(java.lang.String name)
Removes the property with the specified
name and the
default WebDAV namespace . |
DavProperty<?> |
remove(java.lang.String name,
Namespace namespace)
Removes the property with the specified
name and
namespace from this set. |
addContent, toXml
public DavProperty<?> add(DavProperty<?> property)
property
- The property to addnull
.public void addAll(DavPropertySet pset)
pset
- Properties to addpublic DavProperty<?> get(java.lang.String name)
name
and the
default WebDAV namespace
.name
- The name of the property to retrievenull
public DavProperty<?> get(java.lang.String name, Namespace namespace)
name
and
namespace
.name
- The name of the property to retrievenamespace
- The namespace of the property to retrievenull
public DavProperty<?> get(DavPropertyName name)
name
name
- The webdav property name of the property to retrievenull
public DavProperty<?> remove(DavPropertyName name)
name
- The webdav property name to removenull
public DavProperty<?> remove(java.lang.String name)
name
and the
default WebDAV namespace
.name
- The name of the property to removenull
public DavProperty<?> remove(java.lang.String name, Namespace namespace)
name
and
namespace
from this set.name
- The name of the property to removenamespace
- The namespace of the property to removenull
public DavPropertyIterator iterator()
iterator
in interface java.lang.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 PropContainer
name
- The name of the propertytrue
if this set contains the property;
false
otherwise.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 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 PropContainer
PropContainer.isEmpty()
public int getContentSize()
PropContainer
PropContainer
.getContentSize
in class PropContainer
PropContainer.getContentSize()
public java.util.Collection<? extends PropEntry> getContent()
PropContainer
PropContainer
.getContent
in class PropContainer
PropContainer
.PropContainer.getContent()
Copyright © 2010 - 2020 Adobe. All Rights Reserved