Java Code Examples for org.eclipse.emf.ecore.EAttribute

The following examples show how to use org.eclipse.emf.ecore.EAttribute. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
/**
* @generated
*/
private IParser getBoundaryMessageEventName_5054Parser() {
	if (boundaryMessageEventName_5054Parser == null) {
		EAttribute[] features = new EAttribute[] { ProcessPackage.eINSTANCE.getElement_Name() };
		EAttribute[] editableFeatures = new EAttribute[] { ProcessPackage.eINSTANCE.getElement_Name() };
		MessageFormatParser parser = new MessageFormatParser(features, editableFeatures);
		boundaryMessageEventName_5054Parser = parser;
	}
	return boundaryMessageEventName_5054Parser;
}
 
Example 2
@Override
public void execute(Transaction transaction) throws UserException, BimserverLockConflictException, BimserverDatabaseException, IOException, QueryException {
	PackageMetaData packageMetaData = transaction.getDatabaseSession().getMetaDataManager().getPackageMetaData(transaction.getProject().getSchema());

	HashMapVirtualObject object = transaction.get(oid);
	if (object == null) {
		Query query = new Query(packageMetaData);
		QueryPart queryPart = query.createQueryPart();
		queryPart.addOid(oid);

		QueryObjectProvider queryObjectProvider = new QueryObjectProvider(transaction.getDatabaseSession(), transaction.getBimServer(), query, Collections.singleton(transaction.getPreviousRevision().getOid()), packageMetaData);
		object = queryObjectProvider.next();
		transaction.updated(object);
	}
	
	EClass eClass = transaction.getDatabaseSession().getEClassForOid(oid);
	if (!ChangeHelper.canBeChanged(eClass)) {
		throw new UserException("Only objects from the following schemas are allowed to be changed: Ifc2x3tc1 and IFC4, this object (" + eClass.getName() + ") is from the \"" + eClass.getEPackage().getName() + "\" package");
	}
	if (object == null) {
		throw new UserException("No object of type \"" + eClass.getName() + "\" with oid " + oid + " found in project with pid " + transaction.getProject().getId());
	}
	EAttribute eAttribute = packageMetaData.getEAttribute(eClass.getName(), attributeName);
	if (eAttribute == null) {
		throw new UserException("No attribute with the name \"" + attributeName + "\" found in class \"" + eClass.getName() + "\"");
	}
	if (!eAttribute.isMany()) {
		throw new UserException("Attribute is not of type 'many'");
	}
	
	object.addListItem(eAttribute, value);
}
 
Example 3
Source Project: xtext-web   Source File: StatemachinePackageImpl.java    License: Eclipse Public License 2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getSignal_Name()
{
  return (EAttribute)signalEClass.getEStructuralFeatures().get(0);
}
 
Example 4
Source Project: xtext-core   Source File: Gh1462TestPackageImpl.java    License: Eclipse Public License 2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getRule9_Right()
{
  return (EAttribute)rule9EClass.getEStructuralFeatures().get(1);
}
 
Example 5
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getPosition_X ()
{
    return (EAttribute)positionEClass.getEStructuralFeatures ().get ( 0 );
}
 
Example 6
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getBorderContainer_HorizontalSpacing ()
{
    return (EAttribute)borderContainerEClass.getEStructuralFeatures ().get ( 2 );
}
 
Example 7
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getUnassignedAction3_Val2()
{
  return (EAttribute)unassignedAction3EClass.getEStructuralFeatures().get(1);
}
 
Example 8
Source Project: neoscada   Source File: ConfigurationPackageImpl.java    License: Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getCommandType_Id ()
{
    return (EAttribute)commandTypeEClass.getEStructuralFeatures ().get ( 2 );
}
 
Example 9
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getDataType_DefaultValue()
{
  return (EAttribute)dataTypeEClass.getEStructuralFeatures().get(1);
}
 
Example 10
Source Project: neoscada   Source File: WorldPackageImpl.java    License: Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getNamedDocumentable_Name ()
{
    return (EAttribute)namedDocumentableEClass.getEStructuralFeatures ().get ( 0 );
}
 
Example 11
Source Project: xtext-core   Source File: XtextTestPackageImpl.java    License: Eclipse Public License 2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getNamedArgument_LiteralValue()
{
  return (EAttribute)namedArgumentEClass.getEStructuralFeatures().get(0);
}
 
Example 12
Source Project: birt   Source File: AttributePackageImpl.java    License: Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EAttribute getColorDefinition_Transparency( )
{
	return (EAttribute) colorDefinitionEClass.getEStructuralFeatures( )
			.get( 0 );
}
 
Example 13
Source Project: birt   Source File: AttributePackageImpl.java    License: Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public EAttribute getStyleMap_ComponentName( )
{
	return (EAttribute) styleMapEClass.getEStructuralFeatures( ).get( 0 );
}
 
Example 14
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getSimpleModel_Synchronized()
{
  return (EAttribute)simpleModelEClass.getEStructuralFeatures().get(2);
}
 
Example 15
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getAltList1_Val1()
{
  return (EAttribute)altList1EClass.getEStructuralFeatures().get(0);
}
 
Example 16
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getTerminalVal_Term()
{
  return (EAttribute)terminalValEClass.getEStructuralFeatures().get(0);
}
 
Example 17
Source Project: xtext-extras   Source File: TypesPackageImpl.java    License: Eclipse Public License 2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getJvmCharAnnotationValue_Values()
{
	return (EAttribute)jvmCharAnnotationValueEClass.getEStructuralFeatures().get(0);
}
 
Example 18
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getFamilie_Name()
{
  return (EAttribute)familieEClass.getEStructuralFeatures().get(0);
}
 
Example 19
Source Project: neoscada   Source File: CommonPackage.java    License: Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Returns the meta object for the attribute '{@link org.eclipse.scada.configuration.component.common.HeartbeatGenerator#getPeriod <em>Period</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute '<em>Period</em>'.
 * @see org.eclipse.scada.configuration.component.common.HeartbeatGenerator#getPeriod()
 * @see #getHeartbeatGenerator()
 * @generated
 */
EAttribute getHeartbeatGenerator_Period ();
 
Example 20
Source Project: elexis-3-core   Source File: ModelPackage.java    License: Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Returns the meta object for the attribute '{@link ch.elexis.core.tasks.model.ITask#getRunContext <em>Run Context</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute '<em>Run Context</em>'.
 * @see ch.elexis.core.tasks.model.ITask#getRunContext()
 * @see #getITask()
 * @generated
 */
EAttribute getITask_RunContext();
 
Example 21
/**
 * Returns the meta object for the attribute '{@link org.eclipse.xtext.validation.csvalidationtest.AltList2#getVal2 <em>Val2</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute '<em>Val2</em>'.
 * @see org.eclipse.xtext.validation.csvalidationtest.AltList2#getVal2()
 * @see #getAltList2()
 * @generated
 */
EAttribute getAltList2_Val2();
 
Example 22
Source Project: neoscada   Source File: WebPackageImpl.java    License: Eclipse Public License 1.0 2 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EAttribute getSocialInformation_PlusUrl() {
	return (EAttribute)socialInformationEClass.getEStructuralFeatures().get(1);
}
 
Example 23
/**
 * Returns the meta object for the attribute '{@link org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CreateExpression#getAlias <em>Alias</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute '<em>Alias</em>'.
 * @see org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CreateExpression#getAlias()
 * @see #getCreateExpression()
 * @generated
 */
EAttribute getCreateExpression_Alias();
 
Example 24
Source Project: birt   Source File: ComponentPackage.java    License: Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Returns the meta object for the attribute '{@link java.util.Map.Entry <em>Key</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute '<em>Key</em>'.
 * @see java.util.Map.Entry
 * @see #getEStringToDataSetMapEntry()
 * @generated
 */
EAttribute getEStringToDataSetMapEntry_Key( );
 
Example 25
/**
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public EAttribute getGroups_Group() {
       return (EAttribute)groupsEClass.getEStructuralFeatures().get(0);
   }
 
Example 26
Source Project: xtext-eclipse   Source File: TracePackage.java    License: Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Returns the meta object for the attribute '{@link org.eclipse.xtext.builder.trace.DebugLocationData#getLength <em>Length</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute '<em>Length</em>'.
 * @see org.eclipse.xtext.builder.trace.DebugLocationData#getLength()
 * @see #getDebugLocationData()
 * @generated
 */
EAttribute getDebugLocationData_Length();
 
Example 27
/**
 * Returns the meta object for the attribute '{@link org.bimserver.models.geometry.GeometryInfo#getStartIndex <em>Start Index</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute '<em>Start Index</em>'.
 * @see org.bimserver.models.geometry.GeometryInfo#getStartIndex()
 * @see #getGeometryInfo()
 * @generated
 */
EAttribute getGeometryInfo_StartIndex();
 
Example 28
/**
 * Returns the meta object for the attribute list '{@link org.eclipse.xtext.validation.csvalidationtest.List3#getVal1 <em>Val1</em>}'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the meta object for the attribute list '<em>Val1</em>'.
 * @see org.eclipse.xtext.validation.csvalidationtest.List3#getVal1()
 * @see #getList3()
 * @generated
 */
EAttribute getList3_Val1();
 
Example 29
Source Project: graphical-lsp   Source File: WfgraphPackageImpl.java    License: Eclipse Public License 2.0 2 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EAttribute getTaskNode_Duration() {
	return (EAttribute) taskNodeEClass.getEStructuralFeatures().get(2);
}
 
Example 30
/**
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public EAttribute getMainProcess_GeneratedLibs() {
       return (EAttribute)mainProcessEClass.getEStructuralFeatures().get(4);
   }