org.kuali.common.util.xml.jaxb
Class JAXBXmlService

java.lang.Object
  extended by org.kuali.common.util.xml.jaxb.JAXBXmlService
All Implemented Interfaces:
XmlService

public class JAXBXmlService
extends Object
implements XmlService


Nested Class Summary
static class JAXBXmlService.Builder
           
 
Method Summary
protected  List<Class<?>> getClassesList(Class<?> clazz)
           
protected  Class<?>[] getClassesToBeBound(Class<?> clazz)
           
protected  JAXBContext getJAXBContext(Class<?> clazz)
           
<T> T
getObject(File file, Class<T> type)
           
<T> T
getObject(InputStream in, Class<T> type)
           
<T> T
getObject(String location, Class<T> type)
           
<T> T
getObjectFromXml(String xml, String encoding, Class<T> type)
           
 Map<String,?> getProperties()
           
protected  Unmarshaller getUnmarshaller(Class<?> clazz)
           
 boolean isFormatOutput()
           
 boolean isUseEclipseLinkMoxyProvider()
           
 boolean isUseNamespaceAwareParser()
           
 String toString(Object object, String encoding)
          Deprecated. Use toXml(object,encoding) instead
 String toXml(Object object, String encoding)
           
 void write(File file, Object object)
           
 void write(OutputStream out, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

write

public void write(File file,
                  Object object)
Specified by:
write in interface XmlService

write

public void write(OutputStream out,
                  Object object)
Specified by:
write in interface XmlService

getObjectFromXml

public <T> T getObjectFromXml(String xml,
                              String encoding,
                              Class<T> type)
Specified by:
getObjectFromXml in interface XmlService

getObject

public <T> T getObject(InputStream in,
                       Class<T> type)
Specified by:
getObject in interface XmlService

getObject

public <T> T getObject(File file,
                       Class<T> type)
Specified by:
getObject in interface XmlService

getObject

public <T> T getObject(String location,
                       Class<T> type)
Specified by:
getObject in interface XmlService

toXml

public String toXml(Object object,
                    String encoding)
Specified by:
toXml in interface XmlService

toString

@Deprecated
public String toString(Object object,
                                  String encoding)
Deprecated. Use toXml(object,encoding) instead

Specified by:
toString in interface XmlService

getUnmarshaller

protected Unmarshaller getUnmarshaller(Class<?> clazz)
                                throws JAXBException
Throws:
JAXBException

getJAXBContext

protected JAXBContext getJAXBContext(Class<?> clazz)
                              throws JAXBException
Throws:
JAXBException

getClassesToBeBound

protected Class<?>[] getClassesToBeBound(Class<?> clazz)

getClassesList

protected List<Class<?>> getClassesList(Class<?> clazz)

isFormatOutput

public boolean isFormatOutput()

isUseNamespaceAwareParser

public boolean isUseNamespaceAwareParser()

getProperties

public Map<String,?> getProperties()

isUseEclipseLinkMoxyProvider

public boolean isUseEclipseLinkMoxyProvider()


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.