|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectavignon.handlers.helpers.ParameterString
Helper class for replacing parts of a string.
| Constructor Summary | |
ParameterString(java.lang.String value)
Creates a parameter string that replaces null actual parameters with the empty string. |
|
ParameterString(java.lang.String value,
java.lang.String nullReplacement)
Creates a parameter string that replaces null actal parameters with the given value. |
|
| Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object other)
Standard equals method. |
void |
replaceFormalParameter(java.lang.String formalParameter,
java.lang.Object actualParameter)
Replaces all occurrences of the text of the formal parameter with the text of the actual parameter with the ParameterString. |
java.lang.String |
toString()
Returns a string representation of the parameter string as modified by any calls to replaceFormalParameters. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ParameterString(java.lang.String value)
value - Source string in which to replace parameters.
public ParameterString(java.lang.String value,
java.lang.String nullReplacement)
value - Source string in which to replace parameters.nullReplacement - Value to use when a null actual parameter is encountered.| Method Detail |
public void replaceFormalParameter(java.lang.String formalParameter,
java.lang.Object actualParameter)
formalParameter - actualParameter - public java.lang.String toString()
public boolean equals(java.lang.Object other)
other - The value to be compared.
public java.lang.Object clone()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||