Uses of Class
javax.xml.bind.JAXBException
-
Packages that use JAXBException Package Description com.sun.xml.bind com.sun.xml.bind.api Runtime API for the JAX-WS RIcom.sun.xml.bind.v2 The JAXB 2.0 runtimecom.sun.xml.bind.v2.model.core The in-memory model of the JAXB-bound beans.com.sun.xml.bind.v2.runtime Code that implements JAXBContext, Unmarshaller, and Marshaller.com.sun.xml.bind.v2.runtime.reflect Abstraction around accessing data of actual objects.com.sun.xml.bind.v2.runtime.unmarshaller javax.xml.bind Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.javax.xml.bind.helpers Jakarta XML Binding Provider Use Only: Provides partial default implementations for some of thejavax.xml.bindinterfaces.javax.xml.bind.util Useful client utility classes. -
-
Uses of JAXBException in com.sun.xml.bind
Methods in com.sun.xml.bind that throw JAXBException Modifier and Type Method Description AccessorAccessorFactory. createFieldAccessor(Class bean, Field f, boolean readOnly)Access a field of the class.AccessorInternalAccessorFactory. createFieldAccessor(Class bean, Field f, boolean readOnly, boolean supressWarnings)Access a field of the class.AccessorAccessorFactory. createPropertyAccessor(Class bean, Method getter, Method setter)Access a property of the class. -
Uses of JAXBException in com.sun.xml.bind.api
Methods in com.sun.xml.bind.api that throw JAXBException Modifier and Type Method Description abstract QNameJAXBRIContext. getElementName(Class o)Allows to retrieve the element name based on Class.abstract QNameJAXBRIContext. getElementName(Object o)If the given object is bound to an element in XML by JAXB, returns the element name.abstract <B,V>
RawAccessor<B,V>JAXBRIContext. getElementPropertyAccessor(Class<B> wrapperBean, String nsUri, String localName)Gets aRawAccessorfor the specified element property of the specified wrapper bean class.voidBridge. marshal(BridgeContext context, T object, OutputStream output, NamespaceContext nsContext)voidBridge. marshal(BridgeContext context, T object, XMLStreamWriter output)voidBridge. marshal(BridgeContext context, T object, Result result)voidBridge. marshal(BridgeContext context, T object, Node output)voidBridge. marshal(BridgeContext context, T object, ContentHandler contentHandler)abstract voidBridge. marshal(Marshaller m, T object, OutputStream output, NamespaceContext nsContext)abstract voidBridge. marshal(Marshaller m, T object, XMLStreamWriter output)abstract voidBridge. marshal(Marshaller m, T object, Result result)abstract voidBridge. marshal(Marshaller m, T object, Node output)abstract voidBridge. marshal(Marshaller m, T object, ContentHandler contentHandler)voidBridge. marshal(T object, OutputStream output, NamespaceContext nsContext)Marshals the specified type object with the implicit element name associated with this instance ofBridge.voidBridge. marshal(T object, OutputStream output, NamespaceContext nsContext, AttachmentMarshaller am)voidBridge. marshal(T object, XMLStreamWriter output)voidBridge. marshal(T object, XMLStreamWriter output, AttachmentMarshaller am)voidBridge. marshal(T object, Result result)voidBridge. marshal(T object, Node output)voidBridge. marshal(T object, ContentHandler contentHandler)voidBridge. marshal(T object, ContentHandler contentHandler, AttachmentMarshaller am)static JAXBRIContextJAXBRIContext. newInstance(Class[] classes, Collection<TypeReference> typeRefs, String defaultNamespaceRemap, boolean c14nSupport)Deprecated.Compatibility with older versions.static JAXBRIContextJAXBRIContext. newInstance(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNamespaceRemap, boolean c14nSupport, RuntimeAnnotationReader ar)Creates a newJAXBRIContext.static JAXBRIContextJAXBRIContext. newInstance(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNamespaceRemap, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean supressAccessorWarnings)Creates a newJAXBRIContext.TBridge. unmarshal(BridgeContext context, InputStream in)TBridge. unmarshal(BridgeContext context, XMLStreamReader in)TBridge. unmarshal(BridgeContext context, Source in)TBridge. unmarshal(BridgeContext context, Node n)TBridge. unmarshal(InputStream in)Unmarshals the specified type object.abstract TBridge. unmarshal(Unmarshaller u, InputStream in)abstract TBridge. unmarshal(Unmarshaller u, XMLStreamReader in)abstract TBridge. unmarshal(Unmarshaller u, Source in)abstract TBridge. unmarshal(Unmarshaller context, Node n)TBridge. unmarshal(XMLStreamReader in)Unmarshals the specified type object.TBridge. unmarshal(XMLStreamReader in, AttachmentUnmarshaller au)TBridge. unmarshal(Source in)Unmarshals the specified type object.TBridge. unmarshal(Source in, AttachmentUnmarshaller au)TBridge. unmarshal(Node n)Unmarshals the specified type object.TBridge. unmarshal(Node n, AttachmentUnmarshaller au) -
Uses of JAXBException in com.sun.xml.bind.v2
Methods in com.sun.xml.bind.v2 that throw JAXBException Modifier and Type Method Description static JAXBRIContextContextFactory. createContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo)Deprecated.usecreateContext(Class[] classes, Map<String,Object> properties)method insteadstatic JAXBRIContextContextFactory. createContext(Class[] classes, Collection<TypeReference> typeRefs, Map<Class,Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean improvedXsiTypeHandling)Deprecated.usecreateContext( Class[] classes, Map<String,Object> properties)method insteadstatic JAXBContextContextFactory. createContext(Class[] classes, Map<String,Object> properties)The API will invoke this method via reflectionstatic JAXBContextContextFactory. createContext(String contextPath, ClassLoader classLoader, Map<String,Object> properties)The API will invoke this method via reflection.JAXBContextJAXBContextFactory. createContext(Class<?>[] classesToBeBound, Map<String,?> properties)Creates JAXB context.JAXBContextJAXBContextFactory. createContext(String contextPath, ClassLoader classLoader, Map<String,?> properties)Creates JAXB context. -
Uses of JAXBException in com.sun.xml.bind.v2.model.core
Methods in com.sun.xml.bind.v2.model.core that throw JAXBException Modifier and Type Method Description voidTypeInfoSet. dump(Result out)Dumps this model into XML. -
Uses of JAXBException in com.sun.xml.bind.v2.runtime
Subclasses of JAXBException in com.sun.xml.bind.v2.runtime Modifier and Type Class Description classIllegalAnnotationExceptionSignals an incorrect use of JAXB annotations.classIllegalAnnotationsExceptionA list ofIllegalAnnotationExceptionwrapped in one exception.Methods in com.sun.xml.bind.v2.runtime that throw JAXBException Modifier and Type Method Description JAXBContextImplJAXBContextImpl.JAXBContextBuilder. build()voidXMLSerializer. childAsRoot(Object obj)JAXBContextImplJAXBContextImpl. createAugmented(Class<?> clazz)Creates aJAXBContextImplthat includes the specified additional classes.XmlOutputMarshallerImpl. createWriter(OutputStream os)XmlOutputMarshallerImpl. createWriter(OutputStream os, String encoding)<T> JaxBeanInfo<T>JAXBContextImpl. getBeanInfo(Class<T> clazz, boolean fatal)Gets theJaxBeanInfoobject that can handle the given JAXB-bound class.JaxBeanInfoJAXBContextImpl. getBeanInfo(Object o, boolean fatal)Gets theJaxBeanInfoobject that can handle the given JAXB-bound object.QNameJAXBContextImpl. getElementName(Class o)QNameJAXBContextImpl. getElementName(Object o)RawAccessorJAXBContextImpl. getElementPropertyAccessor(Class wrapperBean, String nsUri, String localName)voidBinderImpl. marshal(Object jaxbObject, XmlNode xmlNode)voidMarshallerImpl. marshal(Object obj, XmlOutput output)voidMarshallerImpl. marshal(Object obj, OutputStream out, NamespaceContext inscopeNamespace)Marshals toOutputStreamwith the given in-scope namespaces taken into account.voidMarshallerImpl. marshal(Object obj, XMLEventWriter writer)voidMarshallerImpl. marshal(Object obj, XMLStreamWriter writer)voidMarshallerImpl. marshal(Object target, Result result)voidBinderImpl. setEventHandler(ValidationEventHandler handler)ObjectBinderImpl. unmarshal(XmlNode xmlNode)<T> JAXBElement<T>BinderImpl. unmarshal(XmlNode xmlNode, Class<T> expectedType)ObjectBinderImpl. updateJAXB(XmlNode xmlNode)XmlNodeBinderImpl. updateXML(Object jaxbObject)XmlNodeBinderImpl. updateXML(Object jaxbObject, XmlNode xmlNode)protected <T> voidMarshallerImpl. write(Name rootTagName, JaxBeanInfo<T> bi, T obj, XmlOutput out, Runnable postInitAction)Used byBridgeImplto write an arbitrary object as a fragment. -
Uses of JAXBException in com.sun.xml.bind.v2.runtime.reflect
Methods in com.sun.xml.bind.v2.runtime.reflect that throw JAXBException Modifier and Type Method Description StringLister.IDREFSIterator. next()EListIterator. next()Works likeIterator.next(). -
Uses of JAXBException in com.sun.xml.bind.v2.runtime.unmarshaller
Methods in com.sun.xml.bind.v2.runtime.unmarshaller that throw JAXBException Modifier and Type Method Description <T> JaxBeanInfo<T>UnmarshallerImpl. getBeanInfo(Class<T> clazz)ObjectSAXConnector. getResult()protected XMLReaderUnmarshallerImpl. getXMLReader()Obtains a configured XMLReader.ObjectUnmarshallerImpl. unmarshal(XMLEventReader reader)<T> JAXBElement<T>UnmarshallerImpl. unmarshal(XMLEventReader reader, Class<T> expectedType)ObjectUnmarshallerImpl. unmarshal(XMLStreamReader reader)<T> JAXBElement<T>UnmarshallerImpl. unmarshal(XMLStreamReader reader, Class<T> expectedType)ObjectUnmarshallerImpl. unmarshal(SAXSource source)Deprecated.<T> JAXBElement<T>UnmarshallerImpl. unmarshal(Source source, Class<T> expectedType)ObjectUnmarshallerImpl. unmarshal(Node node)<T> JAXBElement<T>UnmarshallerImpl. unmarshal(Node node, Class<T> expectedType)protected ObjectUnmarshallerImpl. unmarshal(XMLReader reader, InputSource source)protected <T> JAXBElement<T>UnmarshallerImpl. unmarshal(XMLReader reader, InputSource source, Class<T> expectedType)ObjectUnmarshallerImpl. unmarshal0(InputStream input, JaxBeanInfo expectedType)ObjectUnmarshallerImpl. unmarshal0(XMLStreamReader reader, JaxBeanInfo expectedType)ObjectUnmarshallerImpl. unmarshal0(Source source, JaxBeanInfo expectedType)ObjectUnmarshallerImpl. unmarshal0(Node node, JaxBeanInfo expectedType) -
Uses of JAXBException in javax.xml.bind
Subclasses of JAXBException in javax.xml.bind Modifier and Type Class Description classMarshalExceptionThis exception indicates that an error has occurred while performing a marshal operation that the provider is unable to recover from.classPropertyExceptionThis exception indicates that an error was encountered while getting or setting a property.classUnmarshalExceptionThis exception indicates that an error has occurred while performing an unmarshal operation that prevents the JAXB Provider from completing the operation.classValidationExceptionThis exception indicates that an error has occurred while performing a validate operation.Methods in javax.xml.bind that throw JAXBException Modifier and Type Method Description JAXBContextJAXBContextFactory. createContext(Class<?>[] classesToBeBound, Map<String,?> properties)Create a new instance of aJAXBContextclass.JAXBContextJAXBContextFactory. 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.abstract ValidatorJAXBContext. createValidator()Deprecated.since JAXB2.0abstract ValidationEventHandlerBinder. getEventHandler()Return the current event handler or the default event handler if one hasn't been set.ValidationEventHandlerMarshaller. getEventHandler()Return the current event handler or the default event handler if one hasn't been set.ValidationEventHandlerUnmarshaller. getEventHandler()Return the current event handler or the default event handler if one hasn't been set.ValidationEventHandlerValidator. getEventHandler()Deprecated.since JAXB2.0NodeMarshaller. getNode(Object contentTree)Get a DOM tree view of the content tree(Optional).ObjectUnmarshallerHandler. getResult()Obtains the unmarshalled result.booleanUnmarshaller. isValidating()Deprecated.since JAXB2.0, please seeUnmarshaller.getSchema()abstract voidBinder. marshal(Object jaxbObject, XmlNode xmlNode)Marshal a JAXB object tree to a new XML document.voidMarshaller. marshal(Object jaxbElement, File output)Marshal the content tree rooted atjaxbElementinto a file.voidMarshaller. marshal(Object jaxbElement, OutputStream os)Marshal the content tree rooted atjaxbElementinto an output stream.voidMarshaller. marshal(Object jaxbElement, Writer writer)Marshal 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.voidMarshaller. marshal(Object jaxbElement, Result result)Marshal the content tree rooted atjaxbElementinto the specifiedjavax.xml.transform.Result.voidMarshaller. marshal(Object jaxbElement, Node node)Marshal the content tree rooted atjaxbElementinto a DOM tree.voidMarshaller. marshal(Object jaxbElement, ContentHandler handler)Marshal the content tree rooted atjaxbElementinto SAX2 events.static 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.voidValidator. setEventHandler(ValidationEventHandler handler)Deprecated.since JAXB2.0voidUnmarshaller. setValidating(boolean validating)Deprecated.since JAXB2.0, please seeUnmarshaller.setSchema(javax.xml.validation.Schema)abstract ObjectBinder. unmarshal(XmlNode xmlNode)Unmarshal XML infoset view to a JAXB object tree.abstract <T> JAXBElement<T>Binder. unmarshal(XmlNode xmlNode, Class<T> declaredType)Unmarshal XML root element by provideddeclaredTypeto a JAXB object tree.ObjectUnmarshaller. unmarshal(File f)Unmarshal XML data from the specified file and return the resulting content tree.ObjectUnmarshaller. unmarshal(InputStream is)Unmarshal XML data from the specified InputStream and return the resulting content tree.ObjectUnmarshaller. unmarshal(Reader reader)Unmarshal XML data from the specified Reader and return the resulting content tree.ObjectUnmarshaller. unmarshal(URL url)Unmarshal XML data from the specified URL and return the resulting content tree.ObjectUnmarshaller. 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 JAXB mappeddeclaredTypeand return the resulting content tree.ObjectUnmarshaller. 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 JAXB mappeddeclaredTypeand return the resulting content tree.ObjectUnmarshaller. unmarshal(Source source)Unmarshal XML data from the specified XML Source and return the resulting content tree.<T> JAXBElement<T>Unmarshaller. unmarshal(Source source, Class<T> declaredType)Unmarshal XML data from the specified XML Source bydeclaredTypeand return the resulting content tree.ObjectUnmarshaller. unmarshal(Node node)Unmarshal global XML data from the specified DOM tree and return the resulting content tree.<T> JAXBElement<T>Unmarshaller. unmarshal(Node node, Class<T> declaredType)Unmarshal XML data by JAXB mappeddeclaredTypeand return the resulting content tree.ObjectUnmarshaller. 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 JAXB object and its descendants.abstract XmlNodeBinder. updateXML(Object jaxbObject)Takes an JAXB object and updates its associated XML node and its descendants.abstract XmlNodeBinder. updateXML(Object jaxbObject, XmlNode xmlNode)Changes in JAXB object tree are updated in its associated XML parse tree.booleanValidator. validate(Object subrootObj)Deprecated.since JAXB2.0booleanValidator. validateRoot(Object rootObj)Deprecated.since JAXB2.0 -
Uses of JAXBException in javax.xml.bind.helpers
Methods in javax.xml.bind.helpers that throw JAXBException Modifier and Type Method Description ValidationEventHandlerAbstractMarshallerImpl. getEventHandler()ValidationEventHandlerAbstractUnmarshallerImpl. getEventHandler()Return the current event handler or the default event handler if one hasn't been set.NodeAbstractMarshallerImpl. getNode(Object obj)By default, the getNode method is unsupported and throw anUnsupportedOperationException.protected XMLReaderAbstractUnmarshallerImpl. getXMLReader()Obtains a configured XMLReader.booleanAbstractUnmarshallerImpl. isValidating()Indicates whether or not the Unmarshaller is configured to validate during unmarshal operations.voidAbstractMarshallerImpl. marshal(Object jaxbElement, File output)voidAbstractMarshallerImpl. marshal(Object obj, OutputStream os)voidAbstractMarshallerImpl. marshal(Object obj, Writer w)voidAbstractMarshallerImpl. marshal(Object obj, XMLEventWriter writer)voidAbstractMarshallerImpl. marshal(Object obj, XMLStreamWriter writer)voidAbstractMarshallerImpl. marshal(Object obj, Node node)voidAbstractMarshallerImpl. marshal(Object obj, ContentHandler handler)voidAbstractMarshallerImpl. setEventHandler(ValidationEventHandler handler)voidAbstractUnmarshallerImpl. setEventHandler(ValidationEventHandler handler)Allow an application to register a validation event handler.voidAbstractUnmarshallerImpl. setValidating(boolean validating)Specifies whether or not the Unmarshaller should validate during unmarshal operations.ObjectAbstractUnmarshallerImpl. unmarshal(File f)ObjectAbstractUnmarshallerImpl. unmarshal(InputStream is)ObjectAbstractUnmarshallerImpl. unmarshal(Reader reader)ObjectAbstractUnmarshallerImpl. unmarshal(URL url)ObjectAbstractUnmarshallerImpl. unmarshal(XMLEventReader reader)<T> JAXBElement<T>AbstractUnmarshallerImpl. unmarshal(XMLEventReader reader, Class<T> expectedType)ObjectAbstractUnmarshallerImpl. unmarshal(XMLStreamReader reader)<T> JAXBElement<T>AbstractUnmarshallerImpl. unmarshal(XMLStreamReader reader, Class<T> expectedType)ObjectAbstractUnmarshallerImpl. unmarshal(Source source)<T> JAXBElement<T>AbstractUnmarshallerImpl. unmarshal(Source source, Class<T> expectedType)<T> JAXBElement<T>AbstractUnmarshallerImpl. unmarshal(Node node, Class<T> expectedType)ObjectAbstractUnmarshallerImpl. unmarshal(InputSource source)protected abstract ObjectAbstractUnmarshallerImpl. unmarshal(XMLReader reader, InputSource source)Unmarshals an object by using the specified XMLReader and the InputSource. -
Uses of JAXBException in javax.xml.bind.util
Methods in javax.xml.bind.util that throw JAXBException Modifier and Type Method Description ObjectJAXBResult. getResult()Gets the unmarshalled object created by the transformation.Constructors in javax.xml.bind.util that throw JAXBException Constructor Description JAXBResult(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.
-