com.sun.jersey.json.impl
Class JSONUnmarshallerImpl

java.lang.Object
  extended by com.sun.jersey.json.impl.BaseJSONUnmarshaller
      extended by com.sun.jersey.json.impl.JSONUnmarshallerImpl
All Implemented Interfaces:
JSONConfigurated, JSONUnmarshaller, javax.xml.bind.Unmarshaller

public class JSONUnmarshallerImpl
extends BaseJSONUnmarshaller
implements javax.xml.bind.Unmarshaller

Author:
Jakub.Podlesak@Sun.COM

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.xml.bind.Unmarshaller
javax.xml.bind.Unmarshaller.Listener
 
Field Summary
 
Fields inherited from class com.sun.jersey.json.impl.BaseJSONUnmarshaller
jaxbUnmarshaller, jsonConfig
 
Constructor Summary
JSONUnmarshallerImpl(javax.xml.bind.JAXBContext jaxbContext, JSONConfiguration jsonConfig)
           
 
Method Summary
<A extends javax.xml.bind.annotation.adapters.XmlAdapter>
A
getAdapter(java.lang.Class<A> type)
           
 javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
           
 javax.xml.bind.ValidationEventHandler getEventHandler()
           
 javax.xml.bind.Unmarshaller.Listener getListener()
           
 java.lang.Object getProperty(java.lang.String key)
           
 javax.xml.validation.Schema getSchema()
           
 javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
           
 boolean isValidating()
           
<A extends javax.xml.bind.annotation.adapters.XmlAdapter>
void
setAdapter(java.lang.Class<A> type, A adapter)
           
 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 key, java.lang.Object value)
           
 void setSchema(javax.xml.validation.Schema schema)
           
 void setValidating(boolean validating)
           
 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> type)
           
 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> type)
           
 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> type)
           
 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> type)
           
 
Methods inherited from class com.sun.jersey.json.impl.BaseJSONUnmarshaller
getJSONConfiguration, unmarshalFromJSON, unmarshalFromJSON, unmarshalJAXBElementFromJSON, unmarshalJAXBElementFromJSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONUnmarshallerImpl

public JSONUnmarshallerImpl(javax.xml.bind.JAXBContext jaxbContext,
                            JSONConfiguration jsonConfig)
                     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

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> type)
                                        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> type)
                                        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> type)
                                        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> type)
                                        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 validating)
                   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 key,
                        java.lang.Object value)
                 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 key)
                             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> type,
                                                                                 A adapter)
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> type)
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 © 2011 Sun Microsystems, Inc. All Rights Reserved.