Message.java :  » Web-Framework » vraptor » org » vraptor » i18n » Java Open Source

Java Open Source » Web Framework » vraptor 
vraptor » org » vraptor » i18n » Message.java
package org.vraptor.i18n;

/**
 * A i18n message.
 * 
 * @author Guilherme Silveira
 */
public class Message implements ValidationMessage {

  private String message;

  private String[] parameters;

  private String category;

  private String path;

  public Message(String category, String message, String... parameters) {
    this.message = message;
    this.category = category;
    this.parameters = parameters;
    this.path = category;
  }

  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }

  /**
   * Returns the message to be found
   * 
   * @return the message
   */
  public String getKey() {
    return this.message;
  }

  public String[] getParameters() {
    return parameters;
  }

  /**
   * @see org.vraptor.i18n.ValidationMessage#getCategory()
   */
  public String getCategory() {
    return category;
  }
  
  public boolean isAlreadyLocalized() {
    return false;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.