001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019:
020: package org.netbeans.modules.wsdlextensions.ftp.impl;
021:
022: import org.netbeans.modules.xml.xam.dom.Attribute;
023:
024: /**
025: * @author jim.fu@sun.com
026: *
027: */
028: public enum FTPAttribute implements Attribute {
029: FTP_URL_PROPERTY("url"), FTP_CMD_CH_TIMEOUT_PROPERTY(
030: "cmdChannelTimeout"), FTP_DATA_CH_TIMEOUT_PROPERTY(
031: "dataChannelTimeout"), FTP_ENCODINGSTYLE_PROPERTY(
032: "encodingStyle"), FTP_SENDER_USEPROXY_PROPERTY(
033: "senderUseProxy"), FTP_SENDER_PROXY_PROPERTY("senderProxy"), FTP_SENDER_USEPASSIVE_PROPERTY(
034: "senderUsePassive"), FTP_RECEIVER_USEPROXY_PROPERTY(
035: "receiverUseProxy"), FTP_RECEIVER_PROXY_PROPERTY(
036: "receiverProxy"), FTP_RECEIVER_USEPASSIVE_PROPERTY(
037: "receiverUsePassive"), FTP_USE_PROPERTY("use"), FTP_PART_PROPERTY(
038: "part"), FTP_POLLINTERVAL_PROPERTY("pollIntervalMillis"), FTP_SENDTO_PROPERTY(
039: "sendTo"), FTP_APPEND_PROPERTY("append"), FTP_SENDTO_HAS_PATTS_PROPERTY(
040: "sendToHasPatterns"), FTP_RECEIVEFROM_PROPERTY(
041: "receiveFrom"), FTP_RECEIVEFROM_HAS_PATTS_PROPERTY(
042: "receiveFromHasRegexs"), FTP_DIRLSTSTYLE_PROPERTY(
043: "dirListStyle"), FTP_USE_UD_HEURISTICS_PROPERTY(
044: "useUserDefinedHeuristics"), FTP_UD_DIRLSTSTYLE_PROPERTY(
045: "userDefDirListStyle"), FTP_UD_HEURISTICS_PROPERTY(
046: "userDefDirListHeuristics"), FTP_TRANSMODE_PROPERTY("mode"), FTP_PRE_SEND_CMD_PROPERTY(
047: "preSendCommand"), FTP_PRE_SEND_LOC_PROPERTY(
048: "preSendLocation"), FTP_PRE_SEND_LOC_HAS_PATTS_PROPERTY(
049: "preSendLocationHasPatterns"), FTP_PRE_RECEIVE_CMD_PROPERTY(
050: "preReceiveCommand"), FTP_PRE_RECEIVE_LOC_PROPERTY(
051: "preReceiveLocation"), FTP_PRE_RECEIVE_LOC_HAS_PATTS_PROPERTY(
052: "preReceiveLocationHasPatterns"), FTP_POST_SEND_CMD_PROPERTY(
053: "postSendCommand"), FTP_POST_SEND_LOC_PROPERTY(
054: "postSendLocation"), FTP_POST_SEND_LOC_HAS_PATTS_PROPERTY(
055: "postSendLocationHasPatterns"), FTP_POST_RECEIVE_CMD_PROPERTY(
056: "postReceiveCommand"), FTP_POST_RECEIVE_LOC_PROPERTY(
057: "postReceiveLocation"), FTP_POST_RECEIVE_LOC_HAS_PATTS_PROPERTY(
058: "postReceiveLocationHasPatterns"), FTP_SYMETRIC_MSG_REPO_PROPERTY(
059: "messageRepository"), // for symetrical wsdl
060: FTP_SYMETRIC_MSG_NAME_PROPERTY("messageName"), // for symetrical wsdl
061: FTP_SYMETRIC_MSG_NAME_PREFIX_IB_PROPERTY("messageNamePrefixIB"), // for symetrical wsdl
062: FTP_SYMETRIC_MSG_NAME_PREFIX_OB_PROPERTY("messageNamePrefixOB"), // for symetrical wsdl
063: FTP_CONSUMER_USEPASSIVE_PROPERTY("consumerUsePassive"), FTP_PROVIDER_USEPASSIVE_PROPERTY(
064: "providerUsePassive"), FTP_PROTECT_ENABLED_PROPERTY(
065: "protect"), FTP_ARCHIVE_ENABLED_PROPERTY("archive"), FTP_STAGING_ENABLED_PROPERTY(
066: "stage"), FTP_MSG_CORRELATE_PROPERTY("messageCorrelate");
067:
068: private String name;
069: private Class type;
070: private Class subtype;
071:
072: FTPAttribute(String name) {
073: this (name, String.class);
074: }
075:
076: FTPAttribute(String name, Class type) {
077: this (name, type, null);
078: }
079:
080: FTPAttribute(String name, Class type, Class subtype) {
081: this .name = name;
082: this .type = type;
083: this .subtype = subtype;
084: }
085:
086: public String toString() {
087: return name;
088: }
089:
090: public Class getType() {
091: return type;
092: }
093:
094: public String getName() {
095: return name;
096: }
097:
098: public Class getMemberType() {
099: return subtype;
100: }
101: }
|