KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > codegen > ecore > genmodel > GenTypedElement


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id: GenTypedElement.java,v 1.2 2005/06/01 19:30:50 davidms Exp $
6  */

7 package org.eclipse.emf.codegen.ecore.genmodel;
8
9 import org.eclipse.emf.ecore.EModelElement;
10
11
12 /**
13  * <!-- begin-user-doc -->
14  * A representation of the model object '<em><b>Gen Typed Element</b></em>'.
15  * <!-- end-user-doc -->
16  *
17  *
18  * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenTypedElement()
19  * @model abstract="true"
20  * @generated
21  */

22 public interface GenTypedElement extends GenBase
23 {
24   EModelElement getEcoreModelElement();
25
26   GenPackage getTypeGenPackage();
27   String JavaDoc getTypeClassifierAccessorName();
28
29   /**
30    * @deprecated As of EMF 2.1, replaced by {@link #getTypeClassifierAccessorName}.
31    */

32   String JavaDoc getTypeClassifier();
33
34   String JavaDoc getType(); // this returns the feature type, either primitive (e.g. "int") or qualified class name (e.g. "java.lang.String", "org.eclipse.emf.common.util.EList", or "org.sample.company.Company")
35
String JavaDoc getImportedType(); // this returns the feature type, either primitive (e.g. "int") or imported class name (e.g. "String", "EList", or "Company")
36
String JavaDoc getObjectType(); // this returns the imported name of the feature type or, if primitive, of the wrapper class (e.g. "Integer")
37
String JavaDoc getImportedInternalType(); // this returns the real imported feature type used internally, regardless of the value of GenModel.isSuppressEMFValues()
38

39   boolean isFeatureMapType();
40   boolean isWrappedFeatureMapType();
41
42   /**
43    * @deprecated As of EMF 2.1, replaced by {@link #isWrappedFeatureMapType}.
44    */

45   boolean isFeatureMapWrapped();
46
47   boolean isEffectiveSuppressEMFTypes();
48
49   String JavaDoc getImportedEffectiveFeatureMapWrapperInternalInterface();
50   String JavaDoc getImportedEffectiveFeatureMapWrapperClass();
51
52   boolean isListType();
53   String JavaDoc getListItemType(); // this returns the imported name of the feature type/wrapper class, or if a multi-valued feature, the type of the EList members
54
String JavaDoc getQualifiedListItemType(); // this returns the qualified name of the feature type/wrapper class, or if a multi-valued feature, the type of the EList members
55

56   boolean isMapType();
57   GenClass getMapEntryTypeGenClass();
58   String JavaDoc getImportedMapEntryType();
59
60   /**
61    * @deprecated As of EMF 2.1, replaced by {@link #getMapEntryTypeGenClass}.
62    */

63   GenClass getMapGenClass();
64
65   /**
66    * @deprecated As of EMF 2.1, replaced by {@link #getImportedMapEntryType}.
67    */

68   String JavaDoc getMapItemType();
69
70   String JavaDoc getEObjectCast(); // this returns either "(EObject)", "(org.eclipse.emf.ecore.EObject)", or "" as needed for the reference type.
71
String JavaDoc getInternalTypeCast(); // this returns either "(EObject)", "(org.eclipse.emf.ecore.EObject)", or "" as needed for the reference type.
72

73   boolean isPrimitiveType();
74   String JavaDoc getPrimitiveValueFunction();
75
76   boolean isBooleanType();
77   boolean isStringType();
78   boolean isStringBasedType();
79
80   boolean isEnumType();
81   boolean isEnumBasedType();
82   GenEnum getTypeGenEnum();
83   GenDataType getTypeGenDataType();
84   GenClass getTypeGenClass();
85
86   /**
87    * @deprecated As of EMF 2.1, replaced by {@link #getTypeGenEnum}.
88    */

89   GenEnum getGenEnumType();
90
91   /**
92    * @deprecated As of EMF 2.1, replaced by {@link #getTypeGenDataType}.
93    */

94   GenDataType getGenDataTypeType();
95
96   /**
97    * @deprecated As of EMF 2.1, replaced by {@link #getTypeGenClass}.
98    */

99   GenClass getGenClassType();
100
101   String JavaDoc getLowerBound();
102   String JavaDoc getUpperBound();
103
104   boolean isUnique();
105   String JavaDoc getUniqueFlag();
106   String JavaDoc getOrderedFlag();
107
108 } // GenTypedElement
109
Popular Tags