com.ebmwebsourcing.wsstar.addressing.datatypes.impl
Class WsaJAXBContext

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.addressing.datatypes.impl.WsaJAXBContext

public final class WsaJAXBContext
extends java.lang.Object

Author:
Thierry DEJEAN - eBM WebSourcing

Field Summary
static ObjectFactory WSA_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 createWSAddressingMarshaller()
          Create an instance of {@code} from the current JAXBContext object
 javax.xml.bind.Unmarshaller createWSAddressingUnmarshaller()
          Create an instance of {@code} from the current JAXBContext object
static WsaJAXBContext getInstance()
          Return an unique - respect to the Singleton design pattern - instance of the WsaJAXBContext class.
static WsaJAXBContext getInstance(java.lang.String[] nsAndPrefixForMarshalling)
          Return an unique - respect to the Singleton design pattern - instance of the WSResourceWriter 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

WSA_FACTORY

public static final ObjectFactory WSA_FACTORY
JAXB's ObjectFactories

Method Detail

getInstance

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

Returns:
a unique WsaJAXBContext instance.

getInstance

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

Returns:
a unique WSResourceWriter 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 -

createWSAddressingMarshaller

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

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

createWSAddressingUnmarshaller

public javax.xml.bind.Unmarshaller createWSAddressingUnmarshaller()
                                                           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.