1 package org.apache.slide.projector.processor.core;2 3 import org.apache.slide.projector.ContentType;4 import org.apache.slide.projector.Context;5 import org.apache.slide.projector.descriptor.AnyValueDescriptor;6 import org.apache.slide.projector.descriptor.ParameterDescriptor;7 import org.apache.slide.projector.descriptor.ResultEntryDescriptor;8 import org.apache.slide.projector.i18n.DefaultMessage;9 import org.apache.slide.projector.i18n.ParameterMessage;10 import org.apache.slide.projector.processor.SimpleProcessor;11 import org.apache.slide.projector.value.Value;12 13 public class Echo extends SimpleProcessor {14 public Value process(Value input, Context context) throws Exception {15 return input;16 }17 18 public ParameterDescriptor getParameterDescriptor() {19 return new ParameterDescriptor(INPUT, new ParameterMessage("echo/parameter/input"), new AnyValueDescriptor());20 }21 22 public ResultEntryDescriptor getResultEntryDescriptor() {23 return new ResultEntryDescriptor(OUTPUT, new DefaultMessage("echo/result/output"), ContentType.DYNAMIC, true);24 }25 }