com.ebmwebsourcing.wsstar.notification.extension.inout
Class WSNotificationExtensionWriter

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.notification.extension.inout.WSNotificationExtensionWriter

public class WSNotificationExtensionWriter
extends java.lang.Object

This class provides a collection of methods that enable conversion of a "custom java type" object defined in the xml schema file named "specifictypesFornotifications.xsd" into a Document object. This conversion uses JAXB "marshalling" mechanism

Author:
Thierry Déjean -eBM WebSourcing

Method Summary
static WSNotificationExtensionWriter getInstance()
          Return an unique - respect to the Singleton design pattern - instance of the WSNotificationExtensionJAXBContext class.
 org.w3c.dom.Document writeContextPolicyType(ContextPolicyType javaObj)
          marchall a ContextPolicyType object.
 org.w3c.dom.Document writeProcessPolicyType(ProcessPolicyType javaObj)
          marchall a ProcessPolicyType object.
 org.w3c.dom.Document writeResourcesUuidType(ResourcesUuidType javaObj)
          marchall a ResourcesUuidType object.
 org.w3c.dom.Document writeSOAParameterType(SOAParameterType javaObj)
          marchall a SOAParameterType object.
 org.w3c.dom.Document writeTerminationTimeType(TerminationTimeType javaObj)
          marchall a TerminationTimeType object.
 org.w3c.dom.Document writeXsltStyleSheetType(XsltStyleSheetType javaObj)
          marchall a XsltStyleSheetType object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

Returns:
a unique WSNotificationFactory instance.

writeSOAParameterType

public org.w3c.dom.Document writeSOAParameterType(SOAParameterType javaObj)
                                           throws WSNotificationExtensionException
marchall a SOAParameterType object.

Parameters:
notifyObj - SOAParameterType Java object to marshall
Returns:
Document representation of the SOAParameterType Java type
Throws:
WSNotificationExtensionException

writeResourcesUuidType

public org.w3c.dom.Document writeResourcesUuidType(ResourcesUuidType javaObj)
                                            throws WSNotificationExtensionException
marchall a ResourcesUuidType object.

Parameters:
notifyObj - ResourcesUuidType Java object to marshall
Returns:
Document representation of the ResourcesUuidType Java type
Throws:
WSNotificationExtensionException

writeXsltStyleSheetType

public org.w3c.dom.Document writeXsltStyleSheetType(XsltStyleSheetType javaObj)
                                             throws WSNotificationExtensionException
marchall a XsltStyleSheetType object.

Parameters:
notifyObj - XsltStyleSheetType Java object to marshall
Returns:
Document representation of the XsltStyleSheetType Java type
Throws:
WSNotificationExtensionException

writeProcessPolicyType

public org.w3c.dom.Document writeProcessPolicyType(ProcessPolicyType javaObj)
                                            throws WSNotificationExtensionException
marchall a ProcessPolicyType object.

Parameters:
notifyObj - ProcessPolicyType Java object to marshall
Returns:
Document representation of the ProcessPolicyType Java type
Throws:
WSNotificationExtensionException

writeContextPolicyType

public org.w3c.dom.Document writeContextPolicyType(ContextPolicyType javaObj)
                                            throws WSNotificationExtensionException
marchall a ContextPolicyType object.

Parameters:
notifyObj - ContextPolicyType Java object to marshall
Returns:
Document representation of the ContextPolicyType Java type
Throws:
WSNotificationExtensionException

writeTerminationTimeType

public org.w3c.dom.Document writeTerminationTimeType(TerminationTimeType javaObj)
                                              throws WSNotificationExtensionException
marchall a TerminationTimeType object.

Parameters:
notifyObj - TerminationTimeType Java object to marshall
Returns:
Document representation of the TerminationTimeType Java type
Throws:
WSNotificationExtensionException


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