01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.tools.generators;
10:
11: /**
12: * @author Gennady Krizhevsky
13: */
14: class Case {
15:
16: public static final Case UPPER_CASE = new Case("upper");
17: public static final Case LOWER_CASE = new Case("lower");
18:
19: String name;
20:
21: public Case(String name) {
22: this .name = name;
23: }
24:
25: public static Case oppositeOf(Case caze) {
26: if (caze == null) {
27: return null;
28: }
29: return caze == UPPER_CASE ? LOWER_CASE : UPPER_CASE;
30: }
31:
32: public String toString() {
33: return name;
34: }
35: }
|