com.sun.xml.bind.v2.runtime
Class BinderImpl<XmlNode>

java.lang.Object
  extended by javax.xml.bind.Binder<XmlNode>
      extended by com.sun.xml.bind.v2.runtime.BinderImpl<XmlNode>

public class BinderImpl<XmlNode>
extends Binder<XmlNode>

Implementation of Binder. TODO: investigate how much in-place unmarshalling is implemented - some preliminary work is there. Probably buggy. TODO: work on the marshaller side.


Constructor Summary
BinderImpl(JAXBContextImpl _context, InfosetScanner<XmlNode> scanner)
           
 
Method Summary
 ValidationEventHandler getEventHandler()
           
 Object getJAXBNode(XmlNode xmlNode)
           
 Object getProperty(String name)
           
 Schema getSchema()
           
 XmlNode getXMLNode(Object jaxbObject)
           
 void marshal(Object jaxbObject, XmlNode xmlNode)
           
 void setEventHandler(ValidationEventHandler handler)
           
 void setProperty(String name, Object value)
           
 void setSchema(Schema schema)
           
 Object unmarshal(XmlNode xmlNode)
           
<T> JAXBElement<T>
unmarshal(XmlNode xmlNode, Class<T> expectedType)
           
 Object updateJAXB(XmlNode xmlNode)
           
 XmlNode updateXML(Object jaxbObject)
           
 XmlNode updateXML(Object jaxbObject, XmlNode xmlNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinderImpl

BinderImpl(JAXBContextImpl _context,
           InfosetScanner<XmlNode> scanner)
Method Detail

marshal

public void marshal(Object jaxbObject,
                    XmlNode xmlNode)
             throws JAXBException
Specified by:
marshal in class Binder<XmlNode>
Throws:
JAXBException

updateJAXB

public Object updateJAXB(XmlNode xmlNode)
                  throws JAXBException
Specified by:
updateJAXB in class Binder<XmlNode>
Throws:
JAXBException

unmarshal

public Object unmarshal(XmlNode xmlNode)
                 throws JAXBException
Specified by:
unmarshal in class Binder<XmlNode>
Throws:
JAXBException

unmarshal

public <T> JAXBElement<T> unmarshal(XmlNode xmlNode,
                                    Class<T> expectedType)
                         throws JAXBException
Specified by:
unmarshal in class Binder<XmlNode>
Throws:
JAXBException

setSchema

public void setSchema(Schema schema)
Specified by:
setSchema in class Binder<XmlNode>

getSchema

public Schema getSchema()
Specified by:
getSchema in class Binder<XmlNode>

getXMLNode

public XmlNode getXMLNode(Object jaxbObject)
Specified by:
getXMLNode in class Binder<XmlNode>

getJAXBNode

public Object getJAXBNode(XmlNode xmlNode)
Specified by:
getJAXBNode in class Binder<XmlNode>

updateXML

public XmlNode updateXML(Object jaxbObject)
                  throws JAXBException
Specified by:
updateXML in class Binder<XmlNode>
Throws:
JAXBException

updateXML

public XmlNode updateXML(Object jaxbObject,
                         XmlNode xmlNode)
                  throws JAXBException
Specified by:
updateXML in class Binder<XmlNode>
Throws:
JAXBException

setEventHandler

public void setEventHandler(ValidationEventHandler handler)
                     throws JAXBException
Specified by:
setEventHandler in class Binder<XmlNode>
Throws:
JAXBException

getEventHandler

public ValidationEventHandler getEventHandler()
Specified by:
getEventHandler in class Binder<XmlNode>

getProperty

public Object getProperty(String name)
                   throws PropertyException
Specified by:
getProperty in class Binder<XmlNode>
Throws:
PropertyException

setProperty

public void setProperty(String name,
                        Object value)
                 throws PropertyException
Specified by:
setProperty in class Binder<XmlNode>
Throws:
PropertyException