public class RuntimeContext extends Object
| Constructor and Description |
|---|
RuntimeContext() |
RuntimeContext(ExtendedMarshaller marshaller) |
RuntimeContext(ExtendedUnmarshaller unmarshaller) |
| Modifier and Type | Method and Description |
|---|---|
void |
addXmlId(XoXMLStreamReader reader,
String id,
Object value) |
void |
afterMarshal(Object bean,
LifecycleCallback lifecycleCallback) |
void |
afterUnmarshal(Object bean,
LifecycleCallback lifecycleCallback) |
void |
beforeMarshal(Object bean,
LifecycleCallback lifecycleCallback) |
void |
beforeUnmarshal(Object bean,
LifecycleCallback lifecycleCallback) |
void |
fieldGetError(Object bean,
String propertyName,
Class beanType,
String fieldName,
Exception e) |
void |
fieldGetError(XoXMLStreamReader reader,
Class beanType,
String fieldName,
Exception e) |
void |
fieldSetError(XoXMLStreamReader reader,
Class beanType,
String fieldName,
Exception e) |
Object |
getProperty(String name) |
void |
getterError(Object bean,
String propertyName,
Class beanType,
String getterName,
Exception e) |
void |
getterError(XoXMLStreamReader reader,
Class beanType,
String getterName,
Exception e) |
<T> T |
readXmlAny(XoXMLStreamReader reader,
Class<T> expectedJavaType,
boolean lax) |
void |
resolveXmlIdRef(XoXMLStreamReader reader,
String id,
IdRefTarget target) |
void |
resolveXmlIdRefs() |
Object |
setProperty(String name,
Object value) |
void |
setterError(XoXMLStreamReader reader,
Class beanType,
String setterName,
Class propertyType,
Exception e) |
void |
uncreatableCollection(XoXMLStreamReader reader,
Class beanType,
String propertyName,
Class collectionType) |
void |
unexpectedAttribute(Attribute attribute,
QName... expectedAttributes) |
void |
unexpectedElement(XoXMLStreamReader reader,
QName... expectedElements) |
void |
unexpectedElementRef(XoXMLStreamWriter writer,
Object bean,
String propertyName,
Object propertyValue,
Class... expectedTypes) |
void |
unexpectedElementType(XoXMLStreamWriter writer,
Object bean,
String propertyName,
Object propertyValue,
Class... expectedTypes) |
<T> void |
unexpectedEnumConst(Object bean,
String propertyName,
T value,
T... expectedValues) |
void |
unexpectedEnumValue(XoXMLStreamReader reader,
Class enumType,
String value,
String... expectedValues) |
void |
unexpectedNullValue(Object bean,
String propertyName) |
void |
unexpectedSubclass(XoXMLStreamWriter writer,
Object bean,
Class baseClass,
Class... expectedSubclasses) |
<T> T |
unexpectedXsiType(XoXMLStreamReader reader,
Class<T> expectedJavaType) |
void |
writeXmlAny(XoXMLStreamWriter writer,
Object bean,
String propertyName,
Object propertyValue) |
void |
xmlAdapterError(Object bean,
String propertyName,
Class adapterClass,
Class sourceType,
Class destinationType,
Exception e) |
void |
xmlAdapterError(XoXMLStreamReader reader,
Class adapterClass,
Class sourceType,
Class destinationType,
Exception e) |
public RuntimeContext()
public RuntimeContext(ExtendedUnmarshaller unmarshaller)
public RuntimeContext(ExtendedMarshaller marshaller)
public void addXmlId(XoXMLStreamReader reader, String id, Object value) throws JAXBException
JAXBExceptionpublic void resolveXmlIdRef(XoXMLStreamReader reader, String id, IdRefTarget target) throws JAXBException
JAXBExceptionpublic void resolveXmlIdRefs()
throws JAXBException
JAXBExceptionpublic void beforeUnmarshal(Object bean, LifecycleCallback lifecycleCallback) throws Exception
Exceptionpublic void afterUnmarshal(Object bean, LifecycleCallback lifecycleCallback) throws Exception
Exceptionpublic void beforeMarshal(Object bean, LifecycleCallback lifecycleCallback) throws Exception
Exceptionpublic void afterMarshal(Object bean, LifecycleCallback lifecycleCallback) throws Exception
Exceptionpublic void unexpectedAttribute(Attribute attribute, QName... expectedAttributes) throws JAXBException
JAXBExceptionpublic void unexpectedElement(XoXMLStreamReader reader, QName... expectedElements) throws JAXBException
JAXBExceptionpublic <T> T unexpectedXsiType(XoXMLStreamReader reader, Class<T> expectedJavaType) throws JAXBException
JAXBExceptionpublic void unexpectedSubclass(XoXMLStreamWriter writer, Object bean, Class baseClass, Class... expectedSubclasses) throws JAXBException
JAXBExceptionpublic <T> T readXmlAny(XoXMLStreamReader reader, Class<T> expectedJavaType, boolean lax) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic void unexpectedNullValue(Object bean, String propertyName) throws JAXBException
JAXBExceptionpublic void unexpectedElementType(XoXMLStreamWriter writer, Object bean, String propertyName, Object propertyValue, Class... expectedTypes) throws JAXBException
JAXBExceptionpublic void unexpectedElementRef(XoXMLStreamWriter writer, Object bean, String propertyName, Object propertyValue, Class... expectedTypes) throws JAXBException
JAXBExceptionpublic void writeXmlAny(XoXMLStreamWriter writer, Object bean, String propertyName, Object propertyValue) throws JAXBException, XMLStreamException
JAXBExceptionXMLStreamExceptionpublic void unexpectedEnumValue(XoXMLStreamReader reader, Class enumType, String value, String... expectedValues) throws JAXBException
JAXBExceptionpublic <T> void unexpectedEnumConst(Object bean, String propertyName, T value, T... expectedValues) throws JAXBException
JAXBExceptionpublic void xmlAdapterError(XoXMLStreamReader reader, Class adapterClass, Class sourceType, Class destinationType, Exception e) throws JAXBException
JAXBExceptionpublic void xmlAdapterError(Object bean, String propertyName, Class adapterClass, Class sourceType, Class destinationType, Exception e) throws JAXBException
JAXBExceptionpublic void uncreatableCollection(XoXMLStreamReader reader, Class beanType, String propertyName, Class collectionType) throws JAXBException
JAXBExceptionpublic void fieldGetError(XoXMLStreamReader reader, Class beanType, String fieldName, Exception e) throws JAXBException
JAXBExceptionpublic void fieldGetError(Object bean, String propertyName, Class beanType, String fieldName, Exception e) throws JAXBException
JAXBExceptionpublic void fieldSetError(XoXMLStreamReader reader, Class beanType, String fieldName, Exception e) throws JAXBException
JAXBExceptionpublic void getterError(XoXMLStreamReader reader, Class beanType, String getterName, Exception e) throws JAXBException
JAXBExceptionpublic void getterError(Object bean, String propertyName, Class beanType, String getterName, Exception e) throws JAXBException
JAXBExceptionpublic void setterError(XoXMLStreamReader reader, Class beanType, String setterName, Class propertyType, Exception e) throws JAXBException
JAXBExceptionCopyright © 2007–2021. All rights reserved.