Package | Description |
---|---|
net.sf.layoutParser.processor |
Package in charge of parsing and formating data.
The main class in this package is the ClassicLayoutProcessor which is the "interface"of this framework with the user. |
Modifier and Type | Class and Description |
---|---|
class |
MalformedInputException
Exceção lançada quando o campo lido pelo layout não conforma com o formato
especificado pela máscara do item.
|
class |
MalformedOutputException
Exceção raíz referente a erros encontrados pela expressão regular definida.
|
Modifier and Type | Method and Description |
---|---|
String |
LayoutProcessor.format(Map<String,Object> data)
Format the data to its string format so it can be written out.
|
String |
CsvLayoutProcessor.format(Map<String,Object> dados) |
String |
ClassicLayoutProcessor.format(Map<String,Object> dados) |
String |
LayoutProcessor.format(Object obj)
Format the data to its string format so it can be written out.
|
String |
CsvLayoutProcessor.format(Object obj) |
String |
ClassicLayoutProcessor.format(Object obj) |
static EntryProcessor<?> |
EntryProcessor.getInstance(EntryTO<?> entry)
Instantiation method that resolves which type of concrete processor should be retrieved.
If the entry passed to the method is a instanceof ItemTO then a ItemProcessor should be retrieved, otherwise a ListProcessor is returned. |
LayoutProcessor |
ProcessorBuilder.getProcessorFor(BaseNameSpaceTO layoutName)
Retrieve the processor and layout for a given layoutName.
|
LayoutProcessor |
ProcessorBuilder.getProcessorFor(BaseNameSpaceTO layoutName,
Class<? extends LayoutProcessor> processorClass)
Retrieve the processor and layout for a given layoutName.
|
LayoutProcessor |
ProcessorBuilder.getProcessorFor(LayoutSelector selector)
Retrieve the processor and layout that matches the selector rule.
|
Map<String,Object> |
LayoutProcessor.parse(Reader registry)
Read data from the reader formatting it according to the layout.
|
Map<String,Object> |
CsvLayoutProcessor.parse(Reader registro) |
Map<String,Object> |
ClassicLayoutProcessor.parse(Reader registro) |
<T> T |
LayoutProcessor.parse(Reader registry,
T obj)
Read data from the reader formatting it according to the layout,
and return the appropriate object populated.
|
<T> T |
CsvLayoutProcessor.parse(Reader registro,
T obj) |
<T> T |
ClassicLayoutProcessor.parse(Reader registro,
T obj) |
void |
LayoutProcessor.validate(LayoutTO layout)
Allow the processor to validate the layout item according to its own
specific rules.
|
void |
CsvLayoutProcessor.validate(LayoutTO layout)
Validate the layout inspecting it for conformity with this rules:
All entries must have an index.
|
void |
ClassicLayoutProcessor.validate(LayoutTO layout)
Validate the layout inspecting it for conformity with this rules:
All entries must have an index.
The indexes must be contiguous.
All items must have a filler.
|
Constructor and Description |
---|
ListProcessor(ListTO<?> entry) |
Copyright © 2014. All Rights Reserved.