KickJava   Java API By Example, From Geeks To Geeks.

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


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: GenDataType.java,v 1.6 2005/06/08 06:18:44 nickb Exp $
16  */

17 package org.eclipse.emf.codegen.ecore.genmodel;
18
19
20 import java.util.List JavaDoc;
21
22 import org.eclipse.emf.ecore.EDataType;
23
24
25 /**
26  * <!-- begin-user-doc -->
27  * A representation of the model object '<em><b>Gen Data Type</b></em>'.
28  * <!-- end-user-doc -->
29  *
30  * <p>
31  * The following features are supported:
32  * <ul>
33  * <li>{@link org.eclipse.emf.codegen.ecore.genmodel.GenDataType#getEcoreDataType <em>Ecore Data Type</em>}</li>
34  * </ul>
35  * </p>
36  *
37  * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenDataType()
38  * @model
39  * @generated
40  */

41 public interface GenDataType extends GenClassifier
42 {
43   /**
44    * Returns the value of the '<em><b>Ecore Data Type</b></em>' reference.
45    * <!-- begin-user-doc -->
46    * <p>
47    * If the meaning of the '<em>Ecore Data Type</em>' reference isn't clear,
48    * there really should be more of a description here...
49    * </p>
50    * <!-- end-user-doc -->
51    * @return the value of the '<em>Ecore Data Type</em>' reference.
52    * @see #setEcoreDataType(EDataType)
53    * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenDataType_EcoreDataType()
54    * @model required="true"
55    * @generated
56    */

57   EDataType getEcoreDataType();
58
59   /**
60    * Sets the value of the '{@link org.eclipse.emf.codegen.ecore.genmodel.GenDataType#getEcoreDataType <em>Ecore Data Type</em>}' reference.
61    * <!-- begin-user-doc -->
62    * <!-- end-user-doc -->
63    * @param value the new value of the '<em>Ecore Data Type</em>' reference.
64    * @see #getEcoreDataType()
65    * @generated
66    */

67   void setEcoreDataType(EDataType value);
68
69   String JavaDoc getQualifiedInstanceClassName();
70   String JavaDoc getImportedInstanceClassName();
71   String JavaDoc getObjectInstanceClassName();
72
73   boolean isObjectType();
74   boolean isPrimitiveType();
75   boolean isArrayType();
76   boolean isSerializable();
77   String JavaDoc getPrimitiveValueFunction();
78   String JavaDoc getSerializableFlag();
79   String JavaDoc getModelInfo();
80
81   GenDataType getBaseType();
82   GenDataType getItemType();
83   List JavaDoc /*GenDataType*/ getMemberTypes();
84
85   String JavaDoc getMinLiteral();
86   boolean isMinInclusive();
87
88   String JavaDoc getMaxLiteral();
89   boolean isMaxInclusive();
90
91   String JavaDoc getLengthAccessorFunction();
92   int getMinLength();
93   int getMaxLength();
94
95   int getTotalDigits();
96   int getFractionDigits();
97
98   List JavaDoc getEnumerationLiterals();
99
100   String JavaDoc getWhiteSpace();
101
102   List JavaDoc /*List of String*/ getPatterns();
103
104   boolean isXMLCalendar();
105   boolean isXMLDuration();
106
107   String JavaDoc getStaticValue(String JavaDoc literal);
108
109   void initialize(EDataType eDataType);
110
111   boolean reconcile(GenDataType oldGenDataVersion);
112 }
113
Popular Tags