public class UpdateInfo extends java.lang.Object implements DeltaVConstants, XmlSerializable
UpdateInfo
encapsulates the request body of an UPDATE request.
RFC 3253 defines the request body as follows:
<!ELEMENT update ANY> ANY value: A sequence of elements with at most one DAV:label-name or DAV:version element (but not both). In addition at one DAV:prop element can be present. <!ELEMENT version (href)> <!ELEMENT label-name (#PCDATA)> PCDATA value: string prop: see RFC 2518, Section 12.11In order to reflect the complete range of version restoring and updating of nodes defined by JSR170 the definition has been extended:
<!ELEMENT update ( (version | label-name | workspace ) , (prop)?, (removeExisting)? ) > <!ELEMENT version (href+) > <!ELEMENT label-name (#PCDATA) > <!ELEMENT workspace (href) > <!ELEMENT prop ANY > <!ELEMENT removeExisting EMPTY >
Modifier and Type | Field and Description |
---|---|
static int |
UPDATE_BY_LABEL |
static int |
UPDATE_BY_VERSION |
static int |
UPDATE_BY_WORKSPACE |
ATTR_NAME, ATTR_NAMESPACE, COMMENT, CREATOR_DISPLAYNAME, HEADER_LABEL, HEADER_LOCATION, NAMESPACE, SUPPORTED_LIVE_PROPERTY_SET, SUPPORTED_METHOD_SET, SUPPORTED_REPORT_SET, VERSION_CONTROLLED_CONFIGURATION, WORKSPACE, XML_ACTIVITY, XML_ACTIVITY_COLLECTION_SET, XML_BASELINE, XML_CHECKOUT, XML_CHECKOUT_CHECKIN, XML_CHECKOUT_UNLOCK_CHECKIN, XML_EXPAND_PROPERTY, XML_LABEL, XML_LABEL_ADD, XML_LABEL_NAME, XML_LABEL_REMOVE, XML_LABEL_SET, XML_LOCATE_BY_HISTORY, XML_LOCKED_CHECKIN, XML_MERGE, XML_N0_AUTO_MERGE, XML_N0_CHECKOUT, XML_OPTIONS, XML_OPTIONS_RESPONSE, XML_PROPERTY, XML_REPORT, XML_SUPPORTED_METHOD, XML_SUPPORTED_REPORT, XML_UPDATE, XML_VERSION, XML_VERSION_HISTORY, XML_VERSION_HISTORY_SET, XML_VERSION_TREE, XML_VH_COLLECTION_SET, XML_WORKSPACE, XML_WSP_COLLECTION_SET
Constructor and Description |
---|
UpdateInfo(org.w3c.dom.Element updateElement)
Create a new
UpdateInfo object. |
UpdateInfo(java.lang.String[] updateSource,
int updateType,
DavPropertyNameSet propertyNameSet) |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Element |
createUpdateElement(java.lang.String[] updateSource,
int updateType,
org.w3c.dom.Document factory)
Factory method to create the basic structure of an
UpdateInfo
object. |
java.lang.String[] |
getLabelName() |
DavPropertyNameSet |
getPropertyNameSet()
Returns a
DavPropertyNameSet . |
org.w3c.dom.Element |
getUpdateElement() |
java.lang.String[] |
getVersionHref() |
java.lang.String |
getWorkspaceHref() |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object as
Element . |
public static final int UPDATE_BY_VERSION
public static final int UPDATE_BY_LABEL
public static final int UPDATE_BY_WORKSPACE
public UpdateInfo(java.lang.String[] updateSource, int updateType, DavPropertyNameSet propertyNameSet)
public UpdateInfo(org.w3c.dom.Element updateElement) throws DavException
UpdateInfo
object.updateElement
- DavException
- if the updateElement is null
or not a DAV:update element or if the element does not match the required
structure.public java.lang.String[] getVersionHref()
public java.lang.String[] getLabelName()
public java.lang.String getWorkspaceHref()
public DavPropertyNameSet getPropertyNameSet()
DavPropertyNameSet
. If the DAV:update element contains
a DAV:prop child element the properties specified therein are included
in the set. Otherwise an empty set is returned.
WARNING: modifying the DavPropertyNameSet returned by this method does
not modify this UpdateInfo
.
public org.w3c.dom.Element getUpdateElement()
public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
XmlSerializable
Element
. The given Document
is used
as factory and represents the owner document
of the returned DOM element.toXml
in interface XmlSerializable
document
- XmlSerializable.toXml(Document)
public static org.w3c.dom.Element createUpdateElement(java.lang.String[] updateSource, int updateType, org.w3c.dom.Document factory)
UpdateInfo
object.updateSource
- updateType
- factory
- "Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"