|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.fge.jsonschema.core.processing.RawProcessor<IN,OUT>
IN - type of inputOUT - type of outputpublic abstract class RawProcessor<IN,OUT>
Processor wrapper class
This class allows to declare a Processor with "raw" types, that
is inputs and outputs which do not implement MessageProvider. Inputs
and outputs are automatically wrapped into a ValueHolder.
Implementations of this class are only required to provide a name by which the input and output will be identified in a processing message.
| Constructor Summary | |
|---|---|
protected |
RawProcessor(String inputName,
String outputName)
Protected constructor |
| Method Summary | |
|---|---|
protected ProcessingMessage |
newMessage(IN rawInput)
Create a new processing message for reporting purposes |
ValueHolder<OUT> |
process(ProcessingReport report,
ValueHolder<IN> input)
Process the input |
protected abstract OUT |
rawProcess(ProcessingReport report,
IN input)
Process a raw input, return a raw output |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RawProcessor(String inputName,
String outputName)
inputName - name of the inputoutputName - name of the output| Method Detail |
|---|
protected abstract OUT rawProcess(ProcessingReport report,
IN input)
throws ProcessingException
report - the report to useinput - the raw input
ProcessingException - processing failurenewMessage(Object)
public final ValueHolder<OUT> process(ProcessingReport report,
ValueHolder<IN> input)
throws ProcessingException
Processor
process in interface Processor<ValueHolder<IN>,ValueHolder<OUT>>report - the report to use while processinginput - the input for this processor
ProcessingException - processing failedprotected final ProcessingMessage newMessage(IN rawInput)
rawInput - the raw input
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||