org.eclipse.emf.ecore.EAttribute Java Examples
The following examples show how to use
org.eclipse.emf.ecore.EAttribute.
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 check out the related API usage on the sidebar.
Example #1
Source File: ProcessParserProvider.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @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
Source File: AddAttributeChange.java From BIMserver with GNU Affero General Public License v3.0 | 5 votes |
@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 File: XtextTestPackageImpl.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getNamedArgument_LiteralValue() { return (EAttribute)namedArgumentEClass.getEStructuralFeatures().get(0); }
Example #4
Source File: UnorderedGroupsTestPackageImpl.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getSimpleModel_Synchronized() { return (EAttribute)simpleModelEClass.getEStructuralFeatures().get(2); }
Example #5
Source File: CsvalidationtestPackageImpl.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getUnassignedAction3_Val2() { return (EAttribute)unassignedAction3EClass.getEStructuralFeatures().get(1); }
Example #6
Source File: AssignmentFinderTestPackageImpl.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getTerminalVal_Term() { return (EAttribute)terminalValEClass.getEStructuralFeatures().get(0); }
Example #7
Source File: AttributePackageImpl.java From birt with Eclipse Public License 1.0 | 4 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public EAttribute getStyleMap_ComponentName( ) { return (EAttribute) styleMapEClass.getEStructuralFeatures( ).get( 0 ); }
Example #8
Source File: ConfigurationPackageImpl.java From neoscada with Eclipse Public License 1.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getCommandType_Id () { return (EAttribute)commandTypeEClass.getEStructuralFeatures ().get ( 2 ); }
Example #9
Source File: VisualInterfacePackageImpl.java From neoscada with Eclipse Public License 1.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getBorderContainer_HorizontalSpacing () { return (EAttribute)borderContainerEClass.getEStructuralFeatures ().get ( 2 ); }
Example #10
Source File: VisualInterfacePackageImpl.java From neoscada with Eclipse Public License 1.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getPosition_X () { return (EAttribute)positionEClass.getEStructuralFeatures ().get ( 0 ); }
Example #11
Source File: Gh1462TestPackageImpl.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getRule9_Right() { return (EAttribute)rule9EClass.getEStructuralFeatures().get(1); }
Example #12
Source File: SequencertestPackageImpl.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getAltList1_Val1() { return (EAttribute)altList1EClass.getEStructuralFeatures().get(0); }
Example #13
Source File: AttributePackageImpl.java From birt with Eclipse Public License 1.0 | 4 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public EAttribute getColorDefinition_Transparency( ) { return (EAttribute) colorDefinitionEClass.getEStructuralFeatures( ) .get( 0 ); }
Example #14
Source File: TypesPackageImpl.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getJvmCharAnnotationValue_Values() { return (EAttribute)jvmCharAnnotationValueEClass.getEStructuralFeatures().get(0); }
Example #15
Source File: BacktrackingBug325745TestLanguagePackageImpl.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getDataType_DefaultValue() { return (EAttribute)dataTypeEClass.getEStructuralFeatures().get(1); }
Example #16
Source File: WorldPackageImpl.java From neoscada with Eclipse Public License 1.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getNamedDocumentable_Name () { return (EAttribute)namedDocumentableEClass.getEStructuralFeatures ().get ( 0 ); }
Example #17
Source File: ReferenceGrammarPackageImpl.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getFamilie_Name() { return (EAttribute)familieEClass.getEStructuralFeatures().get(0); }
Example #18
Source File: StatemachinePackageImpl.java From xtext-web with Eclipse Public License 2.0 | 4 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getSignal_Name() { return (EAttribute)signalEClass.getEStructuralFeatures().get(0); }
Example #19
Source File: FormatPackage.java From dsl-devkit with Eclipse Public License 1.0 | 2 votes |
/** * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.format.format.OffsetLocator#isNobreak <em>Nobreak</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Nobreak</em>'. * @see com.avaloq.tools.ddk.xtext.format.format.OffsetLocator#isNobreak() * @see #getOffsetLocator() * @generated */ EAttribute getOffsetLocator_Nobreak();
Example #20
Source File: VisualInterfacePackage.java From neoscada with Eclipse Public License 1.0 | 2 votes |
/** * Returns the meta object for the attribute '{@link org.eclipse.scada.vi.model.Image#getImageAlignment <em>Image Alignment</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Image Alignment</em>'. * @see org.eclipse.scada.vi.model.Image#getImageAlignment() * @see #getImage() * @generated */ EAttribute getImage_ImageAlignment ();
Example #21
Source File: TypesPackage.java From statecharts with Eclipse Public License 1.0 | 2 votes |
/** * Returns the meta object for the attribute '{@link org.yakindu.base.types.ArrayTypeSpecifier#getSize <em>Size</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Size</em>'. * @see org.yakindu.base.types.ArrayTypeSpecifier#getSize() * @see #getArrayTypeSpecifier() * @generated */ EAttribute getArrayTypeSpecifier_Size();
Example #22
Source File: OrganizationPackage.java From bonita-studio with GNU General Public License v2.0 | 2 votes |
/** * Returns the meta object for the attribute '{@link org.bonitasoft.studio.actors.model.organization.PasswordType#isEncrypted <em>Encrypted</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Encrypted</em>'. * @see org.bonitasoft.studio.actors.model.organization.PasswordType#isEncrypted() * @see #getPasswordType() * @generated */ EAttribute getPasswordType_Encrypted();
Example #23
Source File: ModelPackageImpl.java From bonita-studio with GNU General Public License v2.0 | 2 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTConversationLink_SourceRef() { return (EAttribute)getTConversationLink().getEStructuralFeatures().get(1); }
Example #24
Source File: ProjectDescriptionPackageImpl.java From n4js with Eclipse Public License 1.0 | 2 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getProjectDescription_HasN4JSNature() { return (EAttribute)projectDescriptionEClass.getEStructuralFeatures().get(18); }
Example #25
Source File: StorePackageImpl.java From BIMserver with GNU Affero General Public License v3.0 | 2 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EAttribute getServiceParameter_Name() { return (EAttribute) getServiceParameter().getEStructuralFeatures().get(0); }
Example #26
Source File: ModelPackageImpl.java From bonita-studio with GNU General Public License v2.0 | 2 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getTFlowNode_Outgoing() { return (EAttribute)getTFlowNode().getEStructuralFeatures().get(1); }
Example #27
Source File: SequencertestPackage.java From xtext-core with Eclipse Public License 2.0 | 2 votes |
/** * Returns the meta object for the attribute list '{@link org.eclipse.xtext.serializer.sequencertest.GroupMultiplicities#getVal6 <em>Val6</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute list '<em>Val6</em>'. * @see org.eclipse.xtext.serializer.sequencertest.GroupMultiplicities#getVal6() * @see #getGroupMultiplicities() * @generated */ EAttribute getGroupMultiplicities_Val6();
Example #28
Source File: TracePackage.java From kieker with Apache License 2.0 | 2 votes |
/** * Returns the meta object for the attribute '{@link kieker.analysisteetime.model.analysismodel.trace.OperationCall#getFailedCause <em>Failed Cause</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Failed Cause</em>'. * @see kieker.analysisteetime.model.analysismodel.trace.OperationCall#getFailedCause() * @see #getOperationCall() * @generated */ EAttribute getOperationCall_FailedCause();
Example #29
Source File: GenconfPackageImpl.java From M2Doc with Eclipse Public License 1.0 | 2 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public EAttribute getStringDefinition_Value() { return (EAttribute) stringDefinitionEClass.getEStructuralFeatures().get(0); }
Example #30
Source File: ConnectorDefinitionPackage.java From bonita-studio with GNU General Public License v2.0 | 2 votes |
/** * Returns the meta object for the attribute '{@link org.bonitasoft.studio.connector.model.definition.Array#getRows <em>Rows</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Rows</em>'. * @see org.bonitasoft.studio.connector.model.definition.Array#getRows() * @see #getArray() * @generated */ EAttribute getArray_Rows();