org.apache.wink.webdav.model
Class WebDAVModelHelper

java.lang.Object
  extended by org.apache.wink.webdav.model.WebDAVModelHelper

public class WebDAVModelHelper
extends java.lang.Object


Constructor Summary
WebDAVModelHelper()
           
 
Method Summary
static java.lang.String convertDateToXMLDate(java.util.Date date)
           
static java.util.Date convertXMLDateToDate(java.lang.String date)
           
static org.w3c.dom.Element createElement(javax.xml.namespace.QName qname)
           
static org.w3c.dom.Element createElement(javax.xml.namespace.QName qname, org.w3c.dom.Element content)
           
static org.w3c.dom.Element createElement(javax.xml.namespace.QName qname, java.lang.String content)
           
static org.w3c.dom.Element createElement(java.lang.String namespaceURI, java.lang.String name)
           
static org.w3c.dom.Element createElement(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.Element child)
           
static org.w3c.dom.Element createElement(java.lang.String namespaceURI, java.lang.String name, java.lang.String content)
           
static javax.xml.bind.Marshaller createMarshaller()
           
static javax.xml.bind.Unmarshaller createUnmarshaller()
           
static java.util.Set<javax.xml.namespace.QName> extractPropertyNames(Prop prop, java.util.Set<javax.xml.namespace.QName> set)
           
static java.lang.String getFullName(javax.xml.namespace.QName qname)
           
static void marshal(javax.xml.bind.Marshaller m, java.lang.Object element, java.io.Writer writer, java.lang.String elementName)
           
static
<T> T
unmarshal(javax.xml.bind.Unmarshaller u, java.io.Reader reader, java.lang.Class<T> elementClass, java.lang.String elementName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDAVModelHelper

public WebDAVModelHelper()
Method Detail

createMarshaller

public static javax.xml.bind.Marshaller createMarshaller()

createUnmarshaller

public static javax.xml.bind.Unmarshaller createUnmarshaller()

marshal

public static void marshal(javax.xml.bind.Marshaller m,
                           java.lang.Object element,
                           java.io.Writer writer,
                           java.lang.String elementName)

unmarshal

public static <T> T unmarshal(javax.xml.bind.Unmarshaller u,
                              java.io.Reader reader,
                              java.lang.Class<T> elementClass,
                              java.lang.String elementName)

extractPropertyNames

public static java.util.Set<javax.xml.namespace.QName> extractPropertyNames(Prop prop,
                                                                            java.util.Set<javax.xml.namespace.QName> set)

createElement

public static org.w3c.dom.Element createElement(javax.xml.namespace.QName qname)

createElement

public static org.w3c.dom.Element createElement(javax.xml.namespace.QName qname,
                                                java.lang.String content)

createElement

public static org.w3c.dom.Element createElement(javax.xml.namespace.QName qname,
                                                org.w3c.dom.Element content)

getFullName

public static java.lang.String getFullName(javax.xml.namespace.QName qname)

createElement

public static org.w3c.dom.Element createElement(java.lang.String namespaceURI,
                                                java.lang.String name)

createElement

public static org.w3c.dom.Element createElement(java.lang.String namespaceURI,
                                                java.lang.String name,
                                                java.lang.String content)

createElement

public static org.w3c.dom.Element createElement(java.lang.String namespaceURI,
                                                java.lang.String qualifiedName,
                                                org.w3c.dom.Element child)

convertDateToXMLDate

public static java.lang.String convertDateToXMLDate(java.util.Date date)

convertXMLDateToDate

public static java.util.Date convertXMLDateToDate(java.lang.String date)
                                           throws java.text.ParseException
Throws:
java.text.ParseException


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.