KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > lenya > cms > ant > TwoDocumentsOperationTask


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17
18 /* $Id: TwoDocumentsOperationTask.java 42616 2004-03-03 12:56:33Z gregor $ */
19
20 package org.apache.lenya.cms.ant;
21
22 import org.apache.tools.ant.BuildException;
23
24 public abstract class TwoDocumentsOperationTask extends DocumentOperationTask {
25
26     private String JavaDoc secarea;
27     private String JavaDoc secdocumentid;
28
29     /**
30      *
31      */

32     public TwoDocumentsOperationTask() {
33         super();
34     }
35
36    /**
37      * @return String The area of the destination.
38      */

39     public String JavaDoc getSecarea() {
40         return secarea;
41     }
42
43     /**
44      * @return String The document-id corresponding to the destination.
45      */

46     public String JavaDoc getSecdocumentid() {
47         return secdocumentid;
48     }
49
50     /**
51      * @param string The area of the destination.
52      */

53     public void setSecarea(String JavaDoc string) {
54         secarea = string;
55     }
56
57     /**
58      * @param string The document-id corresponding to the destination.
59      */

60     public void setSecdocumentid(String JavaDoc string) {
61         secdocumentid = string;
62     }
63
64     /**
65      * @see org.apache.tools.ant.Task#execute()
66      **/

67
68     public void execute() throws BuildException {
69         log("document-id for the destination" + this.getSecdocumentid());
70         log("area for the destination" + this.getSecarea());
71         super.execute();
72     }
73
74 }
75
Popular Tags