org.apache.commons.validator
public class Msg extends Object implements Cloneable, Serializable
Field
and a pluggable validator instead of using the default message
stored in the ValidatorAction
(aka pluggable validator).
Instances of this class are configured with a <msg> xml element.
Version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $
Field Summary | |
---|---|
protected String | bundle
The resource bundle name that this Msg's key should be
resolved in (optional). |
protected String | key
The key or value of the argument. |
protected String | name
The name dependency that this argument goes with (optional). |
protected boolean | resource
Whether or not the key is a message resource (optional). |
Method Summary | |
---|---|
Object | clone()
Creates and returns a copy of this object. |
String | getBundle()
Returns the resource bundle name. |
String | getKey()
Gets the key/value. |
String | getName()
Gets the name of the dependency. |
boolean | isResource()
Tests whether or not the key is a resource key or literal value. |
void | setBundle(String bundle)
Sets the resource bundle name. |
void | setKey(String key)
Sets the key/value. |
void | setName(String name)
Sets the name of the dependency. |
void | setResource(boolean resource)
Sets whether or not the key is a resource. |
String | toString()
Returns a string representation of the object. |
key
should be
resolved in (optional).Since: Validator 1.1
Since: Validator 1.1.4
Returns: A copy of the Msg.
Returns: The bundle name.
Since: Validator 1.1
Returns: The message key/value.
Returns: The dependency name.
Returns: true
if key is a resource key.
Since: Validator 1.1.4
Parameters: bundle The new bundle name.
Since: Validator 1.1
Parameters: key The message key/value.
Parameters: name The dependency name.
Parameters: resource If true indicates the key is a resource.
Since: Validator 1.1.4
Returns: Msg String representation.