PageRenderTime 25ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/lib/docs/enum/test/com/plotnix/enum/Employment.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 76 lines | 10 code | 4 blank | 62 comment | 0 complexity | 042b7165515945a2a23ebeb7bcedc36f MD5 | raw file
 1/*
 2 * $Header$
 3 * $Revision$
 4 * $Date$
 5 *
 6 * ====================================================================
 7 * The PLOTNIX Software License, Version 1.0
 8 *
 9 *
10 * Copyright (c) 2001 The PLOTNIX Software Foundation.  All rights
11 * reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 *
17 * 1. Redistributions of source code must retain the above copyright
18 *    notice, this list of conditions and the following disclaimer.
19 *
20 * 2. Redistributions in binary form must reproduce the above copyright
21 *    notice, this list of conditions and the following disclaimer in
22 *    the documentation and/or other materials provided with the
23 *    distribution.
24 *
25 * 3. The end-user documentation included with the redistribution,
26 *    if any, must include the following acknowledgment:
27 *       "This product includes software developed by the
28 *        PLOTNIX, Inc (http://www.plotnix.com/)."
29 *    Alternately, this acknowledgment may appear in the software itself,
30 *    if and wherever such third-party acknowledgments normally appear.
31 *
32 * 4. The name "PLOTNIX" must not be used to endorse or promote
33 *    products derived from this software without prior written
34 *    permission. For written permission, please contact dmitri@plotnix.com.
35 *
36 * 5. Products derived from this software may not be called "PLOTNIX",
37 *    nor may "PLOTNIX" appear in their name, without prior written
38 *    permission of the PLOTNIX, Inc.
39 *
40 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
41 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
42 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
43 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
44 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
46 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
47 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
48 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
49 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
50 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 * ====================================================================
53 *
54 * For more information on PLOTNIX, Inc, please see <http://www.plotnix.com/>.
55 */
56package com.plotnix.enum;
57
58import java.util.*;
59
60/**
61 * Employment: defined integers that can be used in switch statements.
62 *
63 * @author Dmitri Plotnikov
64 * @version $Revision$ $Date$
65 */
66public class Employment extends Enum {
67
68    public static final int EMPLOYED = 1;
69    public static final int SELF_EMPLOYED = 2;
70    public static final int UNEMPLOYED = 3;
71
72    static {
73        // Register all 'public static int's of this class as Enums
74        initIntegerEnum(Employment.class);
75    }
76}