org.apache.tools.ant.types

Class FilterSetCollection


public class FilterSetCollection
extends java.lang.Object

A FilterSetCollection is a collection of filtersets each of which may have a different start/end token settings.

Constructor Summary

FilterSetCollection()
FilterSetCollection(FilterSet filterSet)

Method Summary

void
addFilterSet(FilterSet filterSet)
boolean
hasFilters()
Test to see if this filter set it empty.
String
replaceTokens(String line)
Does replacement on the given string with token matching.

Constructor Details

FilterSetCollection

public FilterSetCollection()


FilterSetCollection

public FilterSetCollection(FilterSet filterSet)

Method Details

addFilterSet

public void addFilterSet(FilterSet filterSet)


hasFilters

public boolean hasFilters()
Test to see if this filter set it empty.

Returns:
Return true if there are filter in this set otherwise false.


replaceTokens

public String replaceTokens(String line)
Does replacement on the given string with token matching. This uses the defined begintoken and endtoken values which default to @ for both.

Parameters:
line - The line to process the tokens in.

Returns:
The string with the tokens replaced.


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.