@AutoService(value=IMappingFormat.class) public class SRGMapper extends java.lang.Object implements IMappingFormat
IMappingFormat capable of parsing SRG mappings.| Constructor and Description |
|---|
SRGMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected Mapper |
buildMapper(java.util.List<java.lang.String> lines,
boolean ignoreErrors,
boolean inverted)
Builds the two mappers, and returns one of the two depending on the flag.
|
boolean |
claim(java.util.List<java.lang.String> lines)
Checks whether this mapper can process the given lines.
|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprioritypublic boolean claim(java.util.List<java.lang.String> lines)
IMappingFormatclaim in interface IMappingFormatlines - the lines to readprotected Mapper buildMapper(java.util.List<java.lang.String> lines, boolean ignoreErrors, boolean inverted) throws MalformedMappingsException
lines - the lines to readignoreErrors - try to ignore errors and keep goinginverted - whether it should return the inverted oneMapper, inverted depending on the flagMalformedMappingsException - if an error is encountered and ignoreErrors is falsepublic Mapper getMapper(java.util.List<java.lang.String> lines, boolean ignoreErrors) throws MalformedMappingsException
IMappingFormatMapper given the lines, ignoring errors depending on the given flag.getMapper in interface IMappingFormatlines - the lines to readignoreErrors - try to ignore errors and keep goingMapperMalformedMappingsException - if an error is encountered and ignoreErrors is falsepublic Mapper getInvertedMapper(java.util.List<java.lang.String> lines, boolean ignoreErrors)
IMappingFormatMapper given the lines, ignoring errors depending on the given flag, and
returns its inverted form.getInvertedMapper in interface IMappingFormatlines - the lines to readignoreErrors - try to ignore errors and keep goingMapper