public abstract class JAXBObject<T> extends JAXBClass<T>
| Modifier and Type | Field and Description |
|---|---|
protected QName |
xmlRootElement |
protected QName |
xmlType |
dependencies, type| Modifier | Constructor and Description |
|---|---|
protected |
JAXBObject(Class<T> type,
QName xmlRootElement,
QName xmlType,
Class<? extends JAXBClass>... dependencies) |
| Modifier and Type | Method and Description |
|---|---|
QName |
getXmlRootElement() |
QName |
getXmlType() |
T |
read(InputStream is) |
T |
read(InputStream is,
RuntimeContext context) |
T |
read(XMLStreamReader reader) |
T |
read(XMLStreamReader reader,
RuntimeContext context) |
abstract T |
read(XoXMLStreamReader reader,
RuntimeContext context) |
void |
write(OutputStream is,
T o) |
void |
write(OutputStream is,
T o,
RuntimeContext context) |
void |
write(XMLStreamWriter writer,
T o) |
void |
write(XMLStreamWriter writer,
T o,
RuntimeContext context) |
void |
write(XoXMLStreamWriter writer,
T o) |
abstract void |
write(XoXMLStreamWriter writer,
T o,
RuntimeContext context) |
getDependencies, getTypepublic QName getXmlRootElement()
public QName getXmlType()
public T read(InputStream is) throws Exception
Exceptionpublic T read(InputStream is, RuntimeContext context) throws Exception
Exceptionpublic T read(XMLStreamReader reader) throws Exception
Exceptionpublic T read(XMLStreamReader reader, RuntimeContext context) throws Exception
Exceptionpublic abstract T read(XoXMLStreamReader reader, RuntimeContext context) throws Exception
Exceptionpublic void write(OutputStream is, T o) throws Exception
Exceptionpublic void write(OutputStream is, T o, RuntimeContext context) throws Exception
Exceptionpublic void write(XMLStreamWriter writer, T o) throws Exception
Exceptionpublic void write(XMLStreamWriter writer, T o, RuntimeContext context) throws Exception
Exceptionpublic void write(XoXMLStreamWriter writer, T o) throws Exception
Exceptionpublic abstract void write(XoXMLStreamWriter writer, T o, RuntimeContext context) throws Exception
ExceptionCopyright © 2007–2021. All rights reserved.