Package org.apache.tools.ant.taskdefs
Class Replace.Replacefilter
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.Replace.Replacefilter
 
- 
- Enclosing class:
- Replace
 
 public class Replace.Replacefilter extends java.lang.ObjectA filter to apply.
- 
- 
Constructor SummaryConstructors Constructor Description Replacefilter()
 - 
Method SummaryModifier and Type Method Description Replace.NestedStringcreateReplaceToken()Create a token to filter as the text of a nested element.Replace.NestedStringcreateReplaceValue()Create a string to replace the token as the text of a nested element.java.lang.StringgetProperty()Get the name of the property whose value is to serve as the replacement value.java.lang.StringgetReplaceValue()Get the replacement value for this filter token.java.lang.StringgetToken()Get the string to search for.java.lang.StringgetValue()Get replacementString.voidsetProperty(java.lang.String property)Set the name of the property whose value is to serve as the replacement value; required ifvalueis not set.voidsetToken(java.lang.String t)Set the token to replace.voidsetValue(java.lang.String value)The replacement string; required ifpropertyis not set.voidvalidate()Validate the filter's configuration.
 
- 
- 
- 
Method Detail- 
validatepublic void validate() throws BuildExceptionValidate the filter's configuration.- Throws:
- BuildException- if any part is invalid.
 
 - 
getReplaceValuepublic java.lang.String getReplaceValue() Get the replacement value for this filter token.- Returns:
- the replacement value
 
 - 
setTokenpublic void setToken(java.lang.String t) Set the token to replace.- Parameters:
- t-- Stringtoken.
 
 - 
getTokenpublic java.lang.String getToken() Get the string to search for.- Returns:
- current Stringtoken.
 
 - 
setValuepublic void setValue(java.lang.String value) The replacement string; required ifpropertyis not set.- Parameters:
- value-- Stringvalue to replace.
 
 - 
getValuepublic java.lang.String getValue() Get replacementString.- Returns:
- replacement or null.
 
 - 
setPropertypublic void setProperty(java.lang.String property) Set the name of the property whose value is to serve as the replacement value; required ifvalueis not set.- Parameters:
- property- property name.
 
 - 
getPropertypublic java.lang.String getProperty() Get the name of the property whose value is to serve as the replacement value.- Returns:
- property or null.
 
 - 
createReplaceTokenpublic Replace.NestedString createReplaceToken() Create a token to filter as the text of a nested element.- Returns:
- nested token NestedStringto configure.
- Since:
- Ant 1.8.0
 
 - 
createReplaceValuepublic Replace.NestedString createReplaceValue() Create a string to replace the token as the text of a nested element.- Returns:
- replacement value NestedStringto configure.
- Since:
- Ant 1.8.0
 
 
- 
 
-