edu.ksi.virtualclassroom.mappers.jaxb.xmlwrapper.impl.runtime
Class UnmarshallerImpl

java.lang.Object
  extended byjavax.xml.bind.helpers.AbstractUnmarshallerImpl
      extended byedu.ksi.virtualclassroom.mappers.jaxb.xmlwrapper.impl.runtime.UnmarshallerImpl
All Implemented Interfaces:
javax.xml.bind.Unmarshaller

public class UnmarshallerImpl
extends javax.xml.bind.helpers.AbstractUnmarshallerImpl

Default Unmarshall implementation. * *

* This class can be extended by the generated code to provide * type-safe unmarshall methods. * * @author * Kohsuke KAWAGUCHI * @version $Revision$


Field Summary
private  DefaultJAXBContextImpl context
          parent JAXBContext object that created this unmarshaller
private static org.xml.sax.helpers.DefaultHandler dummyHandler
          Field dummyHandler
private  GrammarInfo grammarInfo
          Field grammarInfo
 
Fields inherited from class javax.xml.bind.helpers.AbstractUnmarshallerImpl
 
Constructor Summary
UnmarshallerImpl(DefaultJAXBContextImpl context, GrammarInfo gi)
           
 
Method Summary
private  SAXUnmarshallerHandler createUnmarshallerHandler(com.sun.xml.bind.validator.Locator locator)
          Creates and configures a new unmarshalling pipe line.
 javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
          Method getUnmarshallerHandler
 void setValidating(boolean validating)
          Method setValidating
 java.lang.Object unmarshal(org.w3c.dom.Node node)
          Method unmarshal
protected  java.lang.Object unmarshal(org.xml.sax.XMLReader reader, org.xml.sax.InputSource source)
          Method unmarshal
 
Methods inherited from class javax.xml.bind.helpers.AbstractUnmarshallerImpl
createUnmarshalException, getEventHandler, getProperty, getXMLReader, isValidating, setEventHandler, setProperty, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private DefaultJAXBContextImpl context
parent JAXBContext object that created this unmarshaller


grammarInfo

private final GrammarInfo grammarInfo
Field grammarInfo


dummyHandler

private static final org.xml.sax.helpers.DefaultHandler dummyHandler
Field dummyHandler

Constructor Detail

UnmarshallerImpl

public UnmarshallerImpl(DefaultJAXBContextImpl context,
                        GrammarInfo gi)
Method Detail

setValidating

public void setValidating(boolean validating)
                   throws javax.xml.bind.JAXBException
Method setValidating

Parameters:
validating - boolean
Throws:
javax.xml.bind.JAXBException
See Also:
Unmarshaller.setValidating(boolean)

getUnmarshallerHandler

public javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
Method getUnmarshallerHandler

Returns:
UnmarshallerHandler
See Also:
Unmarshaller.getUnmarshallerHandler()

createUnmarshallerHandler

private SAXUnmarshallerHandler createUnmarshallerHandler(com.sun.xml.bind.validator.Locator locator)
Creates and configures a new unmarshalling pipe line. Depending on the setting, we put a validator as a filter.

Parameters:
locator - The object that is responsible to obtain the source location information for ValidationEvents.
Returns:
A component that implements both UnmarshallerHandler and ValidationEventHandler. All the parsing errors should be reported to this error handler for the unmarshalling process to work correctly.

unmarshal

protected java.lang.Object unmarshal(org.xml.sax.XMLReader reader,
                                     org.xml.sax.InputSource source)
                              throws javax.xml.bind.JAXBException
Method unmarshal

Parameters:
reader - XMLReader
source - InputSource
Returns:
Object
Throws:
javax.xml.bind.JAXBException

unmarshal

public final java.lang.Object unmarshal(org.w3c.dom.Node node)
                                 throws javax.xml.bind.JAXBException
Method unmarshal

Parameters:
node - Node
Returns:
Object
Throws:
javax.xml.bind.JAXBException
See Also:
Unmarshaller.unmarshal(Node)