com.ebmwebsourcing.wsstar.resource.datatypes.impl
Class WsrfrJAXBContext

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.resource.datatypes.impl.WsrfrJAXBContext

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

WSRFR_JAXB_FACTORY

public static final ObjectFactory WSRFR_JAXB_FACTORY
JAXB's ObjectFactories

Method Detail

getInstance

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

Returns:
a unique WsrfrJAXBContext instance.

getInstance

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

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

createWSResourceMarshaller

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

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

createWSResourceUnmarshaller

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