org.eclipse.webdav.dom
Class Bindings
java.lang.Object
org.eclipse.webdav.dom.ElementEditor
org.eclipse.webdav.dom.Property
org.eclipse.webdav.dom.Bindings
public class Bindings
- extends Property
An element editor for the WebDAV bindings element. See INTERNET DRAFT
draft-ietf-webdav-binding-protocol-02 section 13.1 for the element's
definition.
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.
Nested Class Summary |
class |
Bindings.Binding
This class represent a single binding. |
Field Summary |
protected static String[] |
childNames
An ordered collection of the element names of the bindings
element's children. |
Constructor Summary |
Bindings(Element root)
Creates a new editor on the given WebDAV bindings 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 |
childNames
protected static final String[] childNames
- An ordered collection of the element names of the bindings
element's children.
Bindings
public Bindings(Element root)
throws MalformedElementException
- Creates a new editor on the given WebDAV bindings element. The
element is assumed to be well formed.
- Parameters:
root
- bindings element
- Throws:
MalformedElementException
- if there is reason to
believe that the element is not well formed
addBinding
public void addBinding(String href,
String segment)
- Adds the specified binding to this editor's bindings element. The
given href and segment must not be
null
.
- Parameters:
href
- the href part of the binding to addsegment
- the segment part of the binding to add
getBindings
public Enumeration getBindings()
throws MalformedElementException
- Returns an
Enumeration
over this bindings
Binding
s.
- Returns:
- an
Enumeration
of Bindings.Binding
s
- Throws:
MalformedElementException
- if there is reason to believe that
this editor's underlying element is not well formed
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.