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

The following examples show how to use org.eclipse.emf.ecore.EClass#getName() . 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: ReferenceGrammarFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case ReferenceGrammarPackage.SPIELPLATZ: return createSpielplatz();
    case ReferenceGrammarPackage.PERSON: return createPerson();
    case ReferenceGrammarPackage.KIND: return createKind();
    case ReferenceGrammarPackage.ERWACHSENER: return createErwachsener();
    case ReferenceGrammarPackage.SPIELZEUG: return createSpielzeug();
    case ReferenceGrammarPackage.FARBE: return createFarbe();
    case ReferenceGrammarPackage.FAMILIE: return createFamilie();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 2
Source File: PartialParserTestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case PartialParserTestLanguagePackage.SOME_CONTAINER: return createSomeContainer();
    case PartialParserTestLanguagePackage.NESTED: return createNested();
    case PartialParserTestLanguagePackage.CONTENT: return createContent();
    case PartialParserTestLanguagePackage.CHILDREN: return createChildren();
    case PartialParserTestLanguagePackage.CHILD: return createChild();
    case PartialParserTestLanguagePackage.ABSTRACT_CHILDREN: return createAbstractChildren();
    case PartialParserTestLanguagePackage.ABSTRACT_CHILD: return createAbstractChild();
    case PartialParserTestLanguagePackage.FIRST_CONCRETE: return createFirstConcrete();
    case PartialParserTestLanguagePackage.SECOND_CONCRETE: return createSecondConcrete();
    case PartialParserTestLanguagePackage.NAMED: return createNamed();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 3
Source File: TestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public EObject create(EClass eClass)
{
  switch (eClass.getClassifierID())
  {
    case TestLanguagePackage.MODEL: return createModel();
    case TestLanguagePackage.PACKAGE_DECLARATION: return createPackageDeclaration();
    case TestLanguagePackage.ABSTRACT_ELEMENT: return createAbstractElement();
    case TestLanguagePackage.TYPE_DECLARATION: return createTypeDeclaration();
    case TestLanguagePackage.MEMBER: return createMember();
    case TestLanguagePackage.PROPERTY: return createProperty();
    case TestLanguagePackage.TYPE: return createType();
    case TestLanguagePackage.OPERATION: return createOperation();
    case TestLanguagePackage.OPERATION_CALL: return createOperationCall();
    case TestLanguagePackage.PARAMETER: return createParameter();
    case TestLanguagePackage.TYPE_REFERENCE: return createTypeReference();
    case TestLanguagePackage.PRIMITIVE_TYPE: return createPrimitiveType();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 4
Source File: TypesFactoryImpl.java    From statecharts 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 TypesPackage.PACKAGE: return createPackage();
		case TypesPackage.TYPE: return createType();
		case TypesPackage.OPERATION: return createOperation();
		case TypesPackage.PROPERTY: return createProperty();
		case TypesPackage.PARAMETER: return createParameter();
		case TypesPackage.TYPE_SPECIFIER: return createTypeSpecifier();
		case TypesPackage.EVENT: return createEvent();
		case TypesPackage.ENUMERATION_TYPE: return createEnumerationType();
		case TypesPackage.PRIMITIVE_TYPE: return createPrimitiveType();
		case TypesPackage.COMPLEX_TYPE: return createComplexType();
		case TypesPackage.ENUMERATOR: return createEnumerator();
		case TypesPackage.TYPE_PARAMETER: return createTypeParameter();
		case TypesPackage.GENERIC_ELEMENT: return createGenericElement();
		case TypesPackage.DOMAIN: return createDomain();
		case TypesPackage.TYPE_ALIAS: return createTypeAlias();
		case TypesPackage.ANNOTATION: return createAnnotation();
		case TypesPackage.ANNOTATABLE_ELEMENT: return createAnnotatableElement();
		case TypesPackage.ARRAY_TYPE_SPECIFIER: return createArrayTypeSpecifier();
		case TypesPackage.ANNOTATION_TYPE: return createAnnotationType();
		case TypesPackage.TYPED_DECLARATION: return createTypedDeclaration();
		case TypesPackage.META_COMPOSITE: return createMetaComposite();
		default:
			throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
	}
}
 
Example 5
Source File: EcorePerPlatformPluginFactoryImpl.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 EcorePerPlatformPluginPackage.EXTENDS_PLUGIN_EOBJECT: return createExtendsPluginEObject();
		case EcorePerPlatformPluginPackage.EXTENDS_EATTRIBUTE: return createExtendsEAttribute();
		default:
			throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
	}
}
 
Example 6
Source File: Bug287184TestFactoryImpl.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 Bug287184TestPackage.MODEL: return createModel();
    case Bug287184TestPackage.ABSTRACT_DETAIL: return createAbstractDetail();
    case Bug287184TestPackage.DETAIL: return createDetail();
    case Bug287184TestPackage.ASSOCIATED_DETAIL: return createAssociatedDetail();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 7
Source File: BehaviouralModelFactoryImpl.java    From Knowage-Server with GNU Affero General Public License v3.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public EObject create(EClass eClass) {
	switch (eClass.getClassifierID()) {
	case BehaviouralModelPackage.BEHAVIOURAL_MODEL:
		return createBehaviouralModel();
	default:
		throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
	}
}
 
Example 8
Source File: RecordIdentifierPlusType.java    From BIMserver with GNU Affero General Public License v3.0 5 votes vote down vote up
public RecordIdentifierPlusType(EClass eClass, int pid, long oid, int rid) {
	this.packageName = eClass.getEPackage().getName();
	this.className = eClass.getName();
	this.pid = pid;
	this.oid = oid;
	this.rid = rid;
}
 
Example 9
Source File: GraphFactoryImpl.java    From graph-editor 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 GraphPackage.GMODEL: return createGModel();
        case GraphPackage.GNODE: return createGNode();
        case GraphPackage.GCONNECTION: return createGConnection();
        case GraphPackage.GCONNECTOR: return createGConnector();
        case GraphPackage.GJOINT: return createGJoint();
        default:
            throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
    }
}
 
Example 10
Source File: EcoreReferenceFactoryImpl.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 EcoreReferencePackage.MODEL: return createModel();
    case EcoreReferencePackage.MY_NAMED_ELEMENT_01: return createMyNamedElement_01();
    case EcoreReferencePackage.MY_NAMED_ELEMENT_02: return createMyNamedElement_02();
    case EcoreReferencePackage.MY_NAMED_ELEMENT_03: return createMyNamedElement_03();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 11
Source File: ParametersTestLanguageFactoryImpl.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 ParametersTestLanguagePackage.PARSER_RULE_PARAMETERS: return createParserRuleParameters();
    case ParametersTestLanguagePackage.SCENARIO: return createScenario();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 12
Source File: ProjectDescriptionFactoryImpl.java    From n4js 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 ProjectDescriptionPackage.PROJECT_DESCRIPTION: return createProjectDescription();
		case ProjectDescriptionPackage.SOURCE_CONTAINER_DESCRIPTION: return createSourceContainerDescription();
		case ProjectDescriptionPackage.PROJECT_REFERENCE: return createProjectReference();
		case ProjectDescriptionPackage.PROJECT_DEPENDENCY: return createProjectDependency();
		case ProjectDescriptionPackage.MODULE_FILTER: return createModuleFilter();
		case ProjectDescriptionPackage.MODULE_FILTER_SPECIFIER: return createModuleFilterSpecifier();
		default:
			throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
	}
}
 
Example 13
Source File: Bug250313FactoryImpl.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 Bug250313Package.MODEL: return createModel();
    case Bug250313Package.CHILD: return createChild();
    case Bug250313Package.CHILD1: return createChild1();
    case Bug250313Package.CHILD2: return createChild2();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 14
Source File: XtextGrammarTestFactoryImpl.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 XtextGrammarTestPackage.GRAMMAR: return createGrammar();
    case XtextGrammarTestPackage.ABSTRACT_RULE: return createAbstractRule();
    case XtextGrammarTestPackage.ABSTRACT_METAMODEL_DECLARATION: return createAbstractMetamodelDeclaration();
    case XtextGrammarTestPackage.GENERATED_METAMODEL: return createGeneratedMetamodel();
    case XtextGrammarTestPackage.REFERENCED_METAMODEL: return createReferencedMetamodel();
    case XtextGrammarTestPackage.PARSER_RULE: return createParserRule();
    case XtextGrammarTestPackage.TYPE_REF: return createTypeRef();
    case XtextGrammarTestPackage.ABSTRACT_ELEMENT: return createAbstractElement();
    case XtextGrammarTestPackage.ACTION: return createAction();
    case XtextGrammarTestPackage.KEYWORD: return createKeyword();
    case XtextGrammarTestPackage.RULE_CALL: return createRuleCall();
    case XtextGrammarTestPackage.ASSIGNMENT: return createAssignment();
    case XtextGrammarTestPackage.CROSS_REFERENCE: return createCrossReference();
    case XtextGrammarTestPackage.TERMINAL_RULE: return createTerminalRule();
    case XtextGrammarTestPackage.ABSTRACT_NEGATED_TOKEN: return createAbstractNegatedToken();
    case XtextGrammarTestPackage.NEGATED_TOKEN: return createNegatedToken();
    case XtextGrammarTestPackage.UNTIL_TOKEN: return createUntilToken();
    case XtextGrammarTestPackage.WILDCARD: return createWildcard();
    case XtextGrammarTestPackage.ENUM_RULE: return createEnumRule();
    case XtextGrammarTestPackage.ENUM_LITERAL_DECLARATION: return createEnumLiteralDeclaration();
    case XtextGrammarTestPackage.ALTERNATIVES: return createAlternatives();
    case XtextGrammarTestPackage.GROUP: return createGroup();
    case XtextGrammarTestPackage.CHARACTER_RANGE: return createCharacterRange();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 15
Source File: FragmentTestLanguageFactoryImpl.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 FragmentTestLanguagePackage.PARSER_RULE_FRAGMENTS: return createParserRuleFragments();
    case FragmentTestLanguagePackage.PRF_NAMED: return createPRFNamed();
    case FragmentTestLanguagePackage.PRF_NAMED_WITH_ACTION: return createPRFNamedWithAction();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 16
Source File: Bug332217TestLanguageFactoryImpl.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 Bug332217TestLanguagePackage.MODEL: return createModel();
    case Bug332217TestLanguagePackage.PROPERTY_PATH_PART: return createPropertyPathPart();
    case Bug332217TestLanguagePackage.TYPE_DESCRIPTION: return createTypeDescription();
    case Bug332217TestLanguagePackage.PARAMETER: return createParameter();
    case Bug332217TestLanguagePackage.OBJECT_REFERENCE: return createObjectReference();
    case Bug332217TestLanguagePackage.EXPRESSION: return createExpression();
    case Bug332217TestLanguagePackage.SCALAR_EXPRESSION: return createScalarExpression();
    case Bug332217TestLanguagePackage.COLLECTION_EXPRESSION: return createCollectionExpression();
    case Bug332217TestLanguagePackage.STRING_LITERAL: return createStringLiteral();
    case Bug332217TestLanguagePackage.STRING_FUNCTION: return createStringFunction();
    case Bug332217TestLanguagePackage.COLLECTION_LITERAL: return createCollectionLiteral();
    case Bug332217TestLanguagePackage.COLLECTION_FUNCTION: return createCollectionFunction();
    case Bug332217TestLanguagePackage.TABLE_VIEW: return createTableView();
    case Bug332217TestLanguagePackage.VIEW_CONTENT_ELEMENT: return createViewContentElement();
    case Bug332217TestLanguagePackage.SECTION: return createSection();
    case Bug332217TestLanguagePackage.CELL: return createCell();
    case Bug332217TestLanguagePackage.COLLECTION_ITERATOR: return createCollectionIterator();
    case Bug332217TestLanguagePackage.VIEW_ACTION: return createViewAction();
    case Bug332217TestLanguagePackage.SELECTOR: return createSelector();
    case Bug332217TestLanguagePackage.EXTERNAL_OPEN: return createExternalOpen();
    case Bug332217TestLanguagePackage.STRING_CONCAT: return createStringConcat();
    case Bug332217TestLanguagePackage.STRING_REPLACE: return createStringReplace();
    case Bug332217TestLanguagePackage.STRING_URL_CONFORM: return createStringUrlConform();
    case Bug332217TestLanguagePackage.STRING_SPLIT: return createStringSplit();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 17
Source File: BuilderTestLanguageFactoryImpl.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 BuilderTestLanguagePackage.NAMED_ELEMENT: return createNamedElement();
    case BuilderTestLanguagePackage.NAMESPACE: return createNamespace();
    case BuilderTestLanguagePackage.IMPORT: return createImport();
    case BuilderTestLanguagePackage.ELEMENT: return createElement();
    default:
      throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
  }
}
 
Example 18
Source File: ProcessFactoryImpl.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 ProcessPackage.ACTIVITY: return createActivity();
           case ProcessPackage.ACTOR: return createActor();
           case ProcessPackage.ACTOR_FILTER: return createActorFilter();
           case ProcessPackage.AND_GATEWAY: return createANDGateway();
           case ProcessPackage.ASSOCIATION: return createAssociation();
           case ProcessPackage.BOOLEAN_TYPE: return createBooleanType();
           case ProcessPackage.BOUNDARY_EVENT: return createBoundaryEvent();
           case ProcessPackage.BOUNDARY_MESSAGE_EVENT: return createBoundaryMessageEvent();
           case ProcessPackage.BOUNDARY_SIGNAL_EVENT: return createBoundarySignalEvent();
           case ProcessPackage.BOUNDARY_TIMER_EVENT: return createBoundaryTimerEvent();
           case ProcessPackage.BUSINESS_OBJECT_DATA: return createBusinessObjectData();
           case ProcessPackage.BUSINESS_OBJECT_TYPE: return createBusinessObjectType();
           case ProcessPackage.CALL_ACTIVITY: return createCallActivity();
           case ProcessPackage.CATCH_LINK_EVENT: return createCatchLinkEvent();
           case ProcessPackage.CONNECTABLE_ELEMENT: return createConnectableElement();
           case ProcessPackage.CONNECTOR: return createConnector();
           case ProcessPackage.CONTAINER: return createContainer();
           case ProcessPackage.CONTRACT: return createContract();
           case ProcessPackage.CONTRACT_INPUT_MAPPING: return createContractInputMapping();
           case ProcessPackage.CONTRACT_INPUT: return createContractInput();
           case ProcessPackage.CONTRACT_CONSTRAINT: return createContractConstraint();
           case ProcessPackage.CONNECTION: return createConnection();
           case ProcessPackage.CORRELATION: return createCorrelation();
           case ProcessPackage.CORRELATION_ASSOCIATION: return createCorrelationAssociation();
           case ProcessPackage.DATA: return createData();
           case ProcessPackage.DATA_AWARE: return createDataAware();
           case ProcessPackage.DATE_TYPE: return createDateType();
           case ProcessPackage.DOCUMENT: return createDocument();
           case ProcessPackage.DOUBLE_TYPE: return createDoubleType();
           case ProcessPackage.EVENT: return createEvent();
           case ProcessPackage.END_ERROR_EVENT: return createEndErrorEvent();
           case ProcessPackage.END_EVENT: return createEndEvent();
           case ProcessPackage.END_MESSAGE_EVENT: return createEndMessageEvent();
           case ProcessPackage.END_SIGNAL_EVENT: return createEndSignalEvent();
           case ProcessPackage.END_TERMINATED_EVENT: return createEndTerminatedEvent();
           case ProcessPackage.ENUM_TYPE: return createEnumType();
           case ProcessPackage.FLOAT_TYPE: return createFloatType();
           case ProcessPackage.FLOW_ELEMENT: return createFlowElement();
           case ProcessPackage.FORM_MAPPING: return createFormMapping();
           case ProcessPackage.GATEWAY: return createGateway();
           case ProcessPackage.INCLUSIVE_GATEWAY: return createInclusiveGateway();
           case ProcessPackage.INPUT_MAPPING: return createInputMapping();
           case ProcessPackage.INTEGER_TYPE: return createIntegerType();
           case ProcessPackage.INTERMEDIATE_ERROR_CATCH_EVENT: return createIntermediateErrorCatchEvent();
           case ProcessPackage.INTERMEDIATE_CATCH_SIGNAL_EVENT: return createIntermediateCatchSignalEvent();
           case ProcessPackage.INTERMEDIATE_THROW_SIGNAL_EVENT: return createIntermediateThrowSignalEvent();
           case ProcessPackage.INTERMEDIATE_CATCH_MESSAGE_EVENT: return createIntermediateCatchMessageEvent();
           case ProcessPackage.INTERMEDIATE_THROW_MESSAGE_EVENT: return createIntermediateThrowMessageEvent();
           case ProcessPackage.INTERMEDIATE_CATCH_TIMER_EVENT: return createIntermediateCatchTimerEvent();
           case ProcessPackage.JAVA_OBJECT_DATA: return createJavaObjectData();
           case ProcessPackage.JAVA_TYPE: return createJavaType();
           case ProcessPackage.LANE: return createLane();
           case ProcessPackage.LINK_EVENT: return createLinkEvent();
           case ProcessPackage.LONG_TYPE: return createLongType();
           case ProcessPackage.MAIN_PROCESS: return createMainProcess();
           case ProcessPackage.MESSAGE: return createMessage();
           case ProcessPackage.MESSAGE_FLOW: return createMessageFlow();
           case ProcessPackage.MESSAGE_EVENT: return createMessageEvent();
           case ProcessPackage.NON_INTERRUPTING_BOUNDARY_TIMER_EVENT: return createNonInterruptingBoundaryTimerEvent();
           case ProcessPackage.OPERATION_CONTAINER: return createOperationContainer();
           case ProcessPackage.OUTPUT_MAPPING: return createOutputMapping();
           case ProcessPackage.PAGE_FLOW: return createPageFlow();
           case ProcessPackage.POOL: return createPool();
           case ProcessPackage.RECEIVE_TASK: return createReceiveTask();
           case ProcessPackage.SEQUENCE_FLOW: return createSequenceFlow();
           case ProcessPackage.STRING_TYPE: return createStringType();
           case ProcessPackage.SCRIPT_TASK: return createScriptTask();
           case ProcessPackage.SEARCH_INDEX: return createSearchIndex();
           case ProcessPackage.SEND_TASK: return createSendTask();
           case ProcessPackage.SERVICE_TASK: return createServiceTask();
           case ProcessPackage.START_ERROR_EVENT: return createStartErrorEvent();
           case ProcessPackage.START_EVENT: return createStartEvent();
           case ProcessPackage.START_MESSAGE_EVENT: return createStartMessageEvent();
           case ProcessPackage.START_SIGNAL_EVENT: return createStartSignalEvent();
           case ProcessPackage.START_TIMER_EVENT: return createStartTimerEvent();
           case ProcessPackage.SUB_PROCESS_EVENT: return createSubProcessEvent();
           case ProcessPackage.TASK: return createTask();
           case ProcessPackage.TEXT_ANNOTATION: return createTextAnnotation();
           case ProcessPackage.TEXT_ANNOTATION_ATTACHMENT: return createTextAnnotationAttachment();
           case ProcessPackage.THROW_LINK_EVENT: return createThrowLinkEvent();
           case ProcessPackage.THROW_MESSAGE_EVENT: return createThrowMessageEvent();
           case ProcessPackage.TIMER_EVENT: return createTimerEvent();
           case ProcessPackage.XML_DATA: return createXMLData();
           case ProcessPackage.XML_TYPE: return createXMLType();
           case ProcessPackage.XOR_GATEWAY: return createXORGateway();
           case ProcessPackage.ADDITIONAL_RESOURCE: return createAdditionalResource();
           default:
               throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
       }
   }
 
Example 19
Source File: ParserFactoryImpl.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 ParserPackage.COMPONENT:
            return createComponent ();
        case ParserPackage.FILE_INPUT:
            return createFileInput ();
        case ParserPackage.PLAIN_TEXT:
            return createPlainText ();
        case ParserPackage.URL_INPUT:
            return createUrlInput ();
        case ParserPackage.SINGLE_PATTERN:
            return createSinglePattern ();
        case ParserPackage.VALUE_DESCRIPTOR:
            return createValueDescriptor ();
        case ParserPackage.ATTRIBUTE_VALUE:
            return createAttributeValue ();
        case ParserPackage.MAIN_GROUP_FIELD:
            return createMainGroupField ();
        case ParserPackage.STRING_GROUP_FIELD:
            return createStringGroupField ();
        case ParserPackage.NUMERIC_GROUP_FIELD:
            return createNumericGroupField ();
        case ParserPackage.SPLIT_TABLE:
            return createSplitTable ();
        case ParserPackage.STRING_TRANSFORMER:
            return createStringTransformer ();
        case ParserPackage.MQTT_INPUT:
            return createMqttInput ();
        case ParserPackage.BOOLEAN_VALUE_CONVERTER:
            return createBooleanValueConverter ();
        case ParserPackage.DEFAULT_VALUE_CONVERTER:
            return createDefaultValueConverter ();
        case ParserPackage.DOUBLE_VALUE_CONVERTER:
            return createDoubleValueConverter ();
        case ParserPackage.BOOLEAN_SET_VALUE_CONVERTER:
            return createBooleanSetValueConverter ();
        default:
            throw new IllegalArgumentException ( "The class '" + eClass.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
Example 20
Source File: GraphFactoryImpl.java    From graphical-lsp 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 GraphPackage.GGRAPH:
		return createGGraph();
	case GraphPackage.GMODEL_ROOT:
		return createGModelRoot();
	case GraphPackage.GNODE:
		return createGNode();
	case GraphPackage.GEDGE:
		return createGEdge();
	case GraphPackage.GCOMPARTMENT:
		return createGCompartment();
	case GraphPackage.GLABEL:
		return createGLabel();
	case GraphPackage.GISSUE_MARKER:
		return createGIssueMarker();
	case GraphPackage.GPORT:
		return createGPort();
	case GraphPackage.GBUTTON:
		return createGButton();
	case GraphPackage.GPOINT:
		return createGPoint();
	case GraphPackage.GDIMENSION:
		return createGDimension();
	case GraphPackage.GLAYOUT_OPTIONS:
		return createGLayoutOptions();
	case GraphPackage.GEDGE_PLACEMENT:
		return createGEdgePlacement();
	case GraphPackage.GBOUNDS:
		return createGBounds();
	case GraphPackage.GALIGNABLE:
		return createGAlignable();
	case GraphPackage.GISSUE:
		return createGIssue();
	case GraphPackage.GHTML_ROOT:
		return createGHtmlRoot();
	case GraphPackage.GPRE_RENDERED_ELEMENT:
		return createGPreRenderedElement();
	default:
		throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
	}
}