KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > webdav > ant > taskdefs > WebdavMatchingTask


1 /*
2  * $Header: /home/cvs/jakarta-slide/webdavclient/ant/src/java/org/apache/webdav/ant/taskdefs/WebdavMatchingTask.java,v 1.3 2004/07/28 09:31:47 ib Exp $
3  * $Revision: 1.3 $
4  * $Date: 2004/07/28 09:31:47 $
5  * ========================================================================
6  * Copyright 2004 The Apache Software Foundation
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ========================================================================
20  */

21 package org.apache.webdav.ant.taskdefs;
22
23 import java.util.ArrayList JavaDoc;
24 import java.util.Iterator JavaDoc;
25 import java.util.List JavaDoc;
26
27 import org.apache.webdav.ant.WebdavFileSet;
28
29 /**
30  * Baseclass of all WebDAV tasks that work on sets of WebDAV resources.
31  *
32  * <p>Provides nested {@link org.apache.webdav.ant.WebdavFileSet}s.
33  *
34  */

35 public abstract class WebdavMatchingTask extends WebdavTask {
36
37    protected List JavaDoc filesets = new ArrayList JavaDoc();
38
39    public void addDavfileset(WebdavFileSet set) {
40       filesets.add(set);
41    }
42    protected Iterator JavaDoc getFileSets() {
43       return this.filesets.iterator();
44    }
45 }
46
Popular Tags