blob: ac46c2c68a3ad0cb471e816ff889f665b4b8b35c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012-2014 SAP SE.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP SE - initial API and implementation and/or initial documentation
*
*******************************************************************************/
/**
*/
package org.eclipse.ogee.model.odata;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Simple Type</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.ogee.model.odata.SimpleType#getType <em>Type</em>}</li>
* <li>{@link org.eclipse.ogee.model.odata.SimpleType#getMaxLength <em>Max Length</em>}</li>
* <li>{@link org.eclipse.ogee.model.odata.SimpleType#getPrecision <em>Precision</em>}</li>
* <li>{@link org.eclipse.ogee.model.odata.SimpleType#getScale <em>Scale</em>}</li>
* <li>{@link org.eclipse.ogee.model.odata.SimpleType#getFixedLength <em>Fixed Length</em>}</li>
* <li>{@link org.eclipse.ogee.model.odata.SimpleType#getDefaultValue <em>Default Value</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.ogee.model.odata.OdataPackage#getSimpleType()
* @model
* @generated
*/
public interface SimpleType extends EObject {
/**
* Returns the value of the '<em><b>Type</b></em>' attribute.
* The literals are from the enumeration {@link org.eclipse.ogee.model.odata.EDMTypes}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Type</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Type</em>' attribute.
* @see org.eclipse.ogee.model.odata.EDMTypes
* @see #setType(EDMTypes)
* @see org.eclipse.ogee.model.odata.OdataPackage#getSimpleType_Type()
* @model required="true"
* @generated
*/
EDMTypes getType();
/**
* Sets the value of the '{@link org.eclipse.ogee.model.odata.SimpleType#getType <em>Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Type</em>' attribute.
* @see org.eclipse.ogee.model.odata.EDMTypes
* @see #getType()
* @generated
*/
void setType(EDMTypes value);
/**
* Returns the value of the '<em><b>Max Length</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Max Length</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Max Length</em>' attribute.
* @see #setMaxLength(int)
* @see org.eclipse.ogee.model.odata.OdataPackage#getSimpleType_MaxLength()
* @model
* @generated
*/
int getMaxLength();
/**
* Sets the value of the '{@link org.eclipse.ogee.model.odata.SimpleType#getMaxLength <em>Max Length</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Max Length</em>' attribute.
* @see #getMaxLength()
* @generated
*/
void setMaxLength(int value);
/**
* Returns the value of the '<em><b>Precision</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Precision</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Precision</em>' attribute.
* @see #setPrecision(int)
* @see org.eclipse.ogee.model.odata.OdataPackage#getSimpleType_Precision()
* @model
* @generated
*/
int getPrecision();
/**
* Sets the value of the '{@link org.eclipse.ogee.model.odata.SimpleType#getPrecision <em>Precision</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Precision</em>' attribute.
* @see #getPrecision()
* @generated
*/
void setPrecision(int value);
/**
* Returns the value of the '<em><b>Scale</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Scale</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Scale</em>' attribute.
* @see #setScale(int)
* @see org.eclipse.ogee.model.odata.OdataPackage#getSimpleType_Scale()
* @model
* @generated
*/
int getScale();
/**
* Sets the value of the '{@link org.eclipse.ogee.model.odata.SimpleType#getScale <em>Scale</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Scale</em>' attribute.
* @see #getScale()
* @generated
*/
void setScale(int value);
/**
* Returns the value of the '<em><b>Default Value</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Default Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Default Value</em>' containment reference.
* @see #setDefaultValue(SimpleValue)
* @see org.eclipse.ogee.model.odata.OdataPackage#getSimpleType_DefaultValue()
* @model containment="true"
* @generated
*/
SimpleValue getDefaultValue();
/**
* Sets the value of the '{@link org.eclipse.ogee.model.odata.SimpleType#getDefaultValue <em>Default Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Default Value</em>' containment reference.
* @see #getDefaultValue()
* @generated
*/
void setDefaultValue(SimpleValue value);
/**
* Returns the value of the '<em><b>Fixed Length</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Fixed Length</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Fixed Length</em>' attribute.
* @see #setFixedLength(int)
* @see org.eclipse.ogee.model.odata.OdataPackage#getSimpleType_FixedLength()
* @model
* @generated
*/
int getFixedLength();
/**
* Sets the value of the '{@link org.eclipse.ogee.model.odata.SimpleType#getFixedLength <em>Fixed Length</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Fixed Length</em>' attribute.
* @see #getFixedLength()
* @generated
*/
void setFixedLength(int value);
} // SimpleType