de.fzi.kadmos.cmdutils.formatter
Class ConsoleResultFormatter

java.lang.Object
  extended by de.fzi.kadmos.cmdutils.formatter.ConsoleResultFormatter
All Implemented Interfaces:
EvaluatorResultFormatter

public class ConsoleResultFormatter
extends Object
implements EvaluatorResultFormatter

Implementation of EvaluatorResultFormatter Interface that formats evaluator result objects and prints to standard console

Since:
1.0.1
Version:
1.3.0
Author:
Matthias Stumpp

Method Summary
 void format(EvaluatorResult result)
          Initiates the formatting process using an evaluator result object.
 void format(List<EvaluatorResult> results)
          Initiates the formatting process using the a list of evaluator result objects.
static ConsoleResultFormatter getInstance()
          Gets a (new) instance of this formatter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConsoleResultFormatter getInstance()
Gets a (new) instance of this formatter. There can only be one formatter instance.

Returns:
ConsoleResultFormatter instance.
Since:
1.0

format

public void format(EvaluatorResult result)
            throws KADMOSCMDException
Initiates the formatting process using an evaluator result object.

Specified by:
format in interface EvaluatorResultFormatter
Throws:
KADMOSCMDException

format

public void format(List<EvaluatorResult> results)
            throws KADMOSCMDException
Initiates the formatting process using the a list of evaluator result objects.

Specified by:
format in interface EvaluatorResultFormatter
Throws:
KADMOSCMDException


Copyright © 2012. All Rights Reserved.