Java Code Examples for org.eclipse.emf.ecore.EClass#getClassifierID()

The following examples show how to use org.eclipse.emf.ecore.EClass#getClassifierID() . 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: EClassifierInfo.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
    * Determine whether the class represented by {@code left} is either the same as
    * or is a superclass of the class represented by {@code right} comparing the classifier ID
    * and namespace URI.
 */
private boolean isAssignableByID(EClass left, EClass right) {
	if (left.getEPackage() != null) {
		// Compare namespace URI and classifier Id
		if (left.getClassifierID() == right.getClassifierID()
				&& right.getEPackage() != null
				&& left.getEPackage().getNsURI().equals(right.getEPackage().getNsURI())) {
			return true;
		}
		// Check all supertypes of the right class
		for (EClass superClass : right.getEAllSuperTypes()) {
			if (left.getClassifierID() == superClass.getClassifierID()
					&& superClass.getEPackage() != null
					&& left.getEPackage().getNsURI().equals(superClass.getEPackage().getNsURI())) {
				return true;
			}
		}
	}
	return false;
}
 
Example 2
Source File: PureXbaseFactoryImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case PureXbasePackage.MODEL: return createModel();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 3
Source File: ExpressionFactoryImpl.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case ExpressionPackage.EXPRESSION: return createExpression();
    case ExpressionPackage.SYNTAX_ELEMENT: return createSyntaxElement();
    case ExpressionPackage.LET_EXPRESSION: return createLetExpression();
    case ExpressionPackage.CASTED_EXPRESSION: return createCastedExpression();
    case ExpressionPackage.IF_EXPRESSION: return createIfExpression();
    case ExpressionPackage.SWITCH_EXPRESSION: return createSwitchExpression();
    case ExpressionPackage.CASE: return createCase();
    case ExpressionPackage.OPERATION_CALL: return createOperationCall();
    case ExpressionPackage.LITERAL: return createLiteral();
    case ExpressionPackage.BOOLEAN_LITERAL: return createBooleanLiteral();
    case ExpressionPackage.INTEGER_LITERAL: return createIntegerLiteral();
    case ExpressionPackage.NULL_LITERAL: return createNullLiteral();
    case ExpressionPackage.REAL_LITERAL: return createRealLiteral();
    case ExpressionPackage.STRING_LITERAL: return createStringLiteral();
    case ExpressionPackage.GLOBAL_VAR_EXPRESSION: return createGlobalVarExpression();
    case ExpressionPackage.FEATURE_CALL: return createFeatureCall();
    case ExpressionPackage.LIST_LITERAL: return createListLiteral();
    case ExpressionPackage.CONSTRUCTOR_CALL_EXPRESSION: return createConstructorCallExpression();
    case ExpressionPackage.TYPE_SELECT_EXPRESSION: return createTypeSelectExpression();
    case ExpressionPackage.COLLECTION_EXPRESSION: return createCollectionExpression();
    case ExpressionPackage.IDENTIFIER: return createIdentifier();
    case ExpressionPackage.CHAIN_EXPRESSION: return createChainExpression();
    case ExpressionPackage.BOOLEAN_OPERATION: return createBooleanOperation();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 4
Source File: Bug292245TestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case Bug292245TestLanguagePackage.MODEL: return createModel();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 5
Source File: InheritanceTestFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case InheritanceTestPackage.MODEL: return createModel();
    case InheritanceTestPackage.ELEMENT: return createElement();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 6
Source File: EpatchTestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case EpatchTestLanguagePackage.EPATCH: return createEPatch();
    case EpatchTestLanguagePackage.IMPORT: return createImport();
    case EpatchTestLanguagePackage.MODEL_IMPORT: return createModelImport();
    case EpatchTestLanguagePackage.RESOURCE_IMPORT: return createResourceImport();
    case EpatchTestLanguagePackage.EPACKAGE_IMPORT: return createEPackageImport();
    case EpatchTestLanguagePackage.JAVA_IMPORT: return createJavaImport();
    case EpatchTestLanguagePackage.EXTENSION_IMPORT: return createExtensionImport();
    case EpatchTestLanguagePackage.NAMED_RESOURCE: return createNamedResource();
    case EpatchTestLanguagePackage.NAMED_OBJECT: return createNamedObject();
    case EpatchTestLanguagePackage.OBJECT_REF: return createObjectRef();
    case EpatchTestLanguagePackage.ASSIGNMENT: return createAssignment();
    case EpatchTestLanguagePackage.SINGLE_ASSIGNMENT: return createSingleAssignment();
    case EpatchTestLanguagePackage.LIST_ASSIGNMENT: return createListAssignment();
    case EpatchTestLanguagePackage.ASSIGNMENT_VALUE: return createAssignmentValue();
    case EpatchTestLanguagePackage.CREATED_OBJECT: return createCreatedObject();
    case EpatchTestLanguagePackage.OBJECT_NEW: return createObjectNew();
    case EpatchTestLanguagePackage.OBJECT_COPY: return createObjectCopy();
    case EpatchTestLanguagePackage.MIGRATION: return createMigration();
    case EpatchTestLanguagePackage.EXECUTABLE: return createExecutable();
    case EpatchTestLanguagePackage.JAVA_EXECUTABLE: return createJavaExecutable();
    case EpatchTestLanguagePackage.EXPRESSION_EXECUTABLE: return createExpressionExecutable();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 7
Source File: ConditionModelFactoryImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case ConditionModelPackage.OPERATION_COMPARE: return createOperation_Compare();
    case ConditionModelPackage.UNARY_OPERATION: return createUnary_Operation();
    case ConditionModelPackage.OPERATION: return createOperation();
    case ConditionModelPackage.EXPRESSION: return createExpression();
    case ConditionModelPackage.EXPRESSION_DOUBLE: return createExpression_Double();
    case ConditionModelPackage.EXPRESSION_INTEGER: return createExpression_Integer();
    case ConditionModelPackage.EXPRESSION_STRING: return createExpression_String();
    case ConditionModelPackage.EXPRESSION_PROCESS_REF: return createExpression_ProcessRef();
    case ConditionModelPackage.EXPRESSION_BOOLEAN: return createExpression_Boolean();
    case ConditionModelPackage.OPERATION_LESS_EQUALS: return createOperation_Less_Equals();
    case ConditionModelPackage.OPERATION_LESS: return createOperation_Less();
    case ConditionModelPackage.OPERATION_GREATER_EQUALS: return createOperation_Greater_Equals();
    case ConditionModelPackage.OPERATION_GREATER: return createOperation_Greater();
    case ConditionModelPackage.OPERATION_NOT_EQUALS: return createOperation_Not_Equals();
    case ConditionModelPackage.OPERATION_EQUALS: return createOperation_Equals();
    case ConditionModelPackage.OPERATION_UNARY: return createOperation_Unary();
    case ConditionModelPackage.OPERATION_NOT_UNARY: return createOperation_NotUnary();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 8
Source File: Bug301935TestFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case Bug301935TestPackage.MODEL: return createModel();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 9
Source File: Bug462047FactoryImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case Bug462047Package.BUG462047_ROOT: return createBug462047Root();
    case Bug462047Package.BUG462047_ELEMENT: return createBug462047Element();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 10
Source File: Bug348199TestLanguageFactoryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case Bug348199TestLanguagePackage.TIMEPERIOD: return createTimeperiod();
    case Bug348199TestLanguagePackage.TIME_DEF: return createTimeDef();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 11
Source File: TraceFactoryImpl.java    From kieker with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass) {
	switch (eClass.getClassifierID()) {
		case TracePackage.TRACE: return createTrace();
		case TracePackage.OPERATION_CALL: return createOperationCall();
		default:
			throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
	}
}
 
Example 12
Source File: ImportedURIFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case ImportedURIPackage.MAIN: return createMain();
    case ImportedURIPackage.IMPORT: return createImport();
    case ImportedURIPackage.TYPE: return createType();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 13
Source File: FormattertestlanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case FormattertestlanguagePackage.ROOT: return createRoot();
    case FormattertestlanguagePackage.LINE: return createLine();
    case FormattertestlanguagePackage.DECL: return createDecl();
    case FormattertestlanguagePackage.ASSIGN: return createAssign();
    case FormattertestlanguagePackage.METH: return createMeth();
    case FormattertestlanguagePackage.PARAM: return createParam();
    case FormattertestlanguagePackage.SPACE: return createSpace();
    case FormattertestlanguagePackage.TEST_LINEWRAP: return createTestLinewrap();
    case FormattertestlanguagePackage.TEST_LINEWRAP_MIN_MAX: return createTestLinewrapMinMax();
    case FormattertestlanguagePackage.TEST_INDENTATION: return createTestIndentation();
    case FormattertestlanguagePackage.FQN_OBJ: return createFqnObj();
    case FormattertestlanguagePackage.FQN_REF: return createFqnRef();
    case FormattertestlanguagePackage.ENUMERATION: return createEnumeration();
    case FormattertestlanguagePackage.SUPPRESSED_HIDDEN: return createSuppressedHidden();
    case FormattertestlanguagePackage.SUPPRESSED_HIDDEN_SUB: return createSuppressedHiddenSub();
    case FormattertestlanguagePackage.SUPPRESSED_HIDDEN_SUB_SUB: return createSuppressedHiddenSubSub();
    case FormattertestlanguagePackage.SUPPRESSED_HIDDEN_SUB_ID: return createSuppressedHiddenSubID();
    case FormattertestlanguagePackage.DATATYPES: return createDatatypes();
    case FormattertestlanguagePackage.WRAPPING_DATA_TYPE_TEST: return createWrappingDataTypeTest();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 14
Source File: CamelPropertiesFactoryImpl.java    From tesb-studio-se with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass) {
    switch (eClass.getClassifierID()) {
        case CamelPropertiesPackage.BEAN_ITEM: return createBeanItem();
        case CamelPropertiesPackage.CAMEL_PROCESS_ITEM: return createCamelProcessItem();
        case CamelPropertiesPackage.ROUTE_RESOURCE_ITEM: return createRouteResourceItem();
        case CamelPropertiesPackage.ROUTE_DOCUMENT_ITEM: return createRouteDocumentItem();
        case CamelPropertiesPackage.ROUTELET_PROCESS_ITEM: return createRouteletProcessItem();
        default:
            throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
    }
}
 
Example 15
Source File: ProcessPaletteLabelProvider.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
protected int getEClassifierId(final EClass eClass) {
    Assert.isLegal(eClass != null);
    Assert.isLegal(ProcessPackage.eINSTANCE.equals(eClass.getEPackage()), MessageFormat.format("EClass {0} is not supported.", eClass.getName()));
    return eClass.getClassifierID();
}
 
Example 16
Source File: WorldFactoryImpl.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create ( EClass eClass )
{
    switch ( eClass.getClassifierID () )
    {
        case WorldPackage.WORLD:
            return createWorld ();
        case WorldPackage.APPLICATION_NODE:
            return createApplicationNode ();
        case WorldPackage.ENDPOINT:
            return createEndpoint ();
        case WorldPackage.EXEC_DRIVER:
            return createExecDriver ();
        case WorldPackage.HANDLER_PRIORITY_RULE:
            return createHandlerPriorityRule ();
        case WorldPackage.MASTER_HANDLER_PRIORITIES:
            return createMasterHandlerPriorities ();
        case WorldPackage.OPTIONS:
            return createOptions ();
        case WorldPackage.USERNAME_PASSWORD_CREDENTIALS:
            return createUsernamePasswordCredentials ();
        case WorldPackage.PASSWORD_CREDENTIALS:
            return createPasswordCredentials ();
        case WorldPackage.EXTERNAL_NODE:
            return createExternalNode ();
        case WorldPackage.PROPERTY_ENTRY:
            return createPropertyEntry ();
        case WorldPackage.CONTAINED_SERVICE_BINDING:
            return createContainedServiceBinding ();
        case WorldPackage.REFERENCED_SERVICE_BINDING:
            return createReferencedServiceBinding ();
        case WorldPackage.GENERIC_SETTINGS_CONTAINER:
            return createGenericSettingsContainer ();
        case WorldPackage.GENERIC_DATABASE_SETTINGS:
            return createGenericDatabaseSettings ();
        case WorldPackage.POSTGRES_DATABASE_SETTINGS:
            return createPostgresDatabaseSettings ();
        default:
            throw new IllegalArgumentException ( "The class '" + eClass.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
Example 17
Source File: AttributeFactoryImpl.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create( EClass eClass )
{
	switch ( eClass.getClassifierID( ) )
	{
		case AttributePackage.ACCESSIBILITY_VALUE :
			return (EObject) createAccessibilityValue( );
		case AttributePackage.ACTION_VALUE :
			return (EObject) createActionValue( );
		case AttributePackage.ANGLE3_D :
			return (EObject) createAngle3D( );
		case AttributePackage.AXIS_ORIGIN :
			return (EObject) createAxisOrigin( );
		case AttributePackage.BOUNDS :
			return (EObject) createBounds( );
		case AttributePackage.CALL_BACK_VALUE :
			return (EObject) createCallBackValue( );
		case AttributePackage.COLOR_DEFINITION :
			return (EObject) createColorDefinition( );
		case AttributePackage.CURSOR :
			return (EObject) createCursor( );
		case AttributePackage.DATA_POINT :
			return (EObject) createDataPoint( );
		case AttributePackage.DATA_POINT_COMPONENT :
			return (EObject) createDataPointComponent( );
		case AttributePackage.DATE_FORMAT_SPECIFIER :
			return (EObject) createDateFormatSpecifier( );
		case AttributePackage.EMBEDDED_IMAGE :
			return (EObject) createEmbeddedImage( );
		case AttributePackage.ESTRING_TO_STRING_MAP_ENTRY :
			return (EObject) createEStringToStringMapEntry( );
		case AttributePackage.EXTENDED_PROPERTY :
			return (EObject) createExtendedProperty( );
		case AttributePackage.FILL :
			return (EObject) createFill( );
		case AttributePackage.FONT_DEFINITION :
			return (EObject) createFontDefinition( );
		case AttributePackage.FORMAT_SPECIFIER :
			return (EObject) createFormatSpecifier( );
		case AttributePackage.FRACTION_NUMBER_FORMAT_SPECIFIER :
			return (EObject) createFractionNumberFormatSpecifier( );
		case AttributePackage.GRADIENT :
			return (EObject) createGradient( );
		case AttributePackage.IMAGE :
			return (EObject) createImage( );
		case AttributePackage.INSETS :
			return (EObject) createInsets( );
		case AttributePackage.INTERACTIVITY :
			return (EObject) createInteractivity( );
		case AttributePackage.JAVA_DATE_FORMAT_SPECIFIER :
			return (EObject) createJavaDateFormatSpecifier( );
		case AttributePackage.JAVA_NUMBER_FORMAT_SPECIFIER :
			return (EObject) createJavaNumberFormatSpecifier( );
		case AttributePackage.LINE_ATTRIBUTES :
			return (EObject) createLineAttributes( );
		case AttributePackage.LOCATION :
			return (EObject) createLocation( );
		case AttributePackage.LOCATION3_D :
			return (EObject) createLocation3D( );
		case AttributePackage.MARKER :
			return (EObject) createMarker( );
		case AttributePackage.MULTIPLE_FILL :
			return (EObject) createMultipleFill( );
		case AttributePackage.MULTI_URL_VALUES :
			return (EObject) createMultiURLValues( );
		case AttributePackage.NUMBER_FORMAT_SPECIFIER :
			return (EObject) createNumberFormatSpecifier( );
		case AttributePackage.PALETTE :
			return (EObject) createPalette( );
		case AttributePackage.PATTERN_IMAGE :
			return (EObject) createPatternImage( );
		case AttributePackage.ROTATION3_D :
			return (EObject) createRotation3D( );
		case AttributePackage.SCRIPT_VALUE :
			return (EObject) createScriptValue( );
		case AttributePackage.SERIES_VALUE :
			return (EObject) createSeriesValue( );
		case AttributePackage.SIZE :
			return (EObject) createSize( );
		case AttributePackage.STRING_FORMAT_SPECIFIER :
			return (EObject) createStringFormatSpecifier( );
		case AttributePackage.STYLE :
			return (EObject) createStyle( );
		case AttributePackage.STYLE_MAP :
			return (EObject) createStyleMap( );
		case AttributePackage.TEXT :
			return (EObject) createText( );
		case AttributePackage.TEXT_ALIGNMENT :
			return (EObject) createTextAlignment( );
		case AttributePackage.TOOLTIP_VALUE :
			return (EObject) createTooltipValue( );
		case AttributePackage.URL_VALUE :
			return (EObject) createURLValue( );
		default :
			throw new IllegalArgumentException( "The class '" + eClass.getName( ) + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
Example 18
Source File: FormFactoryImpl.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public EObject create(EClass eClass) {
       switch (eClass.getClassifierID()) {
           case FormPackage.WIDGET_DEPENDENCY: return createWidgetDependency();
           case FormPackage.VALIDATOR: return createValidator();
           case FormPackage.VALIDABLE: return createValidable();
           case FormPackage.FORM: return createForm();
           case FormPackage.WIDGET_LAYOUT_INFO: return createWidgetLayoutInfo();
           case FormPackage.COLUMN: return createColumn();
           case FormPackage.LINE: return createLine();
           case FormPackage.VIEW_FORM: return createViewForm();
           case FormPackage.GROUP: return createGroup();
           case FormPackage.CHECK_BOX_MULTIPLE_FORM_FIELD: return createCheckBoxMultipleFormField();
           case FormPackage.COMBO_FORM_FIELD: return createComboFormField();
           case FormPackage.DATE_FORM_FIELD: return createDateFormField();
           case FormPackage.LIST_FORM_FIELD: return createListFormField();
           case FormPackage.PASSWORD_FORM_FIELD: return createPasswordFormField();
           case FormPackage.RADIO_FORM_FIELD: return createRadioFormField();
           case FormPackage.SELECT_FORM_FIELD: return createSelectFormField();
           case FormPackage.TEXT_FORM_FIELD: return createTextFormField();
           case FormPackage.TEXT_AREA_FORM_FIELD: return createTextAreaFormField();
           case FormPackage.RICH_TEXT_AREA_FORM_FIELD: return createRichTextAreaFormField();
           case FormPackage.FORM_BUTTON: return createFormButton();
           case FormPackage.SUBMIT_FORM_BUTTON: return createSubmitFormButton();
           case FormPackage.PREVIOUS_FORM_BUTTON: return createPreviousFormButton();
           case FormPackage.NEXT_FORM_BUTTON: return createNextFormButton();
           case FormPackage.INFO: return createInfo();
           case FormPackage.TEXT_INFO: return createTextInfo();
           case FormPackage.MESSAGE_INFO: return createMessageInfo();
           case FormPackage.CHECK_BOX_SINGLE_FORM_FIELD: return createCheckBoxSingleFormField();
           case FormPackage.FILE_WIDGET: return createFileWidget();
           case FormPackage.IMAGE_WIDGET: return createImageWidget();
           case FormPackage.HIDDEN_WIDGET: return createHiddenWidget();
           case FormPackage.DURATION_FORM_FIELD: return createDurationFormField();
           case FormPackage.TABLE: return createTable();
           case FormPackage.DYNAMIC_TABLE: return createDynamicTable();
           case FormPackage.IFRAME_WIDGET: return createIFrameWidget();
           case FormPackage.HTML_WIDGET: return createHtmlWidget();
           case FormPackage.SUGGEST_BOX: return createSuggestBox();
           case FormPackage.GROUP_ITERATOR: return createGroupIterator();
           default:
               throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
       }
   }
 
Example 19
Source File: SequencertestFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case SequencertestPackage.MODEL: return createModel();
    case SequencertestPackage.SIMPLE_GROUP: return createSimpleGroup();
    case SequencertestPackage.SIMPLE_ALTERNATIVE: return createSimpleAlternative();
    case SequencertestPackage.SIMPLE_MULTIPLICITIES: return createSimpleMultiplicities();
    case SequencertestPackage.GROUP_MULTIPLICITIES: return createGroupMultiplicities();
    case SequencertestPackage.ALTERNATIVE_MULTIPLICITIES: return createAlternativeMultiplicities();
    case SequencertestPackage.LIST1: return createList1();
    case SequencertestPackage.LIST2: return createList2();
    case SequencertestPackage.ALT_LIST1: return createAltList1();
    case SequencertestPackage.ALT_LIST2: return createAltList2();
    case SequencertestPackage.SINGLE_KEYWORDS: return createSingleKeywords();
    case SequencertestPackage.SINGLE_KEYWORDS_OR_ID: return createSingleKeywordsOrID();
    case SequencertestPackage.SINGLE_TERMINALS: return createSingleTerminals();
    case SequencertestPackage.SINGLE_ENUM: return createSingleEnum();
    case SequencertestPackage.SINGLE_CROSS_REFERENCE: return createSingleCrossReference();
    case SequencertestPackage.SINGLE_CONTAINMENT_REFERENCE: return createSingleContainmentReference();
    case SequencertestPackage.SINGLE_CONTAINMENT_REFERENCE_CHILD1: return createSingleContainmentReferenceChild1();
    case SequencertestPackage.SINGLE_CONTAINMENT_REFERENCE_CHILD2: return createSingleContainmentReferenceChild2();
    case SequencertestPackage.SINGLE_CONTAINMENT_REFERENCE_CHILD3: return createSingleContainmentReferenceChild3();
    case SequencertestPackage.MULTI_KEYWORDS: return createMultiKeywords();
    case SequencertestPackage.MULTI_KEYWORDS_OR_ID: return createMultiKeywordsOrID();
    case SequencertestPackage.MULTI_TERMINALS: return createMultiTerminals();
    case SequencertestPackage.DEPENDENT_ALTERNATIVE1: return createDependentAlternative1();
    case SequencertestPackage.DEPENDENT_ALTERNATIVE2: return createDependentAlternative2();
    case SequencertestPackage.OPTIONAL: return createOptional();
    case SequencertestPackage.FLOAT: return createFloat();
    case SequencertestPackage.UNORDERED_ALTERNATIVE: return createUnorderedAlternative();
    case SequencertestPackage.UNORDERED_ALTERNATIVE_VAL: return createUnorderedAlternativeVal();
    case SequencertestPackage.UNORDERED_ALTERNATIVE_VAL_DELEGATE: return createUnorderedAlternativeValDelegate();
    case SequencertestPackage.UNORDERED_ALTERNATIVE_VAL2: return createUnorderedAlternativeVal2();
    case SequencertestPackage.UNORDERED_GROUP: return createUnorderedGroup();
    case SequencertestPackage.UNORDERED_GROUP_VAL: return createUnorderedGroupVal();
    case SequencertestPackage.UNORDERED_GROUP_VAL_DELEGATE: return createUnorderedGroupValDelegate();
    case SequencertestPackage.UNORDERED_GROUP_VAL2: return createUnorderedGroupVal2();
    case SequencertestPackage.UNORDERED_GROUP_OPTIONAL: return createUnorderedGroupOptional();
    case SequencertestPackage.UNORDERED_GROUP_BOOLEAN: return createUnorderedGroupBoolean();
    case SequencertestPackage.COMPLEX1: return createComplex1();
    case SequencertestPackage.OPTIONAL_DOUBLE: return createOptionalDouble();
    case SequencertestPackage.NULL_VALUE: return createNullValue();
    case SequencertestPackage.NULL_CROSS_REF: return createNullCrossRef();
    case SequencertestPackage.FRAGMENT_CALLER_TYPE: return createFragmentCallerType();
    case SequencertestPackage.PARAMETER_CALLER: return createParameterCaller();
    case SequencertestPackage.PARAMETERIZED: return createParameterized();
    case SequencertestPackage.PARAMETER_DELEGATION: return createParameterDelegation();
    case SequencertestPackage.DELEGATION: return createDelegation();
    case SequencertestPackage.DELEGATION_A: return createDelegationA();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 20
Source File: DetailViewFactoryImpl.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create ( EClass eClass )
{
    switch ( eClass.getClassifierID () )
    {
        case DetailViewPackage.VIEW:
            return createView ();
        case DetailViewPackage.GROUP_ENTRY:
            return createGroupEntry ();
        case DetailViewPackage.LABEL_COMPONENT:
            return createLabelComponent ();
        case DetailViewPackage.FILL_LAYOUT_COMPONENT:
            return createFillLayoutComponent ();
        case DetailViewPackage.BUTTON_COMPONENT:
            return createButtonComponent ();
        case DetailViewPackage.BOOL_LED_COMPONENT:
            return createBoolLEDComponent ();
        case DetailViewPackage.ITEM_VALUE_SOURCE:
            return createItemValueSource ();
        case DetailViewPackage.NOT_TRANSFORMER:
            return createNotTransformer ();
        case DetailViewPackage.REGISTRATION:
            return createRegistration ();
        case DetailViewPackage.SIMPLE_GRID_COMPONENT:
            return createSimpleGridComponent ();
        case DetailViewPackage.GROUP_GRID_COMPONENT:
            return createGroupGridComponent ();
        case DetailViewPackage.GROUP_GRID_ENTRY:
            return createGroupGridEntry ();
        case DetailViewPackage.VALUE_SET_COMPONENT:
            return createValueSetComponent ();
        case DetailViewPackage.VALUE_COMPONENT:
            return createValueComponent ();
        case DetailViewPackage.AND_TRANSFORMER:
            return createAndTransformer ();
        case DetailViewPackage.OR_TRANSFORMER:
            return createOrTransformer ();
        case DetailViewPackage.TEXT_INPUT_COMPONENT:
            return createTextInputComponent ();
        case DetailViewPackage.TEXT_COMPONENT:
            return createTextComponent ();
        case DetailViewPackage.TEXT_INPUT_MULTI_COMPONENT:
            return createTextInputMultiComponent ();
        case DetailViewPackage.CHECK_COMPONENT:
            return createCheckComponent ();
        case DetailViewPackage.LINK_COMPONENT:
            return createLinkComponent ();
        case DetailViewPackage.URL_IMAGE_COMPONENT:
            return createURLImageComponent ();
        case DetailViewPackage.PROGRESS_COMPONENT:
            return createProgressComponent ();
        case DetailViewPackage.HIDDEN_COMPONENT:
            return createHiddenComponent ();
        case DetailViewPackage.SCRIPT_VISIBILITY:
            return createScriptVisibility ();
        case DetailViewPackage.PERMISSION_VISIBILITY:
            return createPermissionVisibility ();
        case DetailViewPackage.INVISIBLE:
            return createInvisible ();
        case DetailViewPackage.TEST_VISIBILITY:
            return createTestVisibility ();
        case DetailViewPackage.SCRIPT_MODULE:
            return createScriptModule ();
        case DetailViewPackage.BROWSER_COMPONENT:
            return createBrowserComponent ();
        default:
            throw new IllegalArgumentException ( "The class '" + eClass.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}