| /** |
| * Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Florian Pirchner - Initial implementation |
| */ |
| package org.eclipse.osbp.ecview.semantic.uisemantics.impl; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.EPackage; |
| |
| import org.eclipse.emf.ecore.impl.EFactoryImpl; |
| |
| import org.eclipse.emf.ecore.plugin.EcorePlugin; |
| |
| import org.eclipse.osbp.ecview.semantic.uisemantics.*; |
| |
| // TODO: Auto-generated Javadoc |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class UiSemanticsFactoryImpl extends EFactoryImpl implements UiSemanticsFactory { |
| |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> <!-- |
| * end-user-doc --> |
| * @generated |
| */ |
| public static UiSemanticsFactory init() { |
| try { |
| UiSemanticsFactory theUiSemanticsFactory = (UiSemanticsFactory)EPackage.Registry.INSTANCE.getEFactory(UiSemanticsPackage.eNS_URI); |
| if (theUiSemanticsFactory != null) { |
| return theUiSemanticsFactory; |
| } |
| } |
| catch (Exception exception) { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new UiSemanticsFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UiSemanticsFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @param eClass |
| * the e class |
| * @return the e object |
| * @generated |
| */ |
| @Override |
| public EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) { |
| case UiSemanticsPackage.UX_MODEL: return createUxModel(); |
| case UiSemanticsPackage.UX_IMPORT_SECTION_DECLARATION: return createUxImportSectionDeclaration(); |
| case UiSemanticsPackage.UX_EPACKAGE_IMPORT: return createUxEPackageImport(); |
| case UiSemanticsPackage.UX_ELEMENT_DEFINITION: return createUxElementDefinition(); |
| case UiSemanticsPackage.UX_ELEMENT_URI: return createUxElementURI(); |
| case UiSemanticsPackage.UX_AVAILABLE_BINDINGS: return createUxAvailableBindings(); |
| case UiSemanticsPackage.UX_AVAILABLE_VISIBILITY_OPTIONS: return createUxAvailableVisibilityOptions(); |
| case UiSemanticsPackage.UX_VALUE_BINDING_ENDPOINT_DEF: return createUxValueBindingEndpointDef(); |
| case UiSemanticsPackage.UX_AVAILABLE_VALIDATOR_PROPERTIES: return createUxAvailableValidatorProperties(); |
| case UiSemanticsPackage.UX_VALIDATOR_PROPERTY: return createUxValidatorProperty(); |
| case UiSemanticsPackage.UX_BINDINGABLE_OPTION: return createUxBindingableOption(); |
| case UiSemanticsPackage.UX_VISIBLEABLE_OPTION: return createUxVisibleableOption(); |
| case UiSemanticsPackage.UX_ACTION: return createUxAction(); |
| case UiSemanticsPackage.UX_VIEW_CATEGORY: return createUxViewCategory(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux model |
| * @generated |
| */ |
| public UxModel createUxModel() { |
| UxModelImpl uxModel = new UxModelImpl(); |
| return uxModel; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux e package import |
| * @generated |
| */ |
| public UxEPackageImport createUxEPackageImport() { |
| UxEPackageImportImpl uxEPackageImport = new UxEPackageImportImpl(); |
| return uxEPackageImport; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux element definition |
| * @generated |
| */ |
| public UxElementDefinition createUxElementDefinition() { |
| UxElementDefinitionImpl uxElementDefinition = new UxElementDefinitionImpl(); |
| return uxElementDefinition; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux element uri |
| * @generated |
| */ |
| public UxElementURI createUxElementURI() { |
| UxElementURIImpl uxElementURI = new UxElementURIImpl(); |
| return uxElementURI; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux available bindings |
| * @generated |
| */ |
| public UxAvailableBindings createUxAvailableBindings() { |
| UxAvailableBindingsImpl uxAvailableBindings = new UxAvailableBindingsImpl(); |
| return uxAvailableBindings; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux available visibility options |
| * @generated |
| */ |
| public UxAvailableVisibilityOptions createUxAvailableVisibilityOptions() { |
| UxAvailableVisibilityOptionsImpl uxAvailableVisibilityOptions = new UxAvailableVisibilityOptionsImpl(); |
| return uxAvailableVisibilityOptions; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux value binding endpoint def |
| * @generated |
| */ |
| public UxValueBindingEndpointDef createUxValueBindingEndpointDef() { |
| UxValueBindingEndpointDefImpl uxValueBindingEndpointDef = new UxValueBindingEndpointDefImpl(); |
| return uxValueBindingEndpointDef; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux available validator properties |
| * @generated |
| */ |
| public UxAvailableValidatorProperties createUxAvailableValidatorProperties() { |
| UxAvailableValidatorPropertiesImpl uxAvailableValidatorProperties = new UxAvailableValidatorPropertiesImpl(); |
| return uxAvailableValidatorProperties; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux validator property |
| * @generated |
| */ |
| public UxValidatorProperty createUxValidatorProperty() { |
| UxValidatorPropertyImpl uxValidatorProperty = new UxValidatorPropertyImpl(); |
| return uxValidatorProperty; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux bindingable option |
| * @generated |
| */ |
| public UxBindingableOption createUxBindingableOption() { |
| UxBindingableOptionImpl uxBindingableOption = new UxBindingableOptionImpl(); |
| return uxBindingableOption; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux visibleable option |
| * @generated |
| */ |
| public UxVisibleableOption createUxVisibleableOption() { |
| UxVisibleableOptionImpl uxVisibleableOption = new UxVisibleableOptionImpl(); |
| return uxVisibleableOption; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux action |
| * @generated |
| */ |
| public UxAction createUxAction() { |
| UxActionImpl uxAction = new UxActionImpl(); |
| return uxAction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux view category |
| * @generated |
| */ |
| public UxViewCategory createUxViewCategory() { |
| UxViewCategoryImpl uxViewCategory = new UxViewCategoryImpl(); |
| return uxViewCategory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ux import section declaration |
| * @generated |
| */ |
| public UxImportSectionDeclaration createUxImportSectionDeclaration() { |
| UxImportSectionDeclarationImpl uxImportSectionDeclaration = new UxImportSectionDeclarationImpl(); |
| return uxImportSectionDeclaration; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the ui semantics package |
| * @generated |
| */ |
| public UiSemanticsPackage getUiSemanticsPackage() { |
| return (UiSemanticsPackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> <!-- end-user-doc -->. |
| * |
| * @return the package |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static UiSemanticsPackage getPackage() { |
| return UiSemanticsPackage.eINSTANCE; |
| } |
| |
| } //UiSemanticsFactoryImpl |