com.sun.xml.bind.v2.runtime
Class BinderImpl<XmlNode>
java.lang.Object
javax.xml.bind.Binder<XmlNode>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinderImpl
BinderImpl(JAXBContextImpl _context,
InfosetScanner<XmlNode> scanner)
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