You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2005/01/24 11:26:44 UTC
cvs commit: ant/src/main/org/apache/tools/ant/types/selectors SizeSelector.java
peterreilly 2005/01/24 02:26:44
Modified: src/main/org/apache/tools/ant/types/selectors
SizeSelector.java
Log:
javadoc
Revision Changes Path
1.13 +12 -9 ant/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java
Index: SizeSelector.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/selectors/SizeSelector.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- SizeSelector.java 12 Nov 2004 15:17:03 -0000 1.12
+++ SizeSelector.java 24 Jan 2005 10:26:44 -0000 1.13
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2004 The Apache Software Foundation
+ * Copyright 2002-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -48,6 +48,9 @@
}
/**
+ * Returns a <code>String</code> object representing the specified
+ * SizeSelector. This is "{sizeselector value: " + <"compare",
+ * "less", "more", "equal"> + "}".
* @return a string describing this object
*/
public String toString() {
@@ -70,7 +73,7 @@
* This will be further modified by the multiplier to get an
* actual size limit.
*
- * @param size the size to select against expressed in units
+ * @param size the size to select against expressed in units.
*/
public void setValue(long size) {
this.size = size;
@@ -103,7 +106,7 @@
* multiplier.
*
* @param units The units to compare the size to, using an
- * EnumeratedAttribute
+ * EnumeratedAttribute.
*/
public void setUnits(ByteUnits units) {
int i = units.getIndex();
@@ -135,7 +138,7 @@
* when the file matches a particular size, when it is smaller,
* or whether it is larger.
*
- * @param cmp The comparison to perform, an EnumeratedAttribute
+ * @param scmp The comparison to perform, an EnumeratedAttribute.
*/
public void setWhen(SizeComparisons scmp) {
this.cmp = scmp.getIndex();
@@ -145,7 +148,7 @@
* When using this as a custom selector, this method will be called.
* It translates each parameter into the appropriate setXXX() call.
*
- * @param parameters the complete set of parameters for this selector
+ * @param parameters the complete set of parameters for this selector.
*/
public void setParameters(Parameter[] parameters) {
super.setParameters(parameters);
@@ -199,10 +202,10 @@
* The heart of the matter. This is where the selector gets to decide
* on the inclusion of a file in a particular fileset.
*
- * @param basedir A java.io.File object for the base directory
- * @param filename The name of the file to check
- * @param file A File object for this filename
- * @return whether the file should be selected or not
+ * @param basedir A java.io.File object for the base directory.
+ * @param filename The name of the file to check.
+ * @param file A File object for this filename.
+ * @return whether the file should be selected or not.
*/
public boolean isSelected(File basedir, String filename, File file) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org