KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > EClassifier


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: EClassifier.java,v 1.4 2005/06/22 20:00:41 davidms Exp $
16  */

17 package org.eclipse.emf.ecore;
18
19
20
21 /**
22  * <!-- begin-user-doc -->
23  * A representation of the model object '<em><b>EClassifier</b></em>'.
24  * <!-- end-user-doc -->
25  *
26  * <p>
27  * The following features are supported:
28  * <ul>
29  * <li>{@link org.eclipse.emf.ecore.EClassifier#getInstanceClassName <em>Instance Class Name</em>}</li>
30  * <li>{@link org.eclipse.emf.ecore.EClassifier#getInstanceClass <em>Instance Class</em>}</li>
31  * <li>{@link org.eclipse.emf.ecore.EClassifier#getDefaultValue <em>Default Value</em>}</li>
32  * <li>{@link org.eclipse.emf.ecore.EClassifier#getEPackage <em>EPackage</em>}</li>
33  * </ul>
34  * </p>
35  *
36  * @see org.eclipse.emf.ecore.EcorePackage#getEClassifier()
37  * @model abstract="true"
38  * @generated
39  */

40 public interface EClassifier extends ENamedElement
41 {
42   /**
43    * Returns the value of the '<em><b>Instance Class Name</b></em>' attribute.
44    * <!-- begin-user-doc -->
45    * <p>
46    * It represents the name of the Java instance class that this meta object represents.
47    * </p>
48    * @see #getInstanceClass()
49    * @ignore
50    * <!-- end-user-doc -->
51    * @return the value of the '<em>Instance Class Name</em>' attribute.
52    * @see #setInstanceClassName(String)
53    * @see org.eclipse.emf.ecore.EcorePackage#getEClassifier_InstanceClassName()
54    * @model
55    * @generated
56    */

57   String JavaDoc getInstanceClassName();
58
59   /**
60    * Sets the value of the '{@link org.eclipse.emf.ecore.EClassifier#getInstanceClassName <em>Instance Class Name</em>}' attribute.
61    * <!-- begin-user-doc -->
62    * <!-- end-user-doc -->
63    * @param value the new value of the '<em>Instance Class Name</em>' attribute.
64    * @see #getInstanceClassName()
65    * @generated
66    */

67   void setInstanceClassName(String JavaDoc value);
68
69   /**
70    * Returns the value of the '<em><b>Instance Class</b></em>' attribute.
71    * <!-- begin-user-doc -->
72    * <p>
73    * It represents the actual Java instance class that this meta object represents.
74    * </p>
75    * @see #setInstanceClass(Class)
76    * @ignore
77    * <!-- end-user-doc -->
78    * @return the value of the '<em>Instance Class</em>' attribute.
79    * @see org.eclipse.emf.ecore.EcorePackage#getEClassifier_InstanceClass()
80    * @model transient="true" changeable="false" volatile="true"
81    * @generated
82    */

83   Class JavaDoc getInstanceClass();
84
85   /**
86    * Sets the value of the '{@link org.eclipse.emf.ecore.EClassifier#getInstanceClass <em>Instance Class</em>}' attribute.
87    * @param value the new value of the '<em>Instance Class</em>' attribute.
88    * @see #getInstanceClass()
89    */

90   void setInstanceClass(Class JavaDoc value);
91
92   /**
93    * Returns the value of the '<em><b>Default Value</b></em>' attribute.
94    * <!-- begin-user-doc -->
95    * <p>
96    * The default value for the type, in the Java sense.
97    * For primitive types, it will be the Java primitive default wrapped appropriately.
98    * For {@link EEnum enums}, it will be the first enumerator.
99    * And for all other types derived from <code>java.lang.Object</code>, it will be null.
100    * </p>
101    * <!-- end-user-doc -->
102    * @return the value of the '<em>Default Value</em>' attribute.
103    * @see org.eclipse.emf.ecore.EcorePackage#getEClassifier_DefaultValue()
104    * @model transient="true" changeable="false" volatile="true"
105    * @generated
106    */

107   Object JavaDoc getDefaultValue();
108
109   /**
110    * Returns the value of the '<em><b>EPackage</b></em>' container reference.
111    * It is bidirectional and its opposite is '{@link org.eclipse.emf.ecore.EPackage#getEClassifiers <em>EClassifiers</em>}'.
112    * <!-- begin-user-doc -->
113    * <!-- end-user-doc -->
114    * @return the value of the '<em>EPackage</em>' container reference.
115    * @see org.eclipse.emf.ecore.EcorePackage#getEClassifier_EPackage()
116    * @see org.eclipse.emf.ecore.EPackage#getEClassifiers
117    * @model opposite="eClassifiers" changeable="false"
118    * @generated
119    */

120   EPackage getEPackage();
121
122   /**
123    * <!-- begin-user-doc -->
124    * Returns whether the object is an instance of this classifier.
125    * @param object the object in question.
126    * @return whether the object is an instance.
127    * @see Class#isInstance
128    * @ignore
129    * <!-- end-user-doc -->
130    * @model
131    * @generated
132    */

133   boolean isInstance(Object JavaDoc object);
134
135   /**
136    * <!-- begin-user-doc -->
137    * Returns the ID relative to the {@link #getEPackage containing} package.
138    * @return the relative ID.
139    * <!-- end-user-doc -->
140    * @model kind="operation"
141    * @generated
142    */

143   int getClassifierID();
144
145 }
146
Popular Tags