org.ow2.jonas.ant.jonasbase
Class Replace.Replacefilter

java.lang.Object
  extended by org.ow2.jonas.ant.jonasbase.Replace.Replacefilter
Enclosing class:
Replace

public class Replace.Replacefilter
extends Object

A filter to apply.


Constructor Summary
Replace.Replacefilter()
           
 
Method Summary
 String getProperty()
          Get the name of the property whose value is to serve as the replacement value;
 String getReplaceValue()
          Get the replacement value for this filter token.
 String getToken()
          Get the string to search for
 String getValue()
          Get replacements string
 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.
 void setToken(String token)
          Set the token to replace
 void setValue(String value)
          The replacement string; required if property is not set
 void validate()
          validate the filter's configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Replace.Replacefilter

public Replace.Replacefilter()
Method Detail

validate

public void validate()
              throws org.apache.tools.ant.BuildException
validate the filter's configuration

Throws:
org.apache.tools.ant.BuildException - if any part is invalid

getReplaceValue

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

Returns:
the replacement value

setToken

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

Parameters:
token - token

getToken

public String getToken()
Get the string to search for

Returns:
current token

setValue

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

Parameters:
value - value to replace

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

getProperty

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

Returns:
property or null


Copyright © 2010 OW2 Consortium. All Rights Reserved.