001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 2004 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * Initial developer: Florent BENOIT
022: * --------------------------------------------------------------------------
023: * $Id: File.java 6899 2005-06-07 13:48:06Z pelletib $
024: * --------------------------------------------------------------------------
025: */package org.objectweb.jonas.ant.jonasbase.wsdl;
026:
027: /**
028: * Defines a file for WSDL publish
029: * @author Florent Benoit
030: */
031: public class File {
032:
033: /**
034: * Directory for publish
035: */
036: private String dir = null;
037:
038: /**
039: * Class for FileWSDL handler
040: */
041: public static final String FILEWSDLHANDLER_CLASS = "org.objectweb.jonas.ws.handler.FileWSDLHandler";
042:
043: /**
044: * Default encoding
045: */
046: private static final String DEFAULT_ENCODING = "UTF-8";
047:
048: /**
049: * User defined encoding
050: */
051:
052: private String encoding = DEFAULT_ENCODING;
053:
054: /**
055: * Name of the file
056: */
057: private String name = null;
058:
059: /**
060: * Gets the directory
061: * @return the directory
062: */
063: public String getDir() {
064: return dir;
065: }
066:
067: /**
068: * Sets the directory
069: * @param dir the directory to set
070: */
071: public void setDir(String dir) {
072: this .dir = dir;
073: }
074:
075: /**
076: * Gets the encoding
077: * @return the encoding.
078: */
079: public String getEncoding() {
080: return encoding;
081: }
082:
083: /**
084: * Sets the encoding
085: * @param encoding the encoding to set.
086: */
087: public void setEncoding(String encoding) {
088: this .encoding = encoding;
089: }
090:
091: /**
092: * Gets the name
093: * @return the name.
094: */
095: public String getName() {
096: return name;
097: }
098:
099: /**
100: * Sets the name
101: * @param name name to set.
102: */
103: public void setName(String name) {
104: this.name = name;
105: }
106: }
|