org.apache.tools.ant.taskdefs

Class Replace.Replacefilter

public class Replace.Replacefilter extends Object

A filter to apply.
Method Summary
StringgetProperty()
Get the name of the property whose value is to serve as the replacement value;
StringgetReplaceValue()
Get the replacement value for this filter token.
StringgetToken()
Get the string to search for
StringgetValue()
Get replacements string
voidsetProperty(String property)
Set the name of the property whose value is to serve as the replacement value; required if value is not set.
voidsetToken(String token)
Set the token to replace
voidsetValue(String value)
The replacement string; required if property is not set
voidvalidate()
validate the filter's configuration

Method Detail

getProperty

public String getProperty()
Get the name of the property whose value is to serve as the replacement value;

Returns: property or null

getReplaceValue

public String getReplaceValue()
Get the replacement value for this filter token.

Returns: the replacement value

getToken

public String getToken()
Get the string to search for

Returns: current token

getValue

public String getValue()
Get replacements string

Returns: replacement or null

setProperty

public void setProperty(String property)
Set the name of the property whose value is to serve as the replacement value; required if value is not set.

Parameters: property propname

setToken

public void setToken(String token)
Set the token to replace

Parameters: token token

setValue

public void setValue(String value)
The replacement string; required if property is not set

Parameters: value value to replace

validate

public void validate()
validate the filter's configuration

Throws: BuildException if any part is invalid

Copyright