类的使用
org.springframework.oxm.XmlMappingException
使用XmlMappingException的程序包 程序包 说明 org.springframework.jms.support.converter Provides a MessageConverter abstraction to convert between Java objects and JMS messages.org.springframework.oxm Root package for Spring's O/X Mapping integration classes.org.springframework.oxm.jaxb Package providing integration of JAXB with Spring's O/X Mapping support.org.springframework.oxm.jibx Package providing integration of JiBX with Spring's O/X Mapping support.org.springframework.oxm.mime Contains (un)marshallers optimized to store binary data in MIME attachments.org.springframework.oxm.support Provides generic support classes for using Spring's O/X Mapping integration within various scenario's.org.springframework.oxm.xstream Package providing integration of XStream with Spring's O/X Mapping support.org.springframework.jms.support.converter中XmlMappingException的使用
抛出XmlMappingException的org.springframework.jms.support.converter中的方法 修饰符和类型 方法 说明 protected BytesMessage
MarshallingMessageConverter. marshalToBytesMessage(Object object, Session session, Marshaller marshaller)
Marshal the given object to aBytesMessage
.protected Message
MarshallingMessageConverter. marshalToMessage(Object object, Session session, Marshaller marshaller, MessageType targetType)
Template method that allows for custom message marshalling.protected TextMessage
MarshallingMessageConverter. marshalToTextMessage(Object object, Session session, Marshaller marshaller)
Marshal the given object to aTextMessage
.protected Object
MarshallingMessageConverter. unmarshalFromBytesMessage(BytesMessage message, Unmarshaller unmarshaller)
Unmarshal the givenBytesMessage
into an object.protected Object
MarshallingMessageConverter. unmarshalFromMessage(Message message, Unmarshaller unmarshaller)
Template method that allows for custom message unmarshalling.protected Object
MarshallingMessageConverter. unmarshalFromTextMessage(TextMessage message, Unmarshaller unmarshaller)
Unmarshal the givenTextMessage
into an object.org.springframework.oxm中XmlMappingException的使用
org.springframework.oxm中XmlMappingException的子类 修饰符和类型 类 说明 class
MarshallingException
Base class for exception thrown when a marshalling or unmarshalling error occurs.class
MarshallingFailureException
Exception thrown on marshalling failure.class
UncategorizedMappingException
Exception that indicates that the cause cannot be distinguished further.class
UnmarshallingFailureException
Exception thrown on unmarshalling failure.class
ValidationFailureException
Exception thrown on marshalling validation failure.抛出XmlMappingException的org.springframework.oxm中的方法 修饰符和类型 方法 说明 void
Marshaller. marshal(Object graph, Result result)
Marshal the object graph with the given root into the providedResult
.Object
Unmarshaller. unmarshal(Source source)
Unmarshal the givenSource
into an object graph.org.springframework.oxm.jaxb中XmlMappingException的使用
返回XmlMappingException的org.springframework.oxm.jaxb中的方法 修饰符和类型 方法 说明 protected XmlMappingException
Jaxb2Marshaller. convertJaxbException(JAXBException ex)
Convert the givenJAXBException
to an appropriate exception from theorg.springframework.oxm
hierarchy.抛出XmlMappingException的org.springframework.oxm.jaxb中的方法 修饰符和类型 方法 说明 void
Jaxb2Marshaller. marshal(Object graph, Result result)
void
Jaxb2Marshaller. marshal(Object graph, Result result, MimeContainer mimeContainer)
Object
Jaxb2Marshaller. unmarshal(Source source)
Object
Jaxb2Marshaller. unmarshal(Source source, MimeContainer mimeContainer)
org.springframework.oxm.jibx中XmlMappingException的使用
返回XmlMappingException的org.springframework.oxm.jibx中的方法 修饰符和类型 方法 说明 XmlMappingException
JibxMarshaller. convertJibxException(org.jibx.runtime.JiBXException ex, boolean marshalling)
已过时。Convert the givenJiBXException
to an appropriate exception from theorg.springframework.oxm
hierarchy.抛出XmlMappingException的org.springframework.oxm.jibx中的方法 修饰符和类型 方法 说明 protected void
JibxMarshaller. marshalDomNode(Object graph, Node node)
已过时。protected void
JibxMarshaller. marshalOutputStream(Object graph, OutputStream outputStream)
已过时。protected void
JibxMarshaller. marshalSaxHandlers(Object graph, ContentHandler contentHandler, LexicalHandler lexicalHandler)
已过时。protected void
JibxMarshaller. marshalWriter(Object graph, Writer writer)
已过时。protected void
JibxMarshaller. marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter)
已过时。protected Object
JibxMarshaller. unmarshalDomNode(Node node)
已过时。protected Object
JibxMarshaller. unmarshalInputStream(InputStream inputStream)
已过时。protected Object
JibxMarshaller. unmarshalReader(Reader reader)
已过时。protected Object
JibxMarshaller. unmarshalSaxReader(XMLReader xmlReader, InputSource inputSource)
已过时。org.springframework.oxm.mime中XmlMappingException的使用
抛出XmlMappingException的org.springframework.oxm.mime中的方法 修饰符和类型 方法 说明 void
MimeMarshaller. marshal(Object graph, Result result, MimeContainer mimeContainer)
Marshals the object graph with the given root into the providedResult
, writing binary data to aMimeContainer
.Object
MimeUnmarshaller. unmarshal(Source source, MimeContainer mimeContainer)
Unmarshals the given providedSource
into an object graph, reading binary attachments from aMimeContainer
.org.springframework.oxm.support中XmlMappingException的使用
抛出XmlMappingException的org.springframework.oxm.support中的方法 修饰符和类型 方法 说明 void
AbstractMarshaller. marshal(Object graph, Result result)
Marshals the object graph with the given root into the providedjavax.xml.transform.Result
.protected abstract void
AbstractMarshaller. marshalDomNode(Object graph, Node node)
Abstract template method for marshalling the given object graph to a DOMNode
.protected void
AbstractMarshaller. marshalDomResult(Object graph, DOMResult domResult)
Template method for handlingDOMResult
s.protected abstract void
AbstractMarshaller. marshalOutputStream(Object graph, OutputStream outputStream)
Abstract template method for marshalling the given object graph to aOutputStream
.protected abstract void
AbstractMarshaller. marshalSaxHandlers(Object graph, ContentHandler contentHandler, LexicalHandler lexicalHandler)
Abstract template method for marshalling the given object graph to a SAXContentHandler
.protected void
AbstractMarshaller. marshalSaxResult(Object graph, SAXResult saxResult)
Template method for handlingSAXResult
s.protected void
AbstractMarshaller. marshalStaxResult(Object graph, Result staxResult)
Template method for handlingStaxResult
s.protected void
AbstractMarshaller. marshalStreamResult(Object graph, StreamResult streamResult)
Template method for handlingStreamResult
s.protected abstract void
AbstractMarshaller. marshalWriter(Object graph, Writer writer)
Abstract template method for marshalling the given object graph to aWriter
.protected abstract void
AbstractMarshaller. marshalXmlEventWriter(Object graph, XMLEventWriter eventWriter)
Abstract template method for marshalling the given object to a StAXXMLEventWriter
.protected abstract void
AbstractMarshaller. marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter)
Abstract template method for marshalling the given object to a StAXXMLStreamWriter
.Object
AbstractMarshaller. unmarshal(Source source)
Unmarshals the given providedjavax.xml.transform.Source
into an object graph.protected abstract Object
AbstractMarshaller. unmarshalDomNode(Node node)
Abstract template method for unmarshalling from a given DOMNode
.protected Object
AbstractMarshaller. unmarshalDomSource(DOMSource domSource)
Template method for handlingDOMSource
s.protected abstract Object
AbstractMarshaller. unmarshalInputStream(InputStream inputStream)
Abstract template method for unmarshalling from a givenInputStream
.protected abstract Object
AbstractMarshaller. unmarshalReader(Reader reader)
Abstract template method for unmarshalling from a givenReader
.protected abstract Object
AbstractMarshaller. unmarshalSaxReader(XMLReader xmlReader, InputSource inputSource)
Abstract template method for unmarshalling using a given SAXXMLReader
andInputSource
.protected Object
AbstractMarshaller. unmarshalSaxSource(SAXSource saxSource)
Template method for handlingSAXSource
s.protected Object
AbstractMarshaller. unmarshalStaxSource(Source staxSource)
Template method for handlingStaxSource
s.protected Object
AbstractMarshaller. unmarshalStreamSource(StreamSource streamSource)
Template method for handlingStreamSource
s.protected abstract Object
AbstractMarshaller. unmarshalXmlEventReader(XMLEventReader eventReader)
Abstract template method for unmarshalling from a given StaxXMLEventReader
.protected abstract Object
AbstractMarshaller. unmarshalXmlStreamReader(XMLStreamReader streamReader)
Abstract template method for unmarshalling from a given StaxXMLStreamReader
.org.springframework.oxm.xstream中XmlMappingException的使用
返回XmlMappingException的org.springframework.oxm.xstream中的方法 修饰符和类型 方法 说明 protected XmlMappingException
XStreamMarshaller. convertXStreamException(Exception ex, boolean marshalling)
Convert the given XStream exception to an appropriate exception from theorg.springframework.oxm
hierarchy.抛出XmlMappingException的org.springframework.oxm.xstream中的方法 修饰符和类型 方法 说明 protected void
XStreamMarshaller. marshalDomNode(Object graph, Node node)
void
XStreamMarshaller. marshalOutputStream(Object graph, OutputStream outputStream)
void
XStreamMarshaller. marshalOutputStream(Object graph, OutputStream outputStream, com.thoughtworks.xstream.converters.DataHolder dataHolder)
protected void
XStreamMarshaller. marshalSaxHandlers(Object graph, ContentHandler contentHandler, LexicalHandler lexicalHandler)
void
XStreamMarshaller. marshalWriter(Object graph, Writer writer)
void
XStreamMarshaller. marshalWriter(Object graph, Writer writer, com.thoughtworks.xstream.converters.DataHolder dataHolder)
protected void
XStreamMarshaller. marshalXmlEventWriter(Object graph, XMLEventWriter eventWriter)
protected void
XStreamMarshaller. marshalXmlStreamWriter(Object graph, XMLStreamWriter streamWriter)
protected Object
XStreamMarshaller. unmarshalDomNode(Node node)
Object
XStreamMarshaller. unmarshalInputStream(InputStream inputStream)
Object
XStreamMarshaller. unmarshalInputStream(InputStream inputStream, com.thoughtworks.xstream.converters.DataHolder dataHolder)
Object
XStreamMarshaller. unmarshalReader(Reader reader)
Object
XStreamMarshaller. unmarshalReader(Reader reader, com.thoughtworks.xstream.converters.DataHolder dataHolder)
protected Object
XStreamMarshaller. unmarshalSaxReader(XMLReader xmlReader, InputSource inputSource)
protected Object
XStreamMarshaller. unmarshalStreamSource(StreamSource streamSource)
protected Object
XStreamMarshaller. unmarshalXmlEventReader(XMLEventReader eventReader)
protected Object
XStreamMarshaller. unmarshalXmlStreamReader(XMLStreamReader streamReader)