public class OrderPatch extends java.lang.Object implements OrderingConstants, XmlSerializable
OrderPatch
represents the mandatory request body of an
ORDERPATCH request. RFC 3648 defines the following structure for it:<!ELEMENT orderpatch (ordering-type?, order-member*) > <!ELEMENT order-member (segment, position) > <!ELEMENT position (first | last | before | after) > <!ELEMENT segment (#PCDATA) > <!ELEMENT first EMPTY > <!ELEMENT last EMPTY > <!ELEMENT before segment > <!ELEMENT after segment >
Modifier and Type | Class and Description |
---|---|
static class |
OrderPatch.Member
Internal class
Member represents the 'Order-Member' children
elements of an 'OrderPatch' request body present in the ORDERPATCH request. |
HEADER_ORDERING_TYPE, HEADER_POSITION, NAMESPACE, ORDERING_TYPE, ORDERING_TYPE_CUSTOM, ORDERING_TYPE_UNORDERED, SUPPORTED_LIVE_PROPERTY_SET, SUPPORTED_METHOD_SET, XML_AFTER, XML_BEFORE, XML_FIRST, XML_LAST, XML_ORDER_MEMBER, XML_ORDERING_TYPE, XML_ORDERPATCH, XML_POSITION, XML_SEGMENT
Constructor and Description |
---|
OrderPatch(java.lang.String orderingType,
OrderPatch.Member instruction)
Create a new
OrderPath object. |
OrderPatch(java.lang.String orderingType,
OrderPatch.Member[] instructions)
Create a new
OrderPath object. |
Modifier and Type | Method and Description |
---|---|
static OrderPatch |
createFromXml(org.w3c.dom.Element orderPatchElement)
Create a new
OrderPath object. |
java.lang.String |
getOrderingType()
Return the ordering type.
|
OrderPatch.Member[] |
getOrderInstructions()
Return an array of
OrderPatch.Member objects defining the re-ordering
instructions to be applied to the requested resource. |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object as
Element . |
public OrderPatch(java.lang.String orderingType, OrderPatch.Member instruction)
OrderPath
object.orderingType
- instruction
- public OrderPatch(java.lang.String orderingType, OrderPatch.Member[] instructions)
OrderPath
object.orderingType
- instructions
- public java.lang.String getOrderingType()
public OrderPatch.Member[] getOrderInstructions()
OrderPatch.Member
objects defining the re-ordering
instructions to be applied to the requested resource.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
- public static OrderPatch createFromXml(org.w3c.dom.Element orderPatchElement) throws DavException
OrderPath
object.orderPatchElement
- java.lang.IllegalArgumentException
- if the specified Xml element was not valid.DavException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"