package org.apache.struts.action;

import java.io.Serializable;

public class ActionMessage implements Serializable {
  protected String key;
  
  protected Object[] values;
  
  public ActionMessage(String key) {
    this.key = null;
    this.values = null;
    this.key = key;
    this.values = null;
  }
  
  public ActionMessage(String key, Object value0) {
    this.key = null;
    this.values = null;
    this.key = key;
    this.values = new Object[] { value0 };
  }
  
  public ActionMessage(String key, Object value0, Object value1) {
    this.key = null;
    this.values = null;
    this.key = key;
    this.values = new Object[] { value0, value1 };
  }
  
  public ActionMessage(String key, Object value0, Object value1, Object value2) {
    this.key = null;
    this.values = null;
    this.key = key;
    this.values = new Object[] { value0, value1, value2 };
  }
  
  public ActionMessage(String key, Object value0, Object value1, Object value2, Object value3) {
    this.key = null;
    this.values = null;
    this.key = key;
    this.values = new Object[] { value0, value1, value2, value3 };
  }
  
  public ActionMessage(String key, Object[] values) {
    this.key = null;
    this.values = null;
    this.key = key;
    this.values = values;
  }
  
  public String getKey() {
    return this.key;
  }
  
  public Object[] getValues() {
    return this.values;
  }
}
