public interface LayoutProcessor
Modifier and Type | Method and Description |
---|---|
String |
format(Map<String,Object> data)
Format the data to its string format so it can be written out.
|
String |
format(Object obj)
Format the data to its string format so it can be written out.
|
Map<String,Object> |
parse(Reader registry)
Read data from the reader formatting it according to the layout.
|
<T> T |
parse(Reader registry,
T obj)
Read data from the reader formatting it according to the layout,
and return the appropriate object populated.
|
void |
setLayout(LayoutTO layout)
Allow configure the processor with a layout.
|
void |
validate(LayoutTO layout)
Allow the processor to validate the layout item according to its own
specific rules.
|
String format(Map<String,Object> data) throws LayoutException
data
- The data to be formated.LayoutException
Map<String,Object> parse(Reader registry) throws LayoutException
registry
- The source of the data to be read and parsed.LayoutException
IOException
<T> T parse(Reader registry, T obj) throws LayoutException
registry
- The data source.obj
- The object to be populated.LayoutException
String format(Object obj) throws LayoutException
obj
- The object to be written.LayoutException
void setLayout(LayoutTO layout)
layout
- The layout to be used with the processor.void validate(LayoutTO layout) throws LayoutException
layout
- LayoutException
Copyright © 2014. All Rights Reserved.