public class JAXBXmlService extends Object implements XmlService
| Modifier and Type | Class and Description |
|---|---|
static class |
JAXBXmlService.Builder |
| Modifier and Type | Method and Description |
|---|---|
static JAXBXmlService.Builder |
builder() |
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) |
public void write(File file, Object object)
write in interface XmlServicepublic void write(OutputStream out, Object object)
write in interface XmlServicepublic <T> T getObjectFromXml(String xml, String encoding, Class<T> type)
getObjectFromXml in interface XmlServicepublic <T> T getObject(InputStream in, Class<T> type)
getObject in interface XmlServicepublic <T> T getObject(File file, Class<T> type)
getObject in interface XmlServicepublic <T> T getObject(String location, Class<T> type)
getObject in interface XmlServicepublic String toXml(Object object, String encoding)
toXml in interface XmlService@Deprecated public String toString(Object object, String encoding)
toString in interface XmlServiceprotected Unmarshaller getUnmarshaller(Class<?> clazz) throws JAXBException
JAXBExceptionprotected JAXBContext getJAXBContext(Class<?> clazz) throws JAXBException
JAXBExceptionprotected Class<?>[] getClassesToBeBound(Class<?> clazz)
protected List<Class<?>> getClassesList(Class<?> clazz)
public boolean isFormatOutput()
public boolean isUseNamespaceAwareParser()
public static JAXBXmlService.Builder builder()
public Map<String,?> getProperties()
public boolean isUseEclipseLinkMoxyProvider()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.