01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: package org.netbeans.modules.wsdlextensions.file.model.impl;
21:
22: import org.netbeans.modules.xml.xam.dom.Attribute;
23:
24: /**
25: * @author sweng
26: */
27: public enum FileAttribute implements Attribute {
28: FILE_ADDRESS_FILEDIRECTORY_PROPERTY("fileDirectory"), FILE_ADDRESS_RELATIVEPATH_PROPERTY(
29: "relativePath"), FILE_ADDRESS_PATHRELATIVETO_PROPERTY(
30: "pathRelativeTo"), FILE_ADDRESS_LOCK_NAME("lockName"), FILE_ADDRESS_WORK_AREA(
31: "workArea"), FILE_ADDRESS_SEQ_NAME("seqName"),
32:
33: FILE_MESSAGE_FILETYPE_PROPERTY("fileType"), FILE_MESSAGE_ENCODINGSTYLE_PROPERTY(
34: "encodingStyle"), FILE_MESSAGE_USE_PROPERTY("use"), FILE_MESSAGE_PART_PROPERTY(
35: "part"), FILE_MESSAGE_POLLINTERVAL_PROPERTY(
36: "pollingInterval"), FILE_MESSAGE_FILENAME_PROPERTY(
37: "fileName"), FILE_MESSAGE_FILENAMEISPATTERN_PROPERTY(
38: "fileNameIsPattern"), FILE_MESSAGE_REMOVEOL_PROPERTY(
39: "removeEOL"), FILE_MESSAGE_ADDEOL_PROPERTY("addEOL"), FILE_MESSAGE_MULTIPLERECORDSPERFILE_MESSAGE__PROPERTY(
40: "multipleRecordsPerFile"), FILE_MESSAGE_RECORDDELIMITER_PROPERTY(
41: "recordDelimiter"), FILE_MESSAGE_MAXBYTESPERRECORD_PROPERTY(
42: "maxBytesPerRecord"), FILE_MESSAGE_PROTECT_PROPERTY(
43: "protect"), FILE_MESSAGE_ARCHIVE_PROPERTY("archive"), FILE_MESSAGE_STAGE_PROPERTY(
44: "stage"), FILE_MESSAGE_PROTECT_DIR_PROPERTY(
45: "protectDirectory"), FILE_MESSAGE_ARCHIVE_DIR_PROPERTY(
46: "archiveDirectory"), FILE_MESSAGE_STAGE_DIR_PROPERTY(
47: "stageDirectory"), FILE_MESSAGE_PROTECT_DIR_IS_RELATIVE(
48: "protectDirIsRelative"), FILE_MESSAGE_ARCHIVE_DIR_IS_RELATIVE(
49: "archiveDirIsRelative"), FILE_MESSAGE_STAGE_DIR_IS_RELATIVE(
50: "stageDirIsRelative");
51:
52: private String name;
53: private Class type;
54: private Class subtype;
55:
56: FileAttribute(String name) {
57: this (name, String.class);
58: }
59:
60: FileAttribute(String name, Class type) {
61: this (name, type, null);
62: }
63:
64: FileAttribute(String name, Class type, Class subtype) {
65: this .name = name;
66: this .type = type;
67: this .subtype = subtype;
68: }
69:
70: public String toString() {
71: return name;
72: }
73:
74: public Class getType() {
75: return type;
76: }
77:
78: public String getName() {
79: return name;
80: }
81:
82: public Class getMemberType() {
83: return subtype;
84: }
85: }
|