KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > taglibs > gnat > moveTag


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 package org.apache.taglibs.gnat;
18
19 import org.apache.taglibs.gnat.util.*;
20 import javax.servlet.ServletContext JavaDoc;
21 import javax.servlet.jsp.*;
22 import javax.servlet.jsp.tagext.*;
23 import java.io.*;
24 import java.util.*;
25
26 public class moveTag extends BodyTagSupport
27 {
28     //private File _f;
29
private String JavaDoc file = "";
30     private String JavaDoc todir = "";
31     private String JavaDoc tofile = "";
32     private boolean filtering = false;
33     private boolean flatten = false;
34     private boolean overwrite = true;
35     private boolean includeEmptyDirs = true;
36     private ResourceBundle gnatRB = ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings");
37     private ResourceBundle gnatERB = ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings");
38     
39     public void setFile(String JavaDoc file) {
40         this.file = file;
41     }
42     
43     public void setFiltering(boolean filtering) {
44         this.filtering = filtering;
45     }
46     
47     public void setFlatten(boolean flatten) {
48         this.flatten = flatten;
49     }
50     
51     public void setTodir(String JavaDoc todir) {
52         this.todir = todir;
53     }
54     
55     public void setTofile(String JavaDoc tofile) {
56         this.tofile = tofile;
57     }
58     
59     public void setOverwrite(boolean overwrite) {
60         this.overwrite = overwrite;
61     }
62     
63     public void setIncludeEmptyDirs(boolean includeEmptyDirs) {
64         this.includeEmptyDirs = includeEmptyDirs;
65     }
66     
67     
68     public int doStartTag() throws JspException
69     {
70         return SKIP_BODY;
71     }
72     
73     public int doEndTag() throws JspException
74     {
75         return EVAL_PAGE;
76     }
77     
78     public String JavaDoc getFile() { return file; }
79     public boolean getFiltering() { return filtering; }
80     public boolean getFlatten() { return flatten; }
81     public String JavaDoc getTodir() { return todir; }
82     public String JavaDoc getTofile() { return tofile; }
83     public boolean getIncludeEmptyDirs() { return includeEmptyDirs; }
84     public boolean getOverwrite() { return overwrite; }
85 }
86
Popular Tags