Source Code Cross Referenced for DefencePositionKind.java in  » IDE-Eclipse » ui-examples » org » eclipse » ui » examples » views » properties » tabbed » hockeyleague » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui examples » org.eclipse.ui.examples.views.properties.tabbed.hockeyleague 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2006 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         * 
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.ui.examples.views.properties.tabbed.hockeyleague;
011:
012:        import java.util.Arrays;
013:        import java.util.Collections;
014:        import java.util.List;
015:
016:        import org.eclipse.emf.common.util.AbstractEnumerator;
017:
018:        /**
019:         * <!-- begin-user-doc -->
020:         * A representation of the literals of the enumeration '<em><b>Defence Position Kind</b></em>',
021:         * and utility methods for working with them.
022:         * <!-- end-user-doc -->
023:         * @see org.eclipse.ui.examples.views.properties.tabbed.hockeyleague.HockeyleaguePackage#getDefencePositionKind()
024:         * @model
025:         * @generated
026:         */
027:        public final class DefencePositionKind extends AbstractEnumerator {
028:            /**
029:             * The '<em><b>Left defence</b></em>' literal value.
030:             * <!-- begin-user-doc -->
031:             * <p>
032:             * If the meaning of '<em><b>Left defence</b></em>' literal object isn't clear,
033:             * there really should be more of a description here...
034:             * </p>
035:             * <!-- end-user-doc -->
036:             * @see #LEFT_DEFENCE_LITERAL
037:             * @model name="left_defence"
038:             * @generated
039:             * @ordered
040:             */
041:            public static final int LEFT_DEFENCE = 0;
042:
043:            /**
044:             * The '<em><b>Right defence</b></em>' literal value.
045:             * <!-- begin-user-doc -->
046:             * <p>
047:             * If the meaning of '<em><b>Right defence</b></em>' literal object isn't clear,
048:             * there really should be more of a description here...
049:             * </p>
050:             * <!-- end-user-doc -->
051:             * @see #RIGHT_DEFENCE_LITERAL
052:             * @model name="right_defence"
053:             * @generated
054:             * @ordered
055:             */
056:            public static final int RIGHT_DEFENCE = 1;
057:
058:            /**
059:             * The '<em><b>Left defence</b></em>' literal object.
060:             * <!-- begin-user-doc -->
061:             * <!-- end-user-doc -->
062:             * @see #LEFT_DEFENCE
063:             * @generated
064:             * @ordered
065:             */
066:            public static final DefencePositionKind LEFT_DEFENCE_LITERAL = new DefencePositionKind(
067:                    LEFT_DEFENCE, "left_defence", "left_defence"); //$NON-NLS-1$ //$NON-NLS-2$
068:
069:            /**
070:             * The '<em><b>Right defence</b></em>' literal object.
071:             * <!-- begin-user-doc -->
072:             * <!-- end-user-doc -->
073:             * @see #RIGHT_DEFENCE
074:             * @generated
075:             * @ordered
076:             */
077:            public static final DefencePositionKind RIGHT_DEFENCE_LITERAL = new DefencePositionKind(
078:                    RIGHT_DEFENCE, "right_defence", "right_defence"); //$NON-NLS-1$ //$NON-NLS-2$
079:
080:            /**
081:             * An array of all the '<em><b>Defence Position Kind</b></em>' enumerators.
082:             * <!-- begin-user-doc -->
083:             * <!-- end-user-doc -->
084:             * @generated
085:             */
086:            private static final DefencePositionKind[] VALUES_ARRAY = new DefencePositionKind[] {
087:                    LEFT_DEFENCE_LITERAL, RIGHT_DEFENCE_LITERAL, };
088:
089:            /**
090:             * A public read-only list of all the '<em><b>Defence Position Kind</b></em>' enumerators.
091:             * <!-- begin-user-doc -->
092:             * <!-- end-user-doc -->
093:             * @generated
094:             */
095:            public static final List VALUES = Collections
096:                    .unmodifiableList(Arrays.asList(VALUES_ARRAY));
097:
098:            /**
099:             * Returns the '<em><b>Defence Position Kind</b></em>' literal with the specified literal value.
100:             * <!-- begin-user-doc -->
101:             * <!-- end-user-doc -->
102:             * @generated
103:             */
104:            public static DefencePositionKind get(String literal) {
105:                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
106:                    DefencePositionKind result = VALUES_ARRAY[i];
107:                    if (result.toString().equals(literal)) {
108:                        return result;
109:                    }
110:                }
111:                return null;
112:            }
113:
114:            /**
115:             * Returns the '<em><b>Defence Position Kind</b></em>' literal with the specified name.
116:             * <!-- begin-user-doc -->
117:             * <!-- end-user-doc -->
118:             * @generated
119:             */
120:            public static DefencePositionKind getByName(String name) {
121:                for (int i = 0; i < VALUES_ARRAY.length; ++i) {
122:                    DefencePositionKind result = VALUES_ARRAY[i];
123:                    if (result.getName().equals(name)) {
124:                        return result;
125:                    }
126:                }
127:                return null;
128:            }
129:
130:            /**
131:             * Returns the '<em><b>Defence Position Kind</b></em>' literal with the specified integer value.
132:             * <!-- begin-user-doc -->
133:             * <!-- end-user-doc -->
134:             * @generated
135:             */
136:            public static DefencePositionKind get(int value) {
137:                switch (value) {
138:                case LEFT_DEFENCE:
139:                    return LEFT_DEFENCE_LITERAL;
140:                case RIGHT_DEFENCE:
141:                    return RIGHT_DEFENCE_LITERAL;
142:                }
143:                return null;
144:            }
145:
146:            /**
147:             * Only this class can construct instances.
148:             * <!-- begin-user-doc -->
149:             * <!-- end-user-doc -->
150:             * @generated
151:             */
152:            private DefencePositionKind(int value, String name, String literal) {
153:                super (value, name, literal);
154:            }
155:
156:        } //DefencePositionKind
w_ww.__j___a__v__a_2__s___.__c__o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.