|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.validator.Arg
An default argument or an argument for a
specific validator definition (ex: required)
can be stored to pass into a message as
as parameters. This can be used in a
pluggable validator for constructing locale
sensitive messages by using java.text.MessageFormat
or an equivalent class. The resource field can be
used to determine if the value stored in the argument
is a value to be retrieved from a locale sensitive
message retrieval system like java.util.PropertyResourceBundle
.
The resource field defaults to 'true'.
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). |
protected boolean |
resource
Whether or not the key is a message resource (optional). |
Constructor Summary | |
---|---|
Arg()
|
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. |
boolean |
getResource()
Gets whether or not the key is a resource. |
void |
setKey(java.lang.String key)
Sets the key/value. |
void |
setName(java.lang.String name)
Sets the name of the dependency. |
void |
setResource(boolean resource)
Sets whether or not the key is a resource. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
|
Field Detail |
protected java.lang.String name
protected java.lang.String key
protected boolean resource
Constructor Detail |
public Arg()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getKey()
public void setKey(java.lang.String key)
public boolean getResource()
public void setResource(boolean resource)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |