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)
public void init()
public static MarshallService getApplicationMarshallService() throws JAXBException
JAXBException
public 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
JAXBException
public <T> String marshallNonRoot(Object data) throws JAXBException
JAXBException
public <T,E extends T> String marshallNonRoot(E data, Class<T> clazz) throws JAXBException
JAXBException
public <T> void marshallNonRoot(T data, OutputStream out) throws JAXBException
JAXBException
public <T> T unmarshall(Source source, Class<T> clazz) throws JAXBException
JAXBException
public <T> T unmarshall(File f, Class<T> clazz) throws JAXBException
JAXBException
public <T> T unmarshall(InputStream is, Class<T> clazz) throws JAXBException
JAXBException
public <T> T unmarshall(String data, Class<T> clazz) throws JAXBException
JAXBException
public Object unmarshall(File f) throws JAXBException
JAXBException
public Object unmarshall(InputStream is) throws JAXBException
JAXBException
public Object unmarshall(String data) throws JAXBException
JAXBException
public Object unmarshall(InputSource inputSource) throws JAXBException
JAXBException
public static MarshallService getMarshallService() throws JAXBException
JAXBException
public 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–2017 aiticon GmbH. All rights reserved.