|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.webdav.dom.ElementEditor
org.eclipse.webdav.dom.Update
public class Update
An element editor for the WebDAV update element.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary | |
---|---|
static String[] |
childNames
|
Fields inherited from class org.eclipse.webdav.dom.ElementEditor |
---|
DAV_NS, root, XML_NS_NAME, XML_NS_PREFIX, XML_PREFIX |
Constructor Summary | |
---|---|
Update(Element root)
Creates a new editor on the given WebDAV set target element. |
Method Summary | |
---|---|
static Update |
createLabel(Document document,
String label)
Creates a new WebDAV update element and sets it as the root of the given document. |
static Update |
createVersion(Document document,
String href)
Creates a new WebDAV update element and sets it as the root of the given document. |
String |
getLabel()
|
String |
getVersion()
Returns this response's first DAV:version child element. |
boolean |
isVersion()
|
void |
setLabelName(String label)
Sets the DAV:label child element. |
void |
setVersion(String href)
Sets the DAV:version child element. |
Methods inherited from class org.eclipse.webdav.dom.ElementEditor |
---|
addChild, addChild, addChild, appendChild, appendChild, cloneNode, create, declareNS, decodeHref, encodeHref, ensure, ensure, ensureDAVElement, ensureDAVElement, ensureNotNull, ensureNull, ensureText, extractElement, extractNode, getChild, getChildElement, getChildText, getDAVChild, getElement, getFirstChild, getFirstChild, getFirstText, getLastChild, getNamespaces, getNamespaces, getNextSibling, getNextSibling, getNextSibling, getNSLocalName, getNSLocalName, getNSName, getNSPrefix, getNSPrefix, getQualifiedName, getSibling, getText, getTwin, hasChild, insertBefore, insertBefore, isDAVElement, isDAVElement, isElement, isText, makeNSStandalone, reduceNS, reduceNS, resolve, setChild, setChild, setChild |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String[] childNames
Constructor Detail |
---|
public Update(Element root) throws MalformedElementException
root
- an activelock element
MalformedElementException
- if there is reason to
believe that the element is not well formedMethod Detail |
---|
public static Update createLabel(Document document, String label)
The document must not be null
, and must not already have
a root element.
document
- the document that will become the root of a new
update element.
public static Update createVersion(Document document, String href)
The document must not be null
, and must not already have
a root element.
document
- the document that will become the root of a new
update element
public String getLabel() throws MalformedElementException
MalformedElementException
public String getVersion() throws MalformedElementException
MalformedElementException
- if there is reason to believe that
this editor's underlying element is not well formedpublic boolean isVersion() throws MalformedElementException
MalformedElementException
public void setLabelName(String label) throws MalformedElementException
label
- the string label to the version.
MalformedElementException
- if there is reason to believe that
this editor's underlying element is not well formedpublic void setVersion(String href) throws MalformedElementException
href
- the string href to the version.
MalformedElementException
- if there is reason to believe that
this editor's underlying element is not well formed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |