com.ebmwebsourcing.wsstar.notification.definition.utils
Class WSNotificationJAXBContext

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationJAXBContext

public class WSNotificationJAXBContext
extends java.lang.Object

This class is a "link" between JAXB generated classes and its upper API. It provides the JAXB context object used to get Unmarshaller/Marshaller Object. See EASYWSDL Library for more details since it follow the same JAXB usage model.

Author:
Thierry Déjean - eBM WebSourcing

Constructor Summary
WSNotificationJAXBContext()
          Default constructor.
 
Method Summary
 void addNsAndPrefixMapping(java.lang.String[] nsAndPref)
          add custom Prefix/Namesapce mapping Instead of default one which used the default prefix notation : "ns[an_integer]"
 javax.xml.bind.Marshaller createWSNotificationMarshaller()
          Create an instance of {@code} from the current JAXBContext object
 javax.xml.bind.Unmarshaller createWSNotificationUnmarshaller()
          Create an instance of {@code} from the current JAXBContext object
 javax.xml.bind.JAXBContext getJaxbContext()
          jaxbContext attribute getter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSNotificationJAXBContext

public WSNotificationJAXBContext()
                          throws org.ow2.easywsdl.schema.api.SchemaException
Default constructor. Private object initializations

Throws:
org.ow2.easywsdl.schema.api.SchemaException
Method Detail

getJaxbContext

public javax.xml.bind.JAXBContext getJaxbContext()
jaxbContext attribute getter

Returns:
the jaxbContext -instance of JAXBContext- attribute value

addNsAndPrefixMapping

public void addNsAndPrefixMapping(java.lang.String[] nsAndPref)
add custom Prefix/Namesapce mapping Instead of default one which used the default prefix notation : "ns[an_integer]"

Parameters:
nsAndPref -

createWSNotificationMarshaller

public javax.xml.bind.Marshaller createWSNotificationMarshaller()
                                                         throws javax.xml.bind.JAXBException
Create an instance of {@code} from the current JAXBContext object

Returns:
a Marshaller object
Throws:
javax.xml.bind.JAXBException

createWSNotificationUnmarshaller

public javax.xml.bind.Unmarshaller createWSNotificationUnmarshaller()
                                                             throws javax.xml.bind.JAXBException
Create an instance of {@code} from the current JAXBContext object

Returns:
a a Unmarshaller object
Throws:
javax.xml.bind.JAXBException


Copyright © 2009 eBM Websourcing. All Rights Reserved.