Class BinderImpl<XmlNode>

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

public class BinderImpl<XmlNode> extends javax.xml.bind.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.
Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
  • Method Details

    • marshal

      public void marshal(Object jaxbObject, XmlNode xmlNode) throws javax.xml.bind.JAXBException
      Specified by:
      marshal in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.JAXBException
    • updateJAXB

      public Object updateJAXB(XmlNode xmlNode) throws javax.xml.bind.JAXBException
      Specified by:
      updateJAXB in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(XmlNode xmlNode) throws javax.xml.bind.JAXBException
      Specified by:
      unmarshal in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.JAXBException
    • unmarshal

      public <T> javax.xml.bind.JAXBElement<T> unmarshal(XmlNode xmlNode, Class<T> expectedType) throws javax.xml.bind.JAXBException
      Specified by:
      unmarshal in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.JAXBException
    • setSchema

      public void setSchema(Schema schema)
      Specified by:
      setSchema in class javax.xml.bind.Binder<XmlNode>
    • getSchema

      public Schema getSchema()
      Specified by:
      getSchema in class javax.xml.bind.Binder<XmlNode>
    • getXMLNode

      public XmlNode getXMLNode(Object jaxbObject)
      Specified by:
      getXMLNode in class javax.xml.bind.Binder<XmlNode>
    • getJAXBNode

      public Object getJAXBNode(XmlNode xmlNode)
      Specified by:
      getJAXBNode in class javax.xml.bind.Binder<XmlNode>
    • updateXML

      public XmlNode updateXML(Object jaxbObject) throws javax.xml.bind.JAXBException
      Specified by:
      updateXML in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.JAXBException
    • updateXML

      public XmlNode updateXML(Object jaxbObject, XmlNode xmlNode) throws javax.xml.bind.JAXBException
      Specified by:
      updateXML in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.JAXBException
    • setEventHandler

      public void setEventHandler(javax.xml.bind.ValidationEventHandler handler) throws javax.xml.bind.JAXBException
      Specified by:
      setEventHandler in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.JAXBException
    • getEventHandler

      public javax.xml.bind.ValidationEventHandler getEventHandler()
      Specified by:
      getEventHandler in class javax.xml.bind.Binder<XmlNode>
    • getProperty

      public Object getProperty(String name) throws javax.xml.bind.PropertyException
      Specified by:
      getProperty in class javax.xml.bind.Binder<XmlNode>
      Throws:
      javax.xml.bind.PropertyException
    • setProperty

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