org.wsmo.wsml
Interface Serializer


public interface Serializer

Version:
$Revision: 1.4 $ $Date: 2005/07/22 12:29:33 $
Author:
not attributable

Field Summary
static java.lang.String SERIALIZER_LE_SERIALIZER
           
 
Method Summary
 void serialize(TopEntity[] item, java.lang.StringBuffer target)
          serializes Ontology, Goal, Mediator or a Webservice
 void serialize(TopEntity[] item, java.lang.StringBuffer target, java.util.Map options)
          serializes Ontology, Goal, Mediator or a Webservice
 void serialize(TopEntity[] item, java.io.Writer target)
          serializes Ontology, Goal, Mediator or a Webservice
 void serialize(TopEntity[] item, java.io.Writer target, java.util.Map options)
          serializes Ontology, Goal, Mediator or a Webservice
 

Field Detail

SERIALIZER_LE_SERIALIZER

static final java.lang.String SERIALIZER_LE_SERIALIZER
See Also:
Constant Field Values
Method Detail

serialize

void serialize(TopEntity[] item,
               java.io.Writer target)
               throws java.io.IOException
serializes Ontology, Goal, Mediator or a Webservice

Parameters:
item - A top level WSMO item to serialize Note that since the parser expects an open stream it will not attempt to close the stream after writing to it. E.g. it is the responsibility of the user to open/close the stream.
target - The writer to write to
Throws:
java.io.IOException

serialize

void serialize(TopEntity[] item,
               java.io.Writer target,
               java.util.Map options)
               throws java.io.IOException
serializes Ontology, Goal, Mediator or a Webservice

Parameters:
item - A top level WSMO item to serialize Note that since the parser expects an open stream it will not attempt to close the stream after writing to it. E.g. it is the responsibility of the user to open/close the stream.
target - The writer to write to
options - an optional Map with user supplied options specific to this serialisation
Throws:
java.io.IOException

serialize

void serialize(TopEntity[] item,
               java.lang.StringBuffer target)
serializes Ontology, Goal, Mediator or a Webservice

Parameters:
item - A top level WSMO item to serialize in the same string buffer
target - The buffer to write to

serialize

void serialize(TopEntity[] item,
               java.lang.StringBuffer target,
               java.util.Map options)
serializes Ontology, Goal, Mediator or a Webservice

Parameters:
item - A top level WSMO item to serialize in the same string buffer
target - The buffer to write to
options - an optional Map with user supplied options specific to this serialization