org.eclipse.webdav.internal.kernel
Class ElementHelper

java.lang.Object
  extended by org.eclipse.webdav.internal.kernel.ElementHelper
All Implemented Interfaces:
WebDAVConstants

public class ElementHelper
extends Object
implements WebDAVConstants


Field Summary
protected static String DAV_NS_ATTRIB
           
protected static String DAV_PREFIX
           
protected  Document nodeFactory
           
protected static String NS_SEPARATOR
           
 
Fields inherited from interface org.eclipse.webdav.internal.kernel.WebDAVConstants
DAV_URI
 
Constructor Summary
ElementHelper()
           
 
Method Summary
 String extractText(Element element)
           
 Element newDAVElement(QualifiedName name)
           
 Element newDAVElementSet(QualifiedName setName, QualifiedName memberName, Enumeration memberEnum)
          Answer a DOM Element that represents a set of String.
 Element newDAVProperty(QualifiedName name, Element value)
           
 Element newDAVProperty(QualifiedName name, String value)
           
 Element newDAVTextElement(QualifiedName name, String value)
           
 Element newTextElement(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeFactory

protected Document nodeFactory

DAV_PREFIX

protected static final String DAV_PREFIX
See Also:
Constant Field Values

NS_SEPARATOR

protected static final String NS_SEPARATOR
See Also:
Constant Field Values

DAV_NS_ATTRIB

protected static final String DAV_NS_ATTRIB
See Also:
Constant Field Values
Constructor Detail

ElementHelper

public ElementHelper()
Method Detail

extractText

public String extractText(Element element)

newDAVElement

public Element newDAVElement(QualifiedName name)

newDAVElementSet

public Element newDAVElementSet(QualifiedName setName,
                                QualifiedName memberName,
                                Enumeration memberEnum)
Answer a DOM Element that represents a set of String.

The set is represented by a single Element whose name is given as the setName argument. Each member of the set is a child Element named memberName that has text taken from the memberEnum an Enumeration of String.


newDAVProperty

public Element newDAVProperty(QualifiedName name,
                              String value)

newDAVProperty

public Element newDAVProperty(QualifiedName name,
                              Element value)

newDAVTextElement

public Element newDAVTextElement(QualifiedName name,
                                 String value)

newTextElement

public Element newTextElement(String name,
                              String value)


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.