edu.isi.pegasus.planner.provenance.pasoa
Interface XMLProducer

All Known Implementing Classes:
InMemory

public interface XMLProducer

A PASOA specific interface to generate various assertions as XML.

Version:
$Revision: 2561 $
Author:
Karan Vahi

Method Summary
 void add(String xml)
          Adds an XML fragment to the internal XML store
 void clear()
          Clears the internal state.
 String toXML()
          Returns the interaction assertions as a XML blob.
 void toXML(Writer writer)
          Returns the xml description of the object.
 

Method Detail

clear

void clear()
Clears the internal state.


add

void add(String xml)
Adds an XML fragment to the internal XML store

Parameters:
xml - the XML fragment to be added.

toXML

void toXML(Writer writer)
           throws IOException
Returns the xml description of the object. This is used for generating the partition graph. That is no longer done.

Parameters:
writer - is a Writer opened and ready for writing. This can also be a StringWriter for efficient output.
Throws:
IOException - if something fishy happens to the stream.

toXML

String toXML()
             throws IOException
Returns the interaction assertions as a XML blob.

Returns:
String
Throws:
IOException - if something fishy happens to the stream.


Copyright © 2011 The University of Southern California. All Rights Reserved.