01: /*
02: * The contents of this file are subject to the Mozilla Public License
03: * Version 1.1 (the "License"); you may not use this file except in
04: * compliance with the License. You may obtain a copy of the License at
05: * http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
09: * License for the specific language governing rights and limitations
10: * under the License.
11: *
12: * The Original Code is iSQL-Viewer, A Mutli-Platform Database Tool.
13: *
14: * The Initial Developer of the Original Code is iSQL-Viewer, A Mutli-Platform Database Tool.
15: * Portions created by Mark A. Kobold are Copyright (C) 2000-2007. All Rights Reserved.
16: *
17: * Contributor(s):
18: * Mark A. Kobold [mkobold <at> isqlviewer <dot> com].
19: *
20: * If you didn't download this code from the following link, you should check
21: * if you aren't using an obsolete version: http://www.isqlviewer.com
22: */
23: package org.isqlviewer.mrj;
24:
25: /**
26: * Enumeration of Mac OS X Folder domains
27: * <p>
28: * These types are used for the FileManager class in getting access to system folders.
29: * <p>
30: * I take no credit in the calculation of the names or values as i got them off of a list in the apple developer
31: * mailings [http://lists.apple.com/archives/Java-dev/2003/Apr/msg00460.html]
32: *
33: * @author Mark A. Kobold <mkobold at isqlviewer dot com>
34: * @version 1.0
35: */
36: public enum Domain {
37: /**
38: *
39: */
40: SYSTEM((short) -32766),
41: /**
42: *
43: */
44: LOCAL((short) -32765),
45: /**
46: *
47: */
48: NETWORK((short) -32764),
49: /**
50: *
51: */
52: CLASSIC((short) -32762),
53: /**
54: *
55: */
56: USER((short) -32763);
57:
58: private short value = -1;
59:
60: private Domain(short value) {
61:
62: this .value = value;
63:
64: }
65:
66: public short value() {
67:
68: return value;
69: }
70: }
|