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 ViolationLevelColorColumn extends AbstractColumnEntry<AbstractViolation> {

  protected ViolationLevelColorColumn(Messages messages) {
    super(messages);
  }

  @Override
  public Object getValue(AbstractViolation abstractViolation) {
    return abstractViolation.getViolationLevel().getOutputSeverity().getColor();
  }

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

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