KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > ant > jonasbase > wsdl > File


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2004 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer: Florent BENOIT
22  * --------------------------------------------------------------------------
23  * $Id: File.java,v 1.1 2005/06/07 13:48:06 pelletib Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas.ant.jonasbase.wsdl;
28
29
30 /**
31  * Defines a file for WSDL publish
32  * @author Florent Benoit
33  */

34 public class File {
35
36     /**
37      * Directory for publish
38      */

39     private String JavaDoc dir = null;
40
41     /**
42      * Class for FileWSDL handler
43      */

44     public static final String JavaDoc FILEWSDLHANDLER_CLASS = "org.objectweb.jonas.ws.handler.FileWSDLHandler";
45
46     /**
47      * Default encoding
48      */

49     private static final String JavaDoc DEFAULT_ENCODING = "UTF-8";
50
51     /**
52      * User defined encoding
53      */

54
55     private String JavaDoc encoding = DEFAULT_ENCODING;
56
57     /**
58      * Name of the file
59      */

60     private String JavaDoc name = null;
61
62     /**
63      * Gets the directory
64      * @return the directory
65      */

66     public String JavaDoc getDir() {
67         return dir;
68     }
69
70     /**
71      * Sets the directory
72      * @param dir the directory to set
73      */

74     public void setDir(String JavaDoc dir) {
75         this.dir = dir;
76     }
77
78     /**
79      * Gets the encoding
80      * @return the encoding.
81      */

82     public String JavaDoc getEncoding() {
83         return encoding;
84     }
85
86     /**
87      * Sets the encoding
88      * @param encoding the encoding to set.
89      */

90     public void setEncoding(String JavaDoc encoding) {
91         this.encoding = encoding;
92     }
93
94     /**
95      * Gets the name
96      * @return the name.
97      */

98     public String JavaDoc getName() {
99         return name;
100     }
101
102     /**
103      * Sets the name
104      * @param name name to set.
105      */

106     public void setName(String JavaDoc name) {
107         this.name = name;
108     }
109 }
110
Popular Tags