com.ebmwebsourcing.wsstar.basefaults.datatypes.impl
Class WsrfbfJAXBContext

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.basefaults.datatypes.impl.WsrfbfJAXBContext

public final class WsrfbfJAXBContext
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 WSRFBF_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 createWSBaseFaultsMarshaller()
          Create an instance of {@code} from the current JAXBContext object
 javax.xml.bind.Unmarshaller createWSBaseFaultsUnmarshaller()
          Create an instance of {@code} from the current JAXBContext object
static WsrfbfJAXBContext getInstance()
          Return an unique - respect to the Singleton design pattern - instance of the WsrfbfJAXBContext class.
static WsrfbfJAXBContext getInstance(java.lang.String[] nsAndPrefixForMarshalling)
          Return an unique - respect to the Singleton design pattern - instance of the WsrfbfJAXBContext 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

WSRFBF_JAXB_FACTORY

public static final ObjectFactory WSRFBF_JAXB_FACTORY
JAXB's ObjectFactories

Method Detail

getInstance

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

Returns:
a unique WsrfbfJAXBContext instance.

getInstance

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

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

createWSBaseFaultsMarshaller

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

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

createWSBaseFaultsUnmarshaller

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