com.sun.xml.bind.v2.runtime

Class 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
ValidationEventHandlergetEventHandler()
ObjectgetJAXBNode(XmlNode xmlNode)
ObjectgetProperty(String name)
SchemagetSchema()
XmlNodegetXMLNode(Object jaxbObject)
voidmarshal(Object jaxbObject, XmlNode xmlNode)
voidsetEventHandler(ValidationEventHandler handler)
voidsetProperty(String name, Object value)
voidsetSchema(Schema schema)
Objectunmarshal(XmlNode xmlNode)
<T> JAXBElement<T>unmarshal(XmlNode xmlNode, Class<T> expectedType)
ObjectupdateJAXB(XmlNode xmlNode)
XmlNodeupdateXML(Object jaxbObject)
XmlNodeupdateXML(Object jaxbObject, XmlNode xmlNode)

Constructor Detail

BinderImpl

BinderImpl(JAXBContextImpl _context, InfosetScanner<XmlNode> scanner)

Method Detail

getEventHandler

public ValidationEventHandler getEventHandler()

getJAXBNode

public Object getJAXBNode(XmlNode xmlNode)

getProperty

public Object getProperty(String name)

getSchema

public Schema getSchema()

getXMLNode

public XmlNode getXMLNode(Object jaxbObject)

marshal

public void marshal(Object jaxbObject, XmlNode xmlNode)

setEventHandler

public void setEventHandler(ValidationEventHandler handler)

setProperty

public void setProperty(String name, Object value)

setSchema

public void setSchema(Schema schema)

unmarshal

public Object unmarshal(XmlNode xmlNode)

unmarshal

public <T> JAXBElement<T> unmarshal(XmlNode xmlNode, Class<T> expectedType)

updateJAXB

public Object updateJAXB(XmlNode xmlNode)

updateXML

public XmlNode updateXML(Object jaxbObject)

updateXML

public XmlNode updateXML(Object jaxbObject, XmlNode xmlNode)