Class MultiMapper

  • All Implemented Interfaces:
    IMappingFormat

    @AutoService(IMappingFormat.class)
    public class MultiMapper
    extends java.lang.Object
    implements IMappingFormat
    Special mapper type that actually resolves to an ordered sequence of mappers applied one after the other.
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean claim​(java.util.List<java.lang.String> lines)
      Checks whether this mapper can process the given lines.
      Mapper getMapper​(java.util.List<java.lang.String> lines, boolean ignoreErrors)
      Creates a Mapper given the lines, ignoring errors depending on the given flag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiMapper

        public MultiMapper()
    • Method Detail

      • claim

        public boolean claim​(java.util.List<java.lang.String> lines)
        Description copied from interface: IMappingFormat
        Checks whether this mapper can process the given lines.
        Specified by:
        claim in interface IMappingFormat
        Parameters:
        lines - the lines to read
        Returns:
        whether this type of mapper can process these lines