
package de.ivu.elect.presentation.exchange.table;

import de.ivu.elect.jee.exchange.AbstractViolation;
import de.ivu.elect.jee.faces.Messages;
import de.ivu.elect.jee.presentation.dynamictable.ColumnType;
import de.ivu.elect.presentation.table.AbstractColumnEntry;

public class ViolationMessageColumn extends AbstractColumnEntry<AbstractViolation> {

  private static final long serialVersionUID = 1L;

  public ViolationMessageColumn(Messages messages) {
    super(messages);
  }

  @Override
  public ColumnType getType() {
    return ColumnType.STRING;
  }

  @Override
  public String getHeader() {
    return getMessage("datei.import.import.violations.attribut.message");
  }

  @Override
  public Object getValue(AbstractViolation entity) {
    return entity.getMessage(getMessages());
  }
}
