Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277951 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
9f2e7800cd
2 changed files with 50 additions and 8 deletions
  1. +13
    -1
      src/main/org/apache/tools/ant/types/FilterSetCollection.java
  2. +37
    -7
      src/main/org/apache/tools/ant/types/Parameter.java

+ 13
- 1
src/main/org/apache/tools/ant/types/FilterSetCollection.java View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2001-2002,2004 The Apache Software Foundation
* Copyright 2001-2002,2004-2005 The Apache Software Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -39,14 +39,26 @@ public class FilterSetCollection {


private Vector filterSets = new Vector(); private Vector filterSets = new Vector();


/**
* Constructor for a FilterSetCollection.
*/
public FilterSetCollection() { public FilterSetCollection() {
} }


/**
* Constructor for a FilterSetCollection.
* @param filterSet a filterset to start the collection with
*/
public FilterSetCollection(FilterSet filterSet) { public FilterSetCollection(FilterSet filterSet) {
addFilterSet(filterSet); addFilterSet(filterSet);
} }




/**
* Add a filterset to the collection.
*
* @param filterSet a <code>FilterSet</code> value
*/
public void addFilterSet(FilterSet filterSet) { public void addFilterSet(FilterSet filterSet) {
filterSets.addElement(filterSet); filterSets.addElement(filterSet);
} }


+ 37
- 7
src/main/org/apache/tools/ant/types/Parameter.java View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2002,2004 The Apache Software Foundation
* Copyright 2002,2004-2005 The Apache Software Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -25,27 +25,57 @@ public final class Parameter {
private String type = null; private String type = null;
private String value = null; private String value = null;


public final void setName(final String name) {
/**
* Set the name attribute.
*
* @param name a <code>String</code> value
*/
public void setName(final String name) {
this.name = name; this.name = name;
} }


public final void setType(final String type) {
/**
* Set the type attribute.
*
* @param type a <code>String</code> value
*/
public void setType(final String type) {
this.type = type; this.type = type;
} }


public final void setValue(final String value) {
/**
* Set the value attribute.
*
* @param value a <code>String</code> value
*/
public void setValue(final String value) {
this.value = value; this.value = value;
} }


public final String getName() {
/**
* Get the name attribute.
*
* @return a <code>String</code> value
*/
public String getName() {
return name; return name;
} }


public final String getType() {
/**
* Get the type attribute.
*
* @return a <code>String</code> value
*/
public String getType() {
return type; return type;
} }


public final String getValue() {
/**
* Get the value attribute.
*
* @return a <code>String</code> value
*/
public String getValue() {
return value; return value;
} }
} }

Loading…
Cancel
Save