example
Class StringAppender

java.lang.Object
  extended by example.StringAppender
All Implemented Interfaces:
StringProcessor

public class StringAppender
extends Object
implements StringProcessor


Constructor Summary
StringAppender()
           
 
Method Summary
 MetaData describeApplication()
          Describe this string transformation application.
 MetaData getInput()
          Describe the single input.
 MetaData getOutputs()
          Describe the single output.
 String getSuffix()
           
 String process(String data)
          Process input data.
 void setSuffix(String suffix)
           
 void validate(String data)
          Check that the input is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringAppender

public StringAppender()
Method Detail

getSuffix

public String getSuffix()

setSuffix

public void setSuffix(String suffix)

describeApplication

public MetaData describeApplication()
Description copied from interface: StringProcessor
Describe this string transformation application.

Specified by:
describeApplication in interface StringProcessor
Returns:
the MetaData describing the application, including its name

getInput

public MetaData getInput()
Description copied from interface: StringProcessor
Describe the single input.

Specified by:
getInput in interface StringProcessor
Returns:
the MetaData describing the input, including its name

getOutputs

public MetaData getOutputs()
Description copied from interface: StringProcessor
Describe the single output.

Specified by:
getOutputs in interface StringProcessor
Returns:
the MetaData describing the output, including its name

validate

public void validate(String data)
              throws InvalidJobSpecificationException
Description copied from interface: StringProcessor
Check that the input is valid.

Specified by:
validate in interface StringProcessor
Parameters:
data - the input String
Throws:
InvalidJobSpecificationException

process

public String process(String data)
               throws JobExecutionException
Description copied from interface: StringProcessor
Process input data.

Specified by:
process in interface StringProcessor
Parameters:
data - the input String
Returns:
the output String
Throws:
JobExecutionException


Copyright © 2006-2008. All Rights Reserved.