diff options
Diffstat (limited to 'java/pablotron/luigi/actions/TextAction.java')
-rw-r--r-- | java/pablotron/luigi/actions/TextAction.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/java/pablotron/luigi/actions/TextAction.java b/java/pablotron/luigi/actions/TextAction.java new file mode 100644 index 0000000..3024f23 --- /dev/null +++ b/java/pablotron/luigi/actions/TextAction.java @@ -0,0 +1,22 @@ +package pablotron.luigi.actions; + +import java.util.Map; +import pablotron.luigi.actions.Action; +import pablotron.luigi.Filter; +import pablotron.luigi.LuigiError; + +public final class TextAction implements Action { + private final String text; + + public TextAction(final String text) { + this.text = text; + } + + public String run( + Map<String, Filter.Handler> filters, + Map<String, String> args + ) throws LuigiError { + return this.text; + } +}; + |