com.ebmwebsourcing.wsstar.topics.datatypes.impl
Class WstopJAXBContext

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.topics.datatypes.impl.WstopJAXBContext

public final class WstopJAXBContext
extends java.lang.Object

Author:
Thierry DEJEAN - eBM WebSourcing

Field Summary
static ObjectFactory WSTOP_JAXB_FACTORY
          JAXB's ObjectFactories
 
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 createWSTopicsMarshaller()
          Create an instance of {@code} from the current JAXBContext object
 javax.xml.bind.Unmarshaller createWSTopicsUnmarshaller()
          Create an instance of {@code} from the current JAXBContext object
static WstopJAXBContext getInstance()
          Return an unique - respect to the Singleton design pattern - instance of the WstopJAXBContext class.
static WstopJAXBContext getInstance(java.lang.String[] nsAndPrefixForMarshalling)
          Return an unique - respect to the Singleton design pattern - instance of the WstopJAXBContext class.
 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

WSTOP_JAXB_FACTORY

public static final ObjectFactory WSTOP_JAXB_FACTORY
JAXB's ObjectFactories

Method Detail

getInstance

public static WstopJAXBContext getInstance()
Return an unique - respect to the Singleton design pattern - instance of the WstopJAXBContext class.

Returns:
a unique WstopJAXBContext instance.

getInstance

public static WstopJAXBContext getInstance(java.lang.String[] nsAndPrefixForMarshalling)
Return an unique - respect to the Singleton design pattern - instance of the WstopJAXBContext class.

Returns:
a unique WstopJAXBContext instance.

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 -

createWSTopicsMarshaller

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

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

createWSTopicsUnmarshaller

public javax.xml.bind.Unmarshaller createWSTopicsUnmarshaller()
                                                       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 © 2010-2011 eBM Websourcing. All Rights Reserved.