Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277895 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
fc32cd6bca
1 changed files with 33 additions and 9 deletions
  1. +33
    -9
      src/main/org/apache/tools/ant/types/AntFilterReader.java

+ 33
- 9
src/main/org/apache/tools/ant/types/AntFilterReader.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.
@@ -34,22 +34,38 @@ public final class AntFilterReader


private Path classpath; private Path classpath;


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


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


public final void addParam(final Parameter param) { /**
* Add a Parameter.
*
* @param param a <code>Parameter</code> value
*/
public void addParam(final Parameter param) {
parameters.addElement(param); parameters.addElement(param);
} }


/** /**
* Set the classpath to load the FilterReader through (attribute). * Set the classpath to load the FilterReader through (attribute).
* @param classpath a classpath
*/ */
public final void setClasspath(Path classpath) { public void setClasspath(Path classpath) {
if (isReference()) { if (isReference()) {
throw tooManyAttributes(); throw tooManyAttributes();
} }
@@ -62,8 +78,9 @@ public final class AntFilterReader


/** /**
* Set the classpath to load the FilterReader through (nested element). * Set the classpath to load the FilterReader through (nested element).
* @return a classpath to be configured
*/ */
public final Path createClasspath() { public Path createClasspath() {
if (isReference()) { if (isReference()) {
throw noChildrenAllowed(); throw noChildrenAllowed();
} }
@@ -74,15 +91,17 @@ public final class AntFilterReader
} }


/** /**
* Get the classpath * Get the classpath.
* @return the classpath
*/ */
public final Path getClasspath() { public Path getClasspath() {
return classpath; return classpath;
} }


/** /**
* Set the classpath to load the FilterReader through via * Set the classpath to load the FilterReader through via
* reference (attribute). * reference (attribute).
* @param r a reference to a classpath
*/ */
public void setClasspathRef(Reference r) { public void setClasspathRef(Reference r) {
if (isReference()) { if (isReference()) {
@@ -91,7 +110,12 @@ public final class AntFilterReader
createClasspath().setRefid(r); createClasspath().setRefid(r);
} }


public final Parameter[] getParams() { /**
* The parameters for this filter.
*
* @return a <code>Parameter[]</code> value
*/
public Parameter[] getParams() {
Parameter[] params = new Parameter[parameters.size()]; Parameter[] params = new Parameter[parameters.size()];
parameters.copyInto(params); parameters.copyInto(params);
return params; return params;


||||||
x
 
000:0
Loading…
Cancel
Save