javax.xml.bind

Class Binder<XmlNode>


public abstract class Binder<XmlNode>
extends Object

Constructor Summary

Binder()

Method Summary

abstract ValidationEventHandler
getEventHandler()
abstract Object
getJAXBNode(XmlNode xmlNode)
abstract Object
getProperty(String name)
abstract Schema
getSchema()
abstract XmlNode
getXMLNode(Object jaxbObject)
abstract void
marshal(Object jaxbObject, XmlNode xmlNode)
abstract void
setEventHandler(ValidationEventHandler handler)
abstract void
setProperty(String name, Object value)
abstract void
setSchema(Schema schema)
abstract Object
unmarshal(XmlNode xmlNode)
abstract Object
updateJAXB(XmlNode xmlNode)
abstract XmlNode
updateXML(Object jaxbObject)
abstract XmlNode
updateXML(Object jaxbObject, XmlNode xmlNode)

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

Binder

public Binder()

Method Details

getEventHandler

public abstract ValidationEventHandler getEventHandler()
            throws JAXBException

getJAXBNode

public abstract Object getJAXBNode(XmlNode xmlNode)

getProperty

public abstract Object getProperty(String name)
            throws PropertyException
Usages and Demos :

View More Examples of getProperty(String name)
   1: 
   2: package javasoft.sqe.tests.bind.binder;
   3: 
   4:         ...
   5: import java.util.LinkedHashMap;
   6: import javax.xml.bind.Binder;
   7: import javax.xml.bind.JAXBContext;
   8:         ...
   9:     
  10:     public Binder<Node> getBinder() throws JAXBException{
  11:         JAXBContext jaxbContext = getJAXBContext();
  12:         ...
  13:         try{
  14:             binder.getProperty(null);

View Full Code Here

getSchema

public abstract Schema getSchema()

getXMLNode

public abstract XmlNode getXMLNode(Object jaxbObject)

marshal

public abstract void marshal(Object jaxbObject,
                             XmlNode xmlNode)
            throws JAXBException

setEventHandler

public abstract void setEventHandler(ValidationEventHandler handler)
            throws JAXBException
Usages and Demos :

View More Examples of setEventHandler(ValidationEventHandler handler)
   1: 
   2: package javasoft.sqe.tests.bind.binder;
   3: 
   4:         ...
   5: import java.util.LinkedHashMap;
   6: import javax.xml.bind.Binder;
   7: import javax.xml.bind.JAXBContext;
   8:         ...
   9:     
  10:     public Binder<Node> getBinder() throws JAXBException{
  11:         JAXBContext jaxbContext = getJAXBContext();
  12:         ...
  13:         try {
  14:             binder.setEventHandler(validationEventHandler);

View Full Code Here

setProperty

public abstract void setProperty(String name,
                                 Object value)
            throws PropertyException
Usages and Demos :

View More Examples of setProperty(String name,Object value)
   1: 
   2: package javasoft.sqe.tests.bind.binder;
   3: 
   4:         ...
   5: import java.util.LinkedHashMap;
   6: import javax.xml.bind.Binder;
   7: import javax.xml.bind.JAXBContext;
   8:         ...
   9:     
  10:     public Binder<Node> getBinder() throws JAXBException{
  11:         JAXBContext jaxbContext = getJAXBContext();
  12:         ...
  13:         try{
  14:             binder.setProperty(null,"-");

View Full Code Here

setSchema

public abstract void setSchema(Schema schema)

unmarshal

public abstract Object unmarshal(XmlNode xmlNode)
            throws JAXBException

updateJAXB

public abstract Object updateJAXB(XmlNode xmlNode)
            throws JAXBException

updateXML

public abstract XmlNode updateXML(Object jaxbObject)
            throws JAXBException

updateXML

public abstract XmlNode updateXML(Object jaxbObject,
                                  XmlNode xmlNode)
            throws JAXBException