com.ebmwebsourcing.wsstar.notification.definition.inout
Class WSNotificationReader

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.notification.definition.inout.WSNotificationReader

public class WSNotificationReader
extends java.lang.Object

This class provides a collection of methods that enable conversion of a Document object into a "WS-{Base/Brokered}Notification java type" object. This conversion uses JAXB "unmarshalling" mechanism

Author:
Thierry Déjean - eBM WebSourcing

Method Summary
static WSNotificationReader getInstance()
          Return an unique - respect to the Singleton design pattern - instance of the WSNotificationReader class.
static WSNotificationReader getInstance(java.lang.String[] nsAndPrefixForMarshalling)
          Return an unique - respect to the Singleton design pattern - instance of the WSNotificationWriter class.
 DestroyRegistration readDestroyRegistration(org.w3c.dom.Document doc)
          Unmarshall DestroyRegistration object from a Document representation fragment object
 DestroyRegistrationResponse readDestroyRegistrationResponse(org.w3c.dom.Document doc)
          Unmarshall DestroyRegistrationResponse object from a Document representation fragment object
 GetCurrentMessage readGetCurrentMessage(org.w3c.dom.Document doc)
          Unmarshall GetCurrentMessage object from a Document representation fragment object
 GetCurrentMessageResponse readGetCurrentMessageResponse(org.w3c.dom.Document doc)
          Unmarshall GetCurrentMessageResponse object from a Document representation fragment object
 Message readMessageType(org.w3c.dom.Document doc)
          Unmarshall Message object from a Document representation fragment object
 Notify readNotify(org.w3c.dom.Document doc)
          Unmarshall Notify object from a Document representation fragment object.
 PublisherRegistrationRP readPublisherRegistrationRP(org.w3c.dom.Document doc)
          Unmarshall PublisherRegistrationRP object from a Document representation fragment object
 PublisherRegistrationRP readPublisherRegistrationRP(java.io.File file)
          method used to restore PublisherRegistrationRP java object from a file
 QueryExpressionType readQueryExpressionType(org.w3c.dom.Document doc)
          Unmarshall QueryExpressionType object from a Document representation fragment object
 RegisterPublisher readRegisterPublisher(org.w3c.dom.Document doc)
          Unmarshall RegisterPublisher object from a Document representation fragment object
 RegisterPublisherResponse readRegisterPublisherResponse(org.w3c.dom.Document doc)
          Unmarshall RegisterPublisherResponse object from a Document representation fragment object
 Renew readRenew(org.w3c.dom.Document doc)
          Unmarshall Renew object from a Document representation fragment object
 RenewResponse readRenewResponse(org.w3c.dom.Document doc)
          Unmarshall RenewResponse object from a Document representation fragment object
 Subscribe readSubscribe(org.w3c.dom.Document doc)
          Unmarshall Subscribe object from a Document representation fragment object
 SubscribeResponse readSubscribeResponse(org.w3c.dom.Document doc)
          Unmarshall SubscribeResponse object from a Document representation fragment object
 SubscribeResponse readSubscribeResponse(java.io.File file)
          method used to restore SubscribeResponse java object from a file
 SubscriptionManagerRP readSubscriptionManagerRP(org.w3c.dom.Document doc)
          Unmarshall SubscriptionManagerRP object from a Document representation fragment object
 SubscriptionManagerRP readSubscriptionManagerRP(java.io.File file)
          method used to restore SubscriptionManagerRP java object from a file
 TopicExpressionType readTopicExpressionType(org.w3c.dom.Document doc)
          Unmarshall TopicExpressionType object from a Document representation fragment object
 TopicNamespaceType readTopicNamespaceType(org.w3c.dom.Document doc)
          Unmarshall TopicNamespaceType object from a Document representation fragment object
 TopicSetType readTopicSetType(org.w3c.dom.Document doc)
          Unmarshall TopicSetType object from a Document representation fragment object
 TopicType readTopicType(org.w3c.dom.Document doc)
          Unmarshall TopicType object from a Document representation fragment object
 Unsubscribe readUnsubscribe(org.w3c.dom.Document doc)
          Unmarshall Unsubscribe object from a Document representation fragment object
 UnsubscribeResponse readUnsubscribeResponse(org.w3c.dom.Document doc)
          Unmarshall UnsubscribeResponse object from a Document representation fragment object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

Returns:
a unique WSNotificationFactory instance.

getInstance

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

Returns:
a unique WSNotificationFactory instance.

readRegisterPublisher

public RegisterPublisher readRegisterPublisher(org.w3c.dom.Document doc)
                                        throws WSNotificationException
Unmarshall RegisterPublisher object from a Document representation fragment object

Parameters:
doc - Document object representation of RegisterPublisher Java type
Returns:
a RegisterPublisher object (type generated with jaxb tools)
Throws:
WSNotificationException

readRegisterPublisherResponse

public RegisterPublisherResponse readRegisterPublisherResponse(org.w3c.dom.Document doc)
                                                        throws WSNotificationException
Unmarshall RegisterPublisherResponse object from a Document representation fragment object

Parameters:
doc - Document object representation of RegisterPublisherResponse Java type
Returns:
a RegisterPublisherResponse object (type generated with jaxb tools)
Throws:
WSNotificationException

readDestroyRegistration

public DestroyRegistration readDestroyRegistration(org.w3c.dom.Document doc)
                                            throws WSNotificationException
Unmarshall DestroyRegistration object from a Document representation fragment object

Parameters:
doc - Document object representation of DestroyRegistration Java type
Returns:
a DestroyRegistration object (type generated with jaxb tools)
Throws:
WSNotificationException

readPublisherRegistrationRP

public PublisherRegistrationRP readPublisherRegistrationRP(org.w3c.dom.Document doc)
                                                    throws WSNotificationException
Unmarshall PublisherRegistrationRP object from a Document representation fragment object

Parameters:
doc - Document object representation of PublisherRegistrationRP Java type
Returns:
a PublisherRegistrationRP object (type generated with jaxb tools)
Throws:
WSNotificationException

readDestroyRegistrationResponse

public DestroyRegistrationResponse readDestroyRegistrationResponse(org.w3c.dom.Document doc)
                                                            throws WSNotificationException
Unmarshall DestroyRegistrationResponse object from a Document representation fragment object

Parameters:
doc - Document object representation of DestroyRegistrationResponse Java type
Returns:
a DestroyRegistrationResponse object (type generated with jaxb tools)
Throws:
WSNotificationException

readSubscribe

public Subscribe readSubscribe(org.w3c.dom.Document doc)
                        throws WSNotificationException
Unmarshall Subscribe object from a Document representation fragment object

Parameters:
doc - Document object representation of Subscribe Java type
Returns:
a Subscribe object (type generated with jaxb tools)
Throws:
WSNotificationException

readSubscriptionManagerRP

public SubscriptionManagerRP readSubscriptionManagerRP(org.w3c.dom.Document doc)
                                                throws WSNotificationException
Unmarshall SubscriptionManagerRP object from a Document representation fragment object

Parameters:
file - Document object containing a marshalled SubscriptionManagerRP Java type
Returns:
a SubscriptionManagerRP object (type generated with jaxb tools)
Throws:
WSNotificationException

readSubscribeResponse

public SubscribeResponse readSubscribeResponse(org.w3c.dom.Document doc)
                                        throws WSNotificationException
Unmarshall SubscribeResponse object from a Document representation fragment object

Parameters:
doc - Document object representation of SubscribeResponse Java type
Returns:
a SubscribeResponse object (type generated with jaxb tools)
Throws:
WSNotificationException

readUnsubscribe

public Unsubscribe readUnsubscribe(org.w3c.dom.Document doc)
                            throws WSNotificationException
Unmarshall Unsubscribe object from a Document representation fragment object

Parameters:
doc - Document object representation of Unsubscribe Java type
Returns:
a Unsubscribe object (type generated with jaxb tools)
Throws:
WSNotificationException

readUnsubscribeResponse

public UnsubscribeResponse readUnsubscribeResponse(org.w3c.dom.Document doc)
                                            throws WSNotificationException
Unmarshall UnsubscribeResponse object from a Document representation fragment object

Parameters:
doc - org.w3c.dom.Document object representation of UnsubscribeResponse Java type
Returns:
a UnsubscribeResponse object (type generated with jaxb tools)
Throws:
WSNotificationException

readGetCurrentMessage

public GetCurrentMessage readGetCurrentMessage(org.w3c.dom.Document doc)
                                        throws WSNotificationException
Unmarshall GetCurrentMessage object from a Document representation fragment object

Parameters:
doc - Document object representation of GetCurrentMessage Java type
Returns:
a GetCurrentMessage object (type generated with jaxb tools)
Throws:
WSNotificationException

readGetCurrentMessageResponse

public GetCurrentMessageResponse readGetCurrentMessageResponse(org.w3c.dom.Document doc)
                                                        throws WSNotificationException
Unmarshall GetCurrentMessageResponse object from a Document representation fragment object

Parameters:
doc - Document object representation of GetCurrentMessageResponse Java type
Returns:
a GetCurrentMessageResponse object (type generated with jaxb tools)
Throws:
WSNotificationException

readRenew

public Renew readRenew(org.w3c.dom.Document doc)
                throws WSNotificationException
Unmarshall Renew object from a Document representation fragment object

Parameters:
doc - Document object representation of Renew Java type
Returns:
a Renew object (type generated with jaxb tools)
Throws:
WSNotificationException

readRenewResponse

public RenewResponse readRenewResponse(org.w3c.dom.Document doc)
                                throws WSNotificationException
Unmarshall RenewResponse object from a Document representation fragment object

Parameters:
doc - org.w3c.dom.Document object representation of RenewResponse Java type
Returns:
a RenewResponse object (type generated with jaxb tools)
Throws:
WSNotificationException

readNotify

public Notify readNotify(org.w3c.dom.Document doc)
                  throws WSNotificationException
Unmarshall Notify object from a Document representation fragment object. Additional namespaces on Topic element are lost during unmarshalling process as they are considered as unused by the unmarshaller. So a trick is used to preserve them.

Parameters:
doc - Document object representation of Notify Java type
Returns:
a Notify object (type generated with jaxb tools)
Throws:
WSNotificationException

readTopicExpressionType

public TopicExpressionType readTopicExpressionType(org.w3c.dom.Document doc)
                                            throws WSNotificationException
Unmarshall TopicExpressionType object from a Document representation fragment object

Parameters:
doc - Document object representation of TopicExpressionType Java type
Returns:
a TopicExpressionType object (type generated with jaxb tools)
Throws:
WSNotificationException

readQueryExpressionType

public QueryExpressionType readQueryExpressionType(org.w3c.dom.Document doc)
                                            throws WSNotificationException
Unmarshall QueryExpressionType object from a Document representation fragment object

Parameters:
doc - Document object representation of QueryExpressionType Java type
Returns:
a QueryExpressionType object (type generated with jaxb tools)
Throws:
WSNotificationException

readMessageType

public Message readMessageType(org.w3c.dom.Document doc)
                        throws WSNotificationException
Unmarshall Message object from a Document representation fragment object

Parameters:
doc - Document object representation of Message Java type
Returns:
a Message object (type generated with jaxb tools)
Throws:
WSNotificationException

readTopicType

public TopicType readTopicType(org.w3c.dom.Document doc)
                        throws WSNotificationException
Unmarshall TopicType object from a Document representation fragment object

Parameters:
doc - Document object representation of TopicType Java type
Returns:
a TopicType object (type generated with jaxb tools)
Throws:
WSNotificationException

readTopicNamespaceType

public TopicNamespaceType readTopicNamespaceType(org.w3c.dom.Document doc)
                                          throws WSNotificationException
Unmarshall TopicNamespaceType object from a Document representation fragment object

Parameters:
doc - Document object representation of TopicNamespaceType Java type
Returns:
a TopicNamespaceType object (type generated with jaxb tools)
Throws:
WSNotificationException

readTopicSetType

public TopicSetType readTopicSetType(org.w3c.dom.Document doc)
                              throws WSNotificationException
Unmarshall TopicSetType object from a Document representation fragment object

Parameters:
doc - Document object representation of TopicSetType Java type
Returns:
a TopicSetType object (type generated with jaxb tools)
Throws:
WSNotificationException

readSubscriptionManagerRP

public SubscriptionManagerRP readSubscriptionManagerRP(java.io.File file)
                                                throws WSNotificationException
method used to restore SubscriptionManagerRP java object from a file

Parameters:
file - the File which the java Object have been persisted in
Returns:
the SubscriptionManagerRP java Object previously store as a file
Throws:
WSNotificationException

readPublisherRegistrationRP

public PublisherRegistrationRP readPublisherRegistrationRP(java.io.File file)
                                                    throws WSNotificationException
method used to restore PublisherRegistrationRP java object from a file

Parameters:
file - the File which the java Object have been persisted in
Returns:
the PublisherRegistrationRP java Object previously store as a file
Throws:
WSNotificationException

readSubscribeResponse

public SubscribeResponse readSubscribeResponse(java.io.File file)
                                        throws WSNotificationException
method used to restore SubscribeResponse java object from a file

Parameters:
file - the File which the java Object have been persisted in
Returns:
the SubscribeResponse java Object previously store as a file
Throws:
WSNotificationException


Copyright © 2009-2010 eBM Websourcing. All Rights Reserved.