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

Field Summary
static ObjectFactory wsnbFactory
          JAXB's ObjectFactories
static ObjectFactory wsnbrFactory
           
static ObjectFactory wstopFactory
           
 
Constructor Summary
WSNotificationJAXBContext()
           
 
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 TODO ofabre make marshaller thread local variable
 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
 

Field Detail

wsnbFactory

public static ObjectFactory wsnbFactory
JAXB's ObjectFactories


wsnbrFactory

public static ObjectFactory wsnbrFactory

wstopFactory

public static ObjectFactory wstopFactory
Constructor Detail

WSNotificationJAXBContext

public WSNotificationJAXBContext()
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 TODO ofabre make marshaller thread local variable

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

createWSNotificationUnmarshaller

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

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


Copyright © 2009-2010 eBM Websourcing. All Rights Reserved.