astronomy.data.spectra.impl.runtime
Class UnmarshallerImpl

java.lang.Object
  extended by javax.xml.bind.helpers.AbstractUnmarshallerImpl
      extended by astronomy.data.spectra.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:
Constructor Summary
UnmarshallerImpl(DefaultJAXBContextImpl context, GrammarInfo gi)
           
 
Method Summary
 SAXUnmarshallerHandler createUnmarshallerHandler(com.sun.xml.bind.validator.Locator locator)
          Creates and configures a new unmarshalling pipe line.
 javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
           
 void setValidating(boolean validating)
           
 Object unmarshal(Node node)
           
protected  Object unmarshal(XMLReader reader, InputSource source)
           
 
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
 

Constructor Detail

UnmarshallerImpl

public UnmarshallerImpl(DefaultJAXBContextImpl context,
                        GrammarInfo gi)
Method Detail

setValidating

public void setValidating(boolean validating)
                   throws javax.xml.bind.JAXBException
Specified by:
setValidating in interface javax.xml.bind.Unmarshaller
Overrides:
setValidating in class javax.xml.bind.helpers.AbstractUnmarshallerImpl
Throws:
javax.xml.bind.JAXBException

getUnmarshallerHandler

public javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()

createUnmarshallerHandler

public 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 Object unmarshal(XMLReader reader,
                           InputSource source)
                    throws javax.xml.bind.JAXBException
Specified by:
unmarshal in class javax.xml.bind.helpers.AbstractUnmarshallerImpl
Throws:
javax.xml.bind.JAXBException

unmarshal

public final Object unmarshal(Node node)
                       throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException