org.vraptor.i18n
Class Message

java.lang.Object
  extended by org.vraptor.i18n.Message
All Implemented Interfaces:
ValidationMessage

public class Message
extends Object
implements ValidationMessage

A i18n message.

Author:
Guilherme Silveira

Constructor Summary
Message(String category, String message, String... parameters)
           
 
Method Summary
 String getCategory()
           
 String getKey()
          Returns the message to be found
 String[] getParameters()
           
 String getPath()
          Returns this validation message path.
 boolean isAlreadyLocalized()
          Whether it has already been localized or not.
 void setPath(String path)
          Sets this message path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(String category,
               String message,
               String... parameters)
Method Detail

getPath

public String getPath()
Description copied from interface: ValidationMessage
Returns this validation message path.

Specified by:
getPath in interface ValidationMessage
Returns:
the path

setPath

public void setPath(String path)
Description copied from interface: ValidationMessage
Sets this message path.

Specified by:
setPath in interface ValidationMessage
Parameters:
path - its path

getKey

public String getKey()
Returns the message to be found

Returns:
the message

getParameters

public String[] getParameters()

getCategory

public String getCategory()
Specified by:
getCategory in interface ValidationMessage
See Also:
ValidationMessage.getCategory()

isAlreadyLocalized

public boolean isAlreadyLocalized()
Description copied from interface: ValidationMessage
Whether it has already been localized or not.

Specified by:
isAlreadyLocalized in interface ValidationMessage
Returns:
true if already localized.


Copyright © 2004-2008 VRaptor. All Rights Reserved.