API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.bind. Binder View Source
Author(s)
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) Joseph Fialli
Since
JAXB 2.0
Version
Serial
Hierarchy
 Object
      Binder
Implements
Subclasses
Description
publicabstract abstract class Binder
  Enable synchronization between XML infoset nodes and JAXB objects representing same XML document.
See also:   
Constructors
public Binder ()
Methods
Hide/Show inherited methods
publicabstract ValidationEventHandler getEventHandler () throws JAXBException
  Return the current event handler or the default event handler if one hasn't been set.
publicabstract Object getJAXBNode ( XmlNode xmlNode)
  Gets the JAXB object associated with the given XML element.
publicabstract Object getProperty (String name) throws PropertyException
  Get the particular property in the underlying implementation of Binder.
publicabstract Schema getSchema ()
  Gets the last Schema object (including null) set by the Binder.setSchema(Schema) method.
publicabstract XmlNode getXMLNode (Object jaxbObject)
  Gets the XML element associated with the given JAXB object.
publicabstract void marshal (Object jaxbObject, XmlNode xmlNode) throws JAXBException
  Marshal a JAXB object tree to a new XML document.
publicabstract void setEventHandler (ValidationEventHandler handler) throws JAXBException
  Allow an application to register a ValidationEventHandler.
publicabstract void setProperty (String name, Object value) throws PropertyException
  Set the particular property in the underlying implementation of Binder.
publicabstract void setSchema (Schema schema)
  Specifies whether marshal, unmarshal and update methods performs validation on their XML content.
publicabstract Object unmarshal ( XmlNode xmlNode) throws JAXBException
  Unmarshal XML infoset view to a JAXB object tree.
publicabstract JAXBElement< T> unmarshal ( XmlNode xmlNode, Class< T> declaredType) throws JAXBException
  Unmarshal XML root element by provided declaredType to a JAXB object tree.
publicabstract Object updateJAXB ( XmlNode xmlNode) throws JAXBException
  Takes an XML node and updates its associated JAXB object and its descendants.
publicabstract XmlNode updateXML (Object jaxbObject) throws JAXBException
  Takes an JAXB object and updates its associated XML node and its descendants.
publicabstract XmlNode updateXML (Object jaxbObject, XmlNode xmlNode) throws JAXBException
  Changes in JAXB object tree are updated in its associated XML parse tree.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar