example
Class BobAppender

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

@Spi
public class BobAppender
extends Object
implements StringProcessor


Constructor Summary
BobAppender()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BobAppender

public BobAppender()
Method Detail

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.