public interface IMappingFormat
Modifier and Type | Method and Description |
---|---|
boolean |
claim(java.util.List<java.lang.String> lines)
Checks whether this mapper can process the given lines.
|
default Mapper |
getInvertedMapper(java.util.List<java.lang.String> lines,
boolean ignoreErrors)
Creates a
Mapper given the lines, ignoring errors depending on the given flag, and
returns its inverted form. |
Mapper |
getMapper(java.util.List<java.lang.String> lines,
boolean ignoreErrors)
Creates a
Mapper given the lines, ignoring errors depending on the given flag. |
default int |
priority()
Defines a priority for this implementation: the higher the number,
the higher the priority.
|
boolean claim(java.util.List<java.lang.String> lines)
lines
- the lines to readdefault int priority()
claim
a given mapping file.Mapper getMapper(java.util.List<java.lang.String> lines, boolean ignoreErrors) throws MalformedMappingsException
Mapper
given the lines, ignoring errors depending on the given flag.lines
- the lines to readignoreErrors
- try to ignore errors and keep goingMapper
MalformedMappingsException
- if an error is encountered and ignoreErrors is falsedefault Mapper getInvertedMapper(java.util.List<java.lang.String> lines, boolean ignoreErrors) throws MalformedMappingsException
Mapper
given the lines, ignoring errors depending on the given flag, and
returns its inverted form.lines
- the lines to readignoreErrors
- try to ignore errors and keep goingMapper
MalformedMappingsException
- if an error is encountered and ignoreErrors is false