org.jboss.resteasy.plugins.providers.jaxb.json
Class JettisonMappedUnmarshaller

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.jaxb.json.JettisonMappedUnmarshaller
All Implemented Interfaces:
javax.xml.bind.Unmarshaller

public class JettisonMappedUnmarshaller
extends java.lang.Object
implements javax.xml.bind.Unmarshaller

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.xml.bind.Unmarshaller
javax.xml.bind.Unmarshaller.Listener
 
Constructor Summary
JettisonMappedUnmarshaller(javax.xml.bind.JAXBContext context, java.util.Map<java.lang.String,java.lang.String> xmlToJSON, java.util.List<java.lang.String> attributeMapping, java.util.List<java.lang.String> ignoredElements)
           
JettisonMappedUnmarshaller(javax.xml.bind.JAXBContext context, org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
           
 
Method Summary
<A extends javax.xml.bind.annotation.adapters.XmlAdapter>
A
getAdapter(java.lang.Class<A> aClass)
           
 javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
           
 javax.xml.bind.ValidationEventHandler getEventHandler()
           
 javax.xml.bind.Unmarshaller.Listener getListener()
           
 java.lang.Object getProperty(java.lang.String s)
           
 javax.xml.validation.Schema getSchema()
           
 javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
           
protected  org.codehaus.jettison.mapped.MappedXMLStreamReader getXmlStreamReader(java.io.Reader reader)
           
 boolean isValidating()
           
<A extends javax.xml.bind.annotation.adapters.XmlAdapter>
void
setAdapter(java.lang.Class<A> aClass, A a)
           
 void setAdapter(javax.xml.bind.annotation.adapters.XmlAdapter xmlAdapter)
           
 void setAttachmentUnmarshaller(javax.xml.bind.attachment.AttachmentUnmarshaller attachmentUnmarshaller)
           
 void setEventHandler(javax.xml.bind.ValidationEventHandler validationEventHandler)
           
 void setListener(javax.xml.bind.Unmarshaller.Listener listener)
           
 void setProperty(java.lang.String s, java.lang.Object o)
           
 void setSchema(javax.xml.validation.Schema schema)
           
 void setValidating(boolean b)
           
 java.lang.Object unmarshal(java.io.File file)
           
 java.lang.Object unmarshal(org.xml.sax.InputSource inputSource)
           
 java.lang.Object unmarshal(java.io.InputStream inputStream)
           
 java.lang.Object unmarshal(org.w3c.dom.Node node)
           
<T> javax.xml.bind.JAXBElement<T>
unmarshal(org.w3c.dom.Node node, java.lang.Class<T> tClass)
           
 java.lang.Object unmarshal(java.io.Reader reader)
           
 java.lang.Object unmarshal(javax.xml.transform.Source source)
           
<T> javax.xml.bind.JAXBElement<T>
unmarshal(javax.xml.transform.Source source, java.lang.Class<T> tClass)
           
 java.lang.Object unmarshal(java.net.URL url)
           
 java.lang.Object unmarshal(javax.xml.stream.XMLEventReader xmlEventReader)
           
<T> javax.xml.bind.JAXBElement<T>
unmarshal(javax.xml.stream.XMLEventReader xmlEventReader, java.lang.Class<T> tClass)
           
 java.lang.Object unmarshal(javax.xml.stream.XMLStreamReader xmlStreamReader)
           
<T> javax.xml.bind.JAXBElement<T>
unmarshal(javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.Class<T> tClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettisonMappedUnmarshaller

public JettisonMappedUnmarshaller(javax.xml.bind.JAXBContext context,
                                  java.util.Map<java.lang.String,java.lang.String> xmlToJSON,
                                  java.util.List<java.lang.String> attributeMapping,
                                  java.util.List<java.lang.String> ignoredElements)
                           throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

JettisonMappedUnmarshaller

public JettisonMappedUnmarshaller(javax.xml.bind.JAXBContext context,
                                  org.codehaus.jettison.mapped.MappedNamespaceConvention convention)
                           throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException
Method Detail

unmarshal

public java.lang.Object unmarshal(java.io.File file)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(java.io.InputStream inputStream)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(java.io.Reader reader)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

getXmlStreamReader

protected org.codehaus.jettison.mapped.MappedXMLStreamReader getXmlStreamReader(java.io.Reader reader)
                                                                         throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(java.net.URL url)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(org.xml.sax.InputSource inputSource)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(org.w3c.dom.Node node)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public <T> javax.xml.bind.JAXBElement<T> unmarshal(org.w3c.dom.Node node,
                                                   java.lang.Class<T> tClass)
                                        throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(javax.xml.transform.Source source)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.transform.Source source,
                                                   java.lang.Class<T> tClass)
                                        throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(javax.xml.stream.XMLStreamReader xmlStreamReader)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.stream.XMLStreamReader xmlStreamReader,
                                                   java.lang.Class<T> tClass)
                                        throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public java.lang.Object unmarshal(javax.xml.stream.XMLEventReader xmlEventReader)
                           throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

unmarshal

public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.stream.XMLEventReader xmlEventReader,
                                                   java.lang.Class<T> tClass)
                                        throws javax.xml.bind.JAXBException
Specified by:
unmarshal in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

getUnmarshallerHandler

public javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
Specified by:
getUnmarshallerHandler in interface javax.xml.bind.Unmarshaller

setValidating

public void setValidating(boolean b)
                   throws javax.xml.bind.JAXBException
Specified by:
setValidating in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

isValidating

public boolean isValidating()
                     throws javax.xml.bind.JAXBException
Specified by:
isValidating in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

setEventHandler

public void setEventHandler(javax.xml.bind.ValidationEventHandler validationEventHandler)
                     throws javax.xml.bind.JAXBException
Specified by:
setEventHandler in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

getEventHandler

public javax.xml.bind.ValidationEventHandler getEventHandler()
                                                      throws javax.xml.bind.JAXBException
Specified by:
getEventHandler in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.JAXBException

setProperty

public void setProperty(java.lang.String s,
                        java.lang.Object o)
                 throws javax.xml.bind.PropertyException
Specified by:
setProperty in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.PropertyException

getProperty

public java.lang.Object getProperty(java.lang.String s)
                             throws javax.xml.bind.PropertyException
Specified by:
getProperty in interface javax.xml.bind.Unmarshaller
Throws:
javax.xml.bind.PropertyException

setSchema

public void setSchema(javax.xml.validation.Schema schema)
Specified by:
setSchema in interface javax.xml.bind.Unmarshaller

getSchema

public javax.xml.validation.Schema getSchema()
Specified by:
getSchema in interface javax.xml.bind.Unmarshaller

setAdapter

public void setAdapter(javax.xml.bind.annotation.adapters.XmlAdapter xmlAdapter)
Specified by:
setAdapter in interface javax.xml.bind.Unmarshaller

setAdapter

public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> void setAdapter(java.lang.Class<A> aClass,
                                                                                 A a)
Specified by:
setAdapter in interface javax.xml.bind.Unmarshaller

getAdapter

public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> A getAdapter(java.lang.Class<A> aClass)
Specified by:
getAdapter in interface javax.xml.bind.Unmarshaller

setAttachmentUnmarshaller

public void setAttachmentUnmarshaller(javax.xml.bind.attachment.AttachmentUnmarshaller attachmentUnmarshaller)
Specified by:
setAttachmentUnmarshaller in interface javax.xml.bind.Unmarshaller

getAttachmentUnmarshaller

public javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
Specified by:
getAttachmentUnmarshaller in interface javax.xml.bind.Unmarshaller

setListener

public void setListener(javax.xml.bind.Unmarshaller.Listener listener)
Specified by:
setListener in interface javax.xml.bind.Unmarshaller

getListener

public javax.xml.bind.Unmarshaller.Listener getListener()
Specified by:
getListener in interface javax.xml.bind.Unmarshaller


Copyright © 2010. All Rights Reserved.