
package de.ivu.elect.jee.presentation.dynamicform;

import java.io.Serializable;

public class MaschinenlesbarerBereichMapperResolver implements Serializable {

  private static final long serialVersionUID = 1L;

  public static final MaschinenlesbarerBereichMapper NO_OP_MAPPER = new AbstractMaschinenlesbarerBereichMapper() {

    private static final long serialVersionUID = 1L;

    @Override
    public boolean matchesFormat(String input) {
      return false;
    }

    @Override
    public String getFormatSeparator() {
      return FORMAT_VALUE_UNDEFINED;
    }

    @Override
    public String getFormatPrefix() {
      return FORMAT_VALUE_UNDEFINED;
    }

    @Override
    public String getFormatSuffix() {
      return FORMAT_VALUE_UNDEFINED;
    }

    @Override
    public String getDisplayFormat() {
      return "";
    }

    @Override
    public void map(Object target, String input) {
      // Do nothing.
    }
  };

  public MaschinenlesbarerBereichMapperResolver() {
    super();
  }

  public MaschinenlesbarerBereichMapper getMapper() {
    return NO_OP_MAPPER;
  }
}
