uk.ac.ncl.cs.instantsoap.stringprocessor
Interface StringProcessor

All Known Implementing Classes:
BobAppender, EchoingStringProcessor, RDataFrameProcessor, SimpleMath, StringAppender

@Spi
public interface StringProcessor

A processor that transforms a String to a String.

Author:
Cheng-Yang(Louis) Tang, Matthew Pocock

Method Summary
 MetaData describeApplication()
          Describe this string transformation application.
 MetaData getInput()
          Describe the single input.
 MetaData getOutputs()
          Describe the single output.
 String process(String data)
          Process input data.
 void validate(String data)
          Check that the input is valid.
 

Method Detail

process

String process(String data)
               throws JobExecutionException
Process input data.

Parameters:
data - the input String
Returns:
the output String
Throws:
JobExecutionException

validate

void validate(String data)
              throws InvalidJobSpecificationException
Check that the input is valid.

Parameters:
data - the input String
Throws:
InvalidJobSpecificationException

describeApplication

MetaData describeApplication()
Describe this string transformation application.

Returns:
the MetaData describing the application, including its name

getInput

MetaData getInput()
Describe the single input.

Returns:
the MetaData describing the input, including its name

getOutputs

MetaData getOutputs()
Describe the single output.

Returns:
the MetaData describing the output, including its name


Copyright © 2006-2008. All Rights Reserved.