de.cau.cs.kieler.kiml.service.formats
Class TransformationData<S,T>

java.lang.Object
  extended by de.cau.cs.kieler.core.properties.MapPropertyHolder
      extended by de.cau.cs.kieler.kiml.service.formats.TransformationData<S,T>
Type Parameters:
S - source graph type
T - target graph type
All Implemented Interfaces:
IPropertyHolder

public class TransformationData<S,T>
extends MapPropertyHolder

A transformation data object that can be arbitrarily extended using the properties mechanism.

Rating red

Constructor Summary
TransformationData()
           
 
Method Summary
 Iterable<String> getMessages()
          Returns the reported log messages.
 S getSourceGraph()
          Returns the original source graph.
 List<T> getTargetGraphs()
          Returns the transformed target graphs.
 void log(String message)
          Report a log message.
 void setSourceGraph(S thesourceGraph)
          Set the original source graph.
 
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder
checkProperties, copyProperties, getAllProperties, getProperty, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationData

public TransformationData()
Method Detail

setSourceGraph

public void setSourceGraph(S thesourceGraph)
Set the original source graph.

Parameters:
thesourceGraph - the source graph

getSourceGraph

public S getSourceGraph()
Returns the original source graph.

Returns:
the source graph

getTargetGraphs

public List<T> getTargetGraphs()
Returns the transformed target graphs.

Returns:
the target graphs

log

public void log(String message)
Report a log message.

Parameters:
message - a user friendly message

getMessages

public Iterable<String> getMessages()
Returns the reported log messages.

Returns:
the log messages