com.ebmwebsourcing.wsstar.resource.definition.utils
Class WSResourceJAXBContext

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.resource.definition.utils.WSResourceJAXBContext

public class WSResourceJAXBContext
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 wsrfbfFactory
          JAXB's ObjectFactories
static ObjectFactory wsrfrFactory
           
static ObjectFactory wsrfrlFactory
           
static ObjectFactory wsrfrpFactory
           
 
Constructor Summary
WSResourceJAXBContext()
          Default constructor.
 
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
 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

wsrfbfFactory

public static ObjectFactory wsrfbfFactory
JAXB's ObjectFactories


wsrfrFactory

public static ObjectFactory wsrfrFactory

wsrfrlFactory

public static ObjectFactory wsrfrlFactory

wsrfrpFactory

public static ObjectFactory wsrfrpFactory
Constructor Detail

WSResourceJAXBContext

public WSResourceJAXBContext()
                      throws org.ow2.easywsdl.schema.api.SchemaException
Default constructor. Private object initializations

Throws:
org.ow2.easywsdl.schema.api.SchemaException
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

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

createWSNotificationUnmarshaller

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