public abstract class PostProcessor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
method_name
A method with this name must be provided by all post processing classes.
|
Constructor and Description |
---|
PostProcessor() |
Modifier and Type | Method and Description |
---|---|
abstract ResultingStructure |
process(ResultingStructure input) |
static Integer |
read_int(ResultingStructure udom,
String tag)
Auxiliary function to read the given tag content as an integer value.
|
static Long |
read_long(ResultingStructure udom,
String tag)
Auxiliary function to read the given tag content as a "long"
floating point value.
|
static String |
read_string(ResultingStructure udom,
String tag)
Auxiliary function to read the current string content of a sub-udom
with the given tag, in the given udom.
|
static void |
remove_all(ResultingStructure udom,
Definition tag)
Auxiliary function to remove all resulting structures with the given
tag.
|
public static final String method_name
process(ResultingStructure)
method of a certain
postProc-class is called
for all elements which are declared
with ... postproc <pathToPostProcClass>, ...Post processing is a functional transformation:
ResultingStructure
is passed as an argument, and
the same or a newly created different, (or the same, but modified) is
returned as result.
If null
is returned, then the pre-processed element is
totally dropped from the output.public abstract ResultingStructure process(ResultingStructure input)
public static String read_string(ResultingStructure udom, String tag)
ResultingStructure udom | +---------+------------+ | | | ResultingStructure t1 tag t3 | | | ResultingChars
public static Integer read_int(ResultingStructure udom, String tag)
public static Long read_long(ResultingStructure udom, String tag)
public static void remove_all(ResultingStructure udom, Definition tag)
see also the complete user documentation .