com.ebmwebsourcing.wsstar.addressing.datatypes.impl.impl
Class WsaWriterImpl

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.addressing.datatypes.impl.impl.WsaWriterImpl
All Implemented Interfaces:
com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.WsaWriter

public class WsaWriterImpl
extends java.lang.Object
implements com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.WsaWriter

This class provides a collection of methods that enable conversion of a "WS-Addressing java type" object into a Document object. This conversion uses JAXB "marshalling" mechanism

Author:
Thierry DEJEAN - eBM WebSourcing

Constructor Summary
protected WsaWriterImpl()
          Default constructor
protected WsaWriterImpl(java.lang.String[] nsAndPrefixForMarshalling)
           
 
Method Summary
 org.w3c.dom.Document writeEndpointReferenceTypeAsDOM(com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.EndpointReferenceType endpoint)
          marshall to DOM Document
 java.lang.String writeEndpointReferenceTypeAsString(com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.EndpointReferenceType endpoint)
          Write the specified SchemaImpl definition .
 void writeEndpointReferenceTypeToFilesystem(com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.EndpointReferenceType endpoint, java.lang.String path)
          Write a given EndpointReferenceType instance to a file on the file system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsaWriterImpl

protected WsaWriterImpl()
Default constructor


WsaWriterImpl

protected WsaWriterImpl(java.lang.String[] nsAndPrefixForMarshalling)
Method Detail

writeEndpointReferenceTypeAsDOM

public final org.w3c.dom.Document writeEndpointReferenceTypeAsDOM(com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.EndpointReferenceType endpoint)
                                                           throws com.ebmwebsourcing.wsstar.addressing.datatypes.api.utils.WsaException
marshall to DOM Document

Specified by:
writeEndpointReferenceTypeAsDOM in interface com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.WsaWriter
Parameters:
def - the edp to marshall
Returns:
A Document representation of specified EndpointReferenceType object
Throws:
com.ebmwebsourcing.wsstar.addressing.datatypes.api.utils.WsaException

writeEndpointReferenceTypeAsString

public final java.lang.String writeEndpointReferenceTypeAsString(com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.EndpointReferenceType endpoint)
                                                          throws com.ebmwebsourcing.wsstar.addressing.datatypes.api.utils.WsaException
Write the specified SchemaImpl definition .

Specified by:
writeEndpointReferenceTypeAsString in interface com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.WsaWriter
Parameters:
wsdlDef - the SchemaImpl definition to be written.
Throws:
com.ebmwebsourcing.wsstar.addressing.datatypes.api.utils.WsaException

writeEndpointReferenceTypeToFilesystem

public final void writeEndpointReferenceTypeToFilesystem(com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.EndpointReferenceType endpoint,
                                                         java.lang.String path)
                                                  throws com.ebmwebsourcing.wsstar.addressing.datatypes.api.utils.WsaException
Write a given EndpointReferenceType instance to a file on the file system

Specified by:
writeEndpointReferenceTypeToFilesystem in interface com.ebmwebsourcing.wsstar.addressing.datatypes.api.abstraction.WsaWriter
Parameters:
edpRef - the EndpointReferenceType java object to write on the file system
filename - the file (as File Java object) which the EndpointReferenceType instance must be written to
Throws:
com.ebmwebsourcing.wsstar.addressing.datatypes.api.utils.WsaException


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