Uses of Class
jakarta.xml.bind.JAXBException
Packages that use JAXBException
Package
Description
Provides a runtime binding framework for client applications including
unmarshalling, marshalling, and validation capabilities.
Jakarta XML Binding Provider Use Only: Provides partial default implementations for
some of the
jakarta.xml.bind interfaces.Useful client utility classes.
-
Uses of JAXBException in jakarta.xml.bind
Subclasses of JAXBException in jakarta.xml.bindModifier and TypeClassDescriptionclassThis exception indicates that an error has occurred while performing a marshal operation that the provider is unable to recover from.classThis exception indicates that an error was encountered while getting or setting a property.classThis exception indicates that an error has occurred while performing an unmarshal operation that prevents the Jakarta XML Binding Provider from completing the operation.classThis exception indicates that an error has occurred while performing a validate operation.Fields in jakarta.xml.bind with type parameters of type JAXBExceptionModifier and TypeFieldDescriptionprivate static ServiceLoaderUtil.ExceptionHandler<JAXBException> ContextFinder.EXCEPTION_HANDLERMethods in jakarta.xml.bind that return JAXBExceptionModifier and TypeMethodDescriptionprivate static JAXBExceptionContextFinder.handleClassCastException(Class<?> originalType, Class<?> targetType) Determine if two types (JAXBContext in this case) will generate a ClassCastException.Methods in jakarta.xml.bind that throw JAXBExceptionModifier and TypeMethodDescriptionprivate static StringContextFinder.classNameFromSystemProperties()JAXBContextFactory.createContext(Class<?>[] classesToBeBound, Map<String, ?> properties) Create a new instance of aJAXBContextclass.JAXBContextFactory.createContext(String contextPath, ClassLoader classLoader, Map<String, ?> properties) Create a new instance of aJAXBContextclass.abstract MarshallerJAXBContext.createMarshaller()Create aMarshallerobject that can be used to convert a java content tree into XML data.abstract UnmarshallerJAXBContext.createUnmarshaller()Create anUnmarshallerobject that can be used to convert XML data into a java content tree.static voidModuleUtil.delegateAddOpensToImplModule(Class<?>[] classes, Class<?> factorySPI) Implementation may be defined in other module thanjakarta.xml.bind.(package private) static JAXBContext(package private) static JAXBContextContextFinder.find(String factoryId, String contextPath, ClassLoader classLoader, Map<String, ?> properties) (package private) static Class<?> ModuleUtil.findFirstByJaxbIndex(String pkg, ClassLoader classLoader) Find first class in package byjaxb.indexfile.(package private) static Class<?>[]ModuleUtil.getClassesFromContextPath(String contextPath, ClassLoader classLoader) Resolves classes from context path.private static <T> JAXBContextJAXB.getContext(Class<T> type) Obtains theJAXBContextfrom the given type, by using the cache if possible.abstract ValidationEventHandlerBinder.getEventHandler()Return the current event handler or the default event handler if one hasn't been set.Marshaller.getEventHandler()Return the current event handler or the default event handler if one hasn't been set.Unmarshaller.getEventHandler()Return the current event handler or the default event handler if one hasn't been set.Get a DOM tree view of the content tree(Optional).UnmarshallerHandler.getResult()Obtains the unmarshalled result.private static ThrowableContextFinder.handleInvocationTargetException(InvocationTargetException x) If theInvocationTargetExceptionwraps an exception that shouldn't be wrapped, throw the wrapped exception.private static ObjectContextFinder.instantiateProviderIfNecessary(Class<?> implClass) abstract voidMarshal a Jakarta XML Binding object tree to a new XML document.voidMarshal the content tree rooted atjaxbElementinto a file.voidMarshaller.marshal(Object jaxbElement, OutputStream os) Marshal the content tree rooted atjaxbElementinto an output stream.voidMarshal the content tree rooted atjaxbElementinto a Writer.voidMarshaller.marshal(Object jaxbElement, XMLEventWriter writer) Marshal the content tree rooted atjaxbElementinto aXMLEventWriter.voidMarshaller.marshal(Object jaxbElement, XMLStreamWriter writer) Marshal the content tree rooted atjaxbElementinto aXMLStreamWriter.voidMarshal the content tree rooted atjaxbElementinto the specifiedjavax.xml.transform.Result.voidMarshal the content tree rooted atjaxbElementinto a DOM tree.voidMarshaller.marshal(Object jaxbElement, ContentHandler handler) Marshal the content tree rooted atjaxbElementinto SAX2 events.(package private) static JAXBContextContextFinder.newInstance(Class<?>[] classes, Map<String, ?> properties, Class<?> spFactory) private static JAXBContextContextFinder.newInstance(Class<?>[] classes, Map<String, ?> properties, String className) Create an instance of a class using the thread context ClassLoaderprivate static JAXBContextContextFinder.newInstance(Class<?>[] classes, Map<String, ?> properties, String className, ClassLoader loader) Create an instance of a class using passed in ClassLoader(package private) static JAXBContextContextFinder.newInstance(String contextPath, Class<?>[] contextPathClasses, Class<?> spFactory, ClassLoader classLoader, Map<String, ?> properties) (package private) static JAXBContextContextFinder.newInstance(String contextPath, Class<?>[] contextPathClasses, String className, ClassLoader classLoader, Map<String, ?> properties) Create an instance of a class using the specified ClassLoaderstatic JAXBContextJAXBContext.newInstance(Class<?>... classesToBeBound) Create a new instance of aJAXBContextclass.static JAXBContextJAXBContext.newInstance(Class<?>[] classesToBeBound, Map<String, ?> properties) Create a new instance of aJAXBContextclass.static JAXBContextJAXBContext.newInstance(String contextPath) Create a new instance of aJAXBContextclass.static JAXBContextJAXBContext.newInstance(String contextPath, ClassLoader classLoader) Create a new instance of aJAXBContextclass.static JAXBContextJAXBContext.newInstance(String contextPath, ClassLoader classLoader, Map<String, ?> properties) Create a new instance of aJAXBContextclass.abstract voidBinder.setEventHandler(ValidationEventHandler handler) Allow an application to register aValidationEventHandler.voidMarshaller.setEventHandler(ValidationEventHandler handler) Allow an application to register a validation event handler.voidUnmarshaller.setEventHandler(ValidationEventHandler handler) Allow an application to register aValidationEventHandler.abstract ObjectUnmarshal XML infoset view to a Jakarta XML Binding object tree.abstract <T> JAXBElement<T> Unmarshal XML root element by provideddeclaredTypeto a Jakarta XML Binding object tree.Unmarshal XML data from the specified file and return the resulting content tree.Unmarshaller.unmarshal(InputStream is) Unmarshal XML data from the specified InputStream and return the resulting content tree.Unmarshal XML data from the specified Reader and return the resulting content tree.Unmarshal XML data from the specified URL and return the resulting content tree.Unmarshaller.unmarshal(XMLEventReader reader) Unmarshal XML data from the specified pull parser and return the resulting content tree.<T> JAXBElement<T> Unmarshaller.unmarshal(XMLEventReader reader, Class<T> declaredType) Unmarshal root element to Jakarta XML Binding mappeddeclaredTypeand return the resulting content tree.Unmarshaller.unmarshal(XMLStreamReader reader) Unmarshal XML data from the specified pull parser and return the resulting content tree.<T> JAXBElement<T> Unmarshaller.unmarshal(XMLStreamReader reader, Class<T> declaredType) Unmarshal root element to Jakarta XML Binding mappeddeclaredTypeand return the resulting content tree.Unmarshal XML data from the specified XML Source and return the resulting content tree.<T> JAXBElement<T> Unmarshal XML data from the specified XML Source bydeclaredTypeand return the resulting content tree.Unmarshal global XML data from the specified DOM tree and return the resulting content tree.<T> JAXBElement<T> Unmarshal XML data by Jakarta XML Binding mappeddeclaredTypeand return the resulting content tree.Unmarshaller.unmarshal(InputSource source) Unmarshal XML data from the specified SAX InputSource and return the resulting content tree.abstract ObjectBinder.updateJAXB(XmlNode xmlNode) Takes an XML node and updates its associated Jakarta XML Binding object and its descendants.abstract XmlNodeTakes a Jakarta XML Binding object and updates its associated XML node and its descendants.abstract XmlNodeChanges in Jakarta XML Binding object tree are updated in its associated XML parse tree.Constructors in jakarta.xml.bind that throw JAXBException -
Uses of JAXBException in jakarta.xml.bind.helpers
Methods in jakarta.xml.bind.helpers that throw JAXBExceptionModifier and TypeMethodDescriptionAbstractMarshallerImpl.getEventHandler()AbstractUnmarshallerImpl.getEventHandler()Return the current event handler or the default event handler if one hasn't been set.By default, the getNode method is unsupported and throw anUnsupportedOperationException.protected XMLReaderAbstractUnmarshallerImpl.getXMLReader()Obtains a configured XMLReader.voidfinal voidAbstractMarshallerImpl.marshal(Object obj, OutputStream os) final voidvoidAbstractMarshallerImpl.marshal(Object obj, XMLEventWriter writer) voidAbstractMarshallerImpl.marshal(Object obj, XMLStreamWriter writer) final voidfinal voidAbstractMarshallerImpl.marshal(Object obj, ContentHandler handler) voidAbstractMarshallerImpl.setEventHandler(ValidationEventHandler handler) voidAbstractUnmarshallerImpl.setEventHandler(ValidationEventHandler handler) Allow an application to register a validation event handler.final Objectfinal ObjectAbstractUnmarshallerImpl.unmarshal(InputStream is) final Objectprivate Objectfinal ObjectAbstractUnmarshallerImpl.unmarshal(XMLEventReader reader) <T> JAXBElement<T> AbstractUnmarshallerImpl.unmarshal(XMLEventReader reader, Class<T> expectedType) AbstractUnmarshallerImpl.unmarshal(XMLStreamReader reader) <T> JAXBElement<T> AbstractUnmarshallerImpl.unmarshal(XMLStreamReader reader, Class<T> expectedType) private Object<T> JAXBElement<T> <T> JAXBElement<T> final ObjectAbstractUnmarshallerImpl.unmarshal(InputSource source) protected abstract ObjectAbstractUnmarshallerImpl.unmarshal(XMLReader reader, InputSource source) Unmarshalls an object by using the specified XMLReader and the InputSource. -
Uses of JAXBException in jakarta.xml.bind.util
Methods in jakarta.xml.bind.util that throw JAXBExceptionModifier and TypeMethodDescriptionprivate static UnmarshallerJAXBResult.assertionFailed()Hook to throw exception from the middle of a constructor chained call to thisprivate static MarshallerJAXBSource.assertionFailed(String message) Hook to throw exception from the middle of a constructor chained call to thisJAXBResult.getResult()Gets the unmarshalled object created by the transformation.Constructors in jakarta.xml.bind.util that throw JAXBExceptionModifierConstructorDescriptionJAXBResult(JAXBContext context) Creates a new instance that uses the specified JAXBContext to unmarshal.JAXBResult(Unmarshaller _unmarshaller) Creates a new instance that uses the specified Unmarshaller to unmarshal an object.JAXBSource(JAXBContext context, Object contentObject) Creates a newSourcefor the given content object.JAXBSource(Marshaller marshaller, Object contentObject) Creates a newSourcefor the given content object.