| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.types.DataType
              |
              +--org.apache.tools.ant.types.FilterSet
A set of filters to be applied to something. A filter set may have begintoken and endtokens defined.
| Nested Class Summary | |
| static class | FilterSet.FilterIndividual filter component of filterset. | 
|  class | FilterSet.FiltersFileThe filtersfile nested element. | 
| Field Summary | |
| static java.lang.String | DEFAULT_TOKEN_ENDThe default token end string | 
| static java.lang.String | DEFAULT_TOKEN_STARTThe default token start string | 
| Fields inherited from class org.apache.tools.ant.types.DataType | 
| checked, description, ref | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
| project | 
| Constructor Summary | |
|   | FilterSet()Default constructor. | 
| protected  | FilterSet(FilterSet filterset)Create a Filterset from another filterset. | 
| Method Summary | |
|  void | addConfiguredFilterSet(FilterSet filterSet)Add a Filterset to this filter set. | 
|  void | addFilter(FilterSet.Filter filter)Add a new filter. | 
|  void | addFilter(java.lang.String token,
          java.lang.String value)Add a new filter made from the given token and value. | 
|  java.lang.Object | clone()Clone the filterset. | 
|  FilterSet.FiltersFile | createFiltersfile()Create a new FiltersFile. | 
|  java.lang.String | getBeginToken()Get the begin token for this filterset. | 
|  java.lang.String | getEndToken()Get the end token for this filterset. | 
|  java.util.Hashtable | getFilterHash()Gets the filter hash of the FilterSet. | 
| protected  java.util.Vector | getFilters()Get the filters in the filter set. | 
| protected  FilterSet | getRef()Get the referenced filter set. | 
|  boolean | hasFilters()Test to see if this filter set has filters. | 
|  boolean | isRecurse()Get whether recursive token expansion is enabled. | 
|  void | readFiltersFromFile(java.io.File filtersFile)Read the filters from the given file. | 
|  java.lang.String | replaceTokens(java.lang.String line)Does replacement on the given string with token matching. | 
|  void | setBeginToken(java.lang.String startOfToken)Set the string used to id the beginning of a token. | 
|  void | setEndToken(java.lang.String endOfToken)Set the string used to id the end of a token. | 
|  void | setFiltersfile(java.io.File filtersFile)Set the file containing the filters for this filterset. | 
|  void | setRecurse(boolean recurse)Set whether recursive token expansion is enabled. | 
| Methods inherited from class org.apache.tools.ant.types.DataType | 
| checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
| getProject, log, log, setProject | 
| Methods inherited from class java.lang.Object | 
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String DEFAULT_TOKEN_START
public static final java.lang.String DEFAULT_TOKEN_END
| Constructor Detail | 
public FilterSet()
protected FilterSet(FilterSet filterset)
filterset - the filterset upon which this filterset will be based.| Method Detail | 
protected java.util.Vector getFilters()
protected FilterSet getRef()
public java.util.Hashtable getFilterHash()
public void setFiltersfile(java.io.File filtersFile)
                    throws BuildException
filtersFile - sets the filter file from which to read filters
        for this filter set.
BuildException - if there is a problem reading the filters.public void setBeginToken(java.lang.String startOfToken)
startOfToken - The new Begintoken value.public java.lang.String getBeginToken()
public void setEndToken(java.lang.String endOfToken)
endOfToken - The new Endtoken value.public java.lang.String getEndToken()
public void setRecurse(boolean recurse)
recurse - boolean whether to recurse.public boolean isRecurse()
boolean whether enabled.
public void readFiltersFromFile(java.io.File filtersFile)
                         throws BuildException
filtersFile - the file from which filters are read.
BuildException - when the file cannot be read.public java.lang.String replaceTokens(java.lang.String line)
line - The line in which to process embedded tokens.
public void addFilter(FilterSet.Filter filter)
filter - the filter to be added.public FilterSet.FiltersFile createFiltersfile()
public void addFilter(java.lang.String token,
                      java.lang.String value)
token - The token for the new filter.value - The value for the new filter.public void addConfiguredFilterSet(FilterSet filterSet)
filterSet - the filterset to be added to this filtersetpublic boolean hasFilters()
public java.lang.Object clone()
                       throws BuildException
clone in class java.lang.ObjectBuildException - if the clone cannot be performed.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||