|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.validator.Msg
public class Msg
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).
Instances of this class are configured with a <msg> xml element.
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). |
Constructor Summary | |
---|---|
Msg()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String bundle
key
should be
resolved in (optional).
protected String key
protected String name
protected boolean resource
Constructor Detail |
---|
public Msg()
Method Detail |
---|
public String getBundle()
public void setBundle(String bundle)
bundle
- The new bundle name.public String getName()
public void setName(String name)
name
- The dependency name.public String getKey()
public void setKey(String key)
key
- The message key/value.public boolean isResource()
true
if key is a resource key.public void setResource(boolean resource)
resource
- If true indicates the key is a resource.public Object clone()
clone
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |