public class MarshallService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MarshallService.AppNGSchema |
| Modifier and Type | Field and Description |
|---|---|
static String |
NS_APPLICATION
the namespace for a application-info.xml file
|
static String |
NS_PLATFORM
The namespace for appNG application XML-resources
|
| Constructor and Description |
|---|
MarshallService() |
public static final String NS_PLATFORM
public static final String NS_APPLICATION
public MarshallService.AppNGSchema getSchema()
public void setSchema(MarshallService.AppNGSchema schema)
public boolean isUseSchema()
public void setUseSchema(boolean useSchema)
public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)
protected Marshaller getMarshaller() throws JAXBException
JAXBExceptionprotected Unmarshaller getUnmarshaller() throws JAXBException
JAXBExceptionpublic void init()
public static MarshallService getApplicationMarshallService() throws JAXBException
JAXBExceptionpublic void marshal(Object data, OutputStream out) throws ParserConfigurationException, JAXBException, TransformerException
public String marshal(Object data) throws ParserConfigurationException, JAXBException, TransformerException
public void marshalNoValidation(Object data, Writer writer) throws JAXBException
JAXBExceptionpublic <T> String marshallNonRoot(Object data) throws JAXBException
JAXBExceptionpublic <T,E extends T> String marshallNonRoot(E data, Class<T> clazz) throws JAXBException
JAXBExceptionpublic <T> void marshallNonRoot(T data,
OutputStream out)
throws JAXBException
JAXBExceptionpublic <T> T unmarshall(Source source, Class<T> clazz) throws JAXBException
JAXBExceptionpublic <T> T unmarshall(File f, Class<T> clazz) throws JAXBException
JAXBExceptionpublic <T> T unmarshall(InputStream is, Class<T> clazz) throws JAXBException
JAXBExceptionpublic <T> T unmarshall(String data, Class<T> clazz) throws JAXBException
JAXBExceptionpublic Object unmarshall(File f) throws JAXBException
JAXBExceptionpublic Object unmarshall(InputStream is) throws JAXBException
JAXBExceptionpublic Object unmarshall(String data) throws JAXBException
JAXBExceptionpublic Object unmarshall(InputSource inputSource) throws JAXBException
JAXBExceptionpublic static MarshallService getMarshallService() throws JAXBException
JAXBExceptionpublic String getSchemaLocation()
public void setSchemaLocation(String schemaLocation)
public DocumentBuilderFactory getDocumentBuilderFactory()
public void setDocumentBuilderFactory(DocumentBuilderFactory documentBuilderFactory)
public TransformerFactory getTransformerFactory()
public void setTransformerFactory(TransformerFactory transformerFactory)
public boolean isThrowMarshallingError()
public void setThrowMarshallingError(boolean throwMarshallingError)
public boolean isThrowUnmarshallingError()
public void setThrowUnmarshallingError(boolean throwUnmarshallingError)
Copyright © 2011–2021 aiticon GmbH. All rights reserved.