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: EDataType.java,v 1.3 2005/06/08 06:20:10 nickb 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>EData Type</b></em>'. 24 * <!-- end-user-doc --> 25 * 26 * <p> 27 * The following features are supported: 28 * <ul> 29 * <li>{@link org.eclipse.emf.ecore.EDataType#isSerializable <em>Serializable</em>}</li> 30 * </ul> 31 * </p> 32 * 33 * @see org.eclipse.emf.ecore.EcorePackage#getEDataType() 34 * @model 35 * @generated 36 */ 37 public interface EDataType extends EClassifier 38 { 39 /** 40 * Returns the value of the '<em><b>Serializable</b></em>' attribute. 41 * The default value is <code>"true"</code>. 42 * <!-- begin-user-doc --> 43 * <p> 44 * It represents whether values of this type will be {@link org.eclipse.emf.ecore.resource.Resource#save(java.util.Map) serialized}. 45 * For a serializable datatype, 46 * there will be factory methods of the form: 47 *<pre> 48 * String convertXyzToString(EDataType metaObject, Object instanceValue) 49 * Object createXyzFromString(EDataType metaObject, String initialValue) 50 *</pre> 51 * in the generated factory implementation. 52 * Clients will typically need to hand write the bodies of these generated methods. 53 * </p> 54 * <!-- end-user-doc --> 55 * @return the value of the '<em>Serializable</em>' attribute. 56 * @see #setSerializable(boolean) 57 * @see org.eclipse.emf.ecore.EcorePackage#getEDataType_Serializable() 58 * @model default="true" 59 * @generated 60 */ 61 boolean isSerializable(); 62 63 /** 64 * Sets the value of the '{@link org.eclipse.emf.ecore.EDataType#isSerializable <em>Serializable</em>}' attribute. 65 * <!-- begin-user-doc --> 66 * <!-- end-user-doc --> 67 * @param value the new value of the '<em>Serializable</em>' attribute. 68 * @see #isSerializable() 69 * @generated 70 */ 71 void setSerializable(boolean value); 72 73 } //EDataType 74