public class JaxbManager extends Object implements ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected static String |
META_INF_PRTG |
| Constructor and Description |
|---|
JaxbManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
<T> T |
fromXML(File file,
Class<T> clazz) |
String |
getBasePath() |
protected DocumentBuilder |
getDocumentBuilder(Schema schema) |
JAXBContext |
getJAXBContext() |
List<Class<?>> |
getKnownClasses() |
InputStream |
getResourceAsStream(String name) |
List<String> |
getSchemaNames() |
Map<String,Source> |
getSchemaSources() |
Map<String,Source> |
getSchemaSourcesFromResource(List<String> schemaNames) |
Prtg |
toPrtg(File file) |
String |
toXML(Object object) |
void |
warning(SAXParseException exception) |
protected static final String META_INF_PRTG
public InputStream getResourceAsStream(String name)
public Map<String,Source> getSchemaSourcesFromResource(List<String> schemaNames) throws SAXException
SAXExceptionpublic Map<String,Source> getSchemaSources() throws SAXException
SAXExceptionpublic JAXBContext getJAXBContext() throws JAXBException
JAXBExceptionpublic String getBasePath()
protected DocumentBuilder getDocumentBuilder(Schema schema) throws SAXException
SAXExceptionpublic <T> T fromXML(File file, Class<T> clazz) throws JAXBException
JAXBExceptionpublic Prtg toPrtg(File file) throws JAXBException
JAXBExceptionpublic String toXML(Object object) throws JAXBException
JAXBExceptionpublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionCopyright © 2016. All rights reserved.