package org.silverpeas.components.scheduleevent.view;

public class AgreeEditableAvailability implements
    AvailableEditableVO {
  private static final AgreeEditableAvailability instance = new AgreeEditableAvailability();

  private AgreeEditableAvailability() {
  }

  @Override
  public String getMarkLabel() {
    return "checked=\"checked\"";
  }

  @Override
  public String getHtmlClassAttribute() {
    return parentInstance().getHtmlClassAttribute();
  }

  @Override
  public void accept(AvailabilityVisitor visitor) {
    parentInstance().accept(visitor);
  }

  private AgreeAvailability parentInstance() {
    return AgreeAvailability.getInstance();
  }

  public static AgreeEditableAvailability getInstance() {
    return instance;
  }

  @Override
  public boolean isEditable() {
    return true;
  }
}