org.apache.commons.validator
Class Msg

java.lang.Object
  |
  +--org.apache.commons.validator.Msg
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Msg
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

An alternative message can be associated with a Field and a pluggable validator instead of using the default message stored in the ValidatorAction (aka pluggable validator).

Version:
$Revision: 1.4 $ $Date: 2002/03/30 04:33:17 $
Author:
David Winterfeldt
See Also:
Serialized Form

Field Summary
protected  java.lang.String key
          The key or value of the argument.
protected  java.lang.String name
          The name dependency that this argument goes with (optional).
 
Constructor Summary
Msg()
           
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 java.lang.String getKey()
          Gets the key/value.
 java.lang.String getName()
          Gets the name of the dependency.
 void setKey(java.lang.String key)
          Sets the key/value.
 void setName(java.lang.String name)
          Sets the name of the dependency.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name dependency that this argument goes with (optional).

key

protected java.lang.String key
The key or value of the argument.
Constructor Detail

Msg

public Msg()
Method Detail

getName

public java.lang.String getName()
Gets the name of the dependency.

setName

public void setName(java.lang.String name)
Sets the name of the dependency.

getKey

public java.lang.String getKey()
Gets the key/value.

setKey

public void setKey(java.lang.String key)
Sets the key/value.

clone

public java.lang.Object clone()
Creates and returns a copy of this object.
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class java.lang.Object


Copyright (c) 2001-2002 - Apache Software Foundation