|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.validator.Constant
public class Constant
A constant can be used to define a global or
locale level constant that can be used to replace
values in certain fields. The Field
's
property field, the Var
's value field,
the Msg
's key field, and the Arg
's
key field can all contain constants reference for replacement.
ex: <constant name="zip" value="^\d{5}$" /> mask="${zip}"
Field Summary | |
---|---|
private java.lang.String |
name
Deprecated. The name of the constant. |
private java.lang.String |
value
Deprecated. The name of the constant. |
Constructor Summary | |
---|---|
Constant()
Deprecated. |
Method Summary | |
---|---|
java.lang.String |
getName()
Deprecated. Gets the name of the constant. |
java.lang.String |
getValue()
Deprecated. Gets the value of the constant. |
void |
setName(java.lang.String name)
Deprecated. Sets the name of the constant. |
void |
setValue(java.lang.String value)
Deprecated. Sets the value of the constant. |
java.lang.String |
toString()
Deprecated. Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.lang.String value
Constructor Detail |
---|
public Constant()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- sets the name of the constant.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value of the constant.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |