| /******************************************************************************* |
| * Copyright (c) 2010, 2019 Willink Transformations and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * Contributors: |
| * E.D.Willink - Initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.ocl.pivot.internal; |
| |
| import java.math.BigDecimal; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EDataType; |
| 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.jdt.annotation.NonNull; |
| import org.eclipse.ocl.pivot.Annotation; |
| import org.eclipse.ocl.pivot.AnyType; |
| import org.eclipse.ocl.pivot.AssociationClass; |
| import org.eclipse.ocl.pivot.AssociationClassCallExp; |
| import org.eclipse.ocl.pivot.AssociativityKind; |
| import org.eclipse.ocl.pivot.BagType; |
| import org.eclipse.ocl.pivot.BooleanLiteralExp; |
| import org.eclipse.ocl.pivot.CallOperationAction; |
| import org.eclipse.ocl.pivot.CollectionItem; |
| import org.eclipse.ocl.pivot.CollectionKind; |
| import org.eclipse.ocl.pivot.CollectionLiteralExp; |
| import org.eclipse.ocl.pivot.CollectionRange; |
| import org.eclipse.ocl.pivot.CollectionType; |
| import org.eclipse.ocl.pivot.Comment; |
| import org.eclipse.ocl.pivot.CompleteClass; |
| import org.eclipse.ocl.pivot.CompleteEnvironment; |
| import org.eclipse.ocl.pivot.CompleteModel; |
| import org.eclipse.ocl.pivot.CompletePackage; |
| import org.eclipse.ocl.pivot.ConnectionPointReference; |
| import org.eclipse.ocl.pivot.Constraint; |
| import org.eclipse.ocl.pivot.DataType; |
| import org.eclipse.ocl.pivot.Detail; |
| import org.eclipse.ocl.pivot.DynamicBehavior; |
| import org.eclipse.ocl.pivot.DynamicElement; |
| import org.eclipse.ocl.pivot.DynamicProperty; |
| import org.eclipse.ocl.pivot.DynamicType; |
| import org.eclipse.ocl.pivot.DynamicValueSpecification; |
| import org.eclipse.ocl.pivot.ElementExtension; |
| import org.eclipse.ocl.pivot.EnumLiteralExp; |
| import org.eclipse.ocl.pivot.Enumeration; |
| import org.eclipse.ocl.pivot.EnumerationLiteral; |
| import org.eclipse.ocl.pivot.ExpressionInOCL; |
| import org.eclipse.ocl.pivot.FinalState; |
| import org.eclipse.ocl.pivot.IfExp; |
| import org.eclipse.ocl.pivot.Import; |
| import org.eclipse.ocl.pivot.InstanceSpecification; |
| import org.eclipse.ocl.pivot.IntegerLiteralExp; |
| import org.eclipse.ocl.pivot.InvalidLiteralExp; |
| import org.eclipse.ocl.pivot.InvalidType; |
| import org.eclipse.ocl.pivot.IterateExp; |
| import org.eclipse.ocl.pivot.Iteration; |
| import org.eclipse.ocl.pivot.IteratorExp; |
| import org.eclipse.ocl.pivot.IteratorVariable; |
| import org.eclipse.ocl.pivot.LambdaType; |
| import org.eclipse.ocl.pivot.LetExp; |
| import org.eclipse.ocl.pivot.LetVariable; |
| import org.eclipse.ocl.pivot.Library; |
| import org.eclipse.ocl.pivot.MapLiteralExp; |
| import org.eclipse.ocl.pivot.MapLiteralPart; |
| import org.eclipse.ocl.pivot.MapType; |
| import org.eclipse.ocl.pivot.MessageExp; |
| import org.eclipse.ocl.pivot.MessageType; |
| import org.eclipse.ocl.pivot.Model; |
| import org.eclipse.ocl.pivot.NullLiteralExp; |
| import org.eclipse.ocl.pivot.Operation; |
| import org.eclipse.ocl.pivot.OperationCallExp; |
| import org.eclipse.ocl.pivot.OppositePropertyCallExp; |
| import org.eclipse.ocl.pivot.OrderedSetType; |
| import org.eclipse.ocl.pivot.OrphanCompletePackage; |
| import org.eclipse.ocl.pivot.Parameter; |
| import org.eclipse.ocl.pivot.ParameterVariable; |
| import org.eclipse.ocl.pivot.PivotFactory; |
| import org.eclipse.ocl.pivot.PivotPackage; |
| import org.eclipse.ocl.pivot.Precedence; |
| import org.eclipse.ocl.pivot.PrimitiveCompletePackage; |
| import org.eclipse.ocl.pivot.PrimitiveType; |
| import org.eclipse.ocl.pivot.Profile; |
| import org.eclipse.ocl.pivot.ProfileApplication; |
| import org.eclipse.ocl.pivot.Property; |
| import org.eclipse.ocl.pivot.PropertyCallExp; |
| import org.eclipse.ocl.pivot.Pseudostate; |
| import org.eclipse.ocl.pivot.PseudostateKind; |
| import org.eclipse.ocl.pivot.RealLiteralExp; |
| import org.eclipse.ocl.pivot.Region; |
| import org.eclipse.ocl.pivot.ResultVariable; |
| import org.eclipse.ocl.pivot.SelfType; |
| import org.eclipse.ocl.pivot.SendSignalAction; |
| import org.eclipse.ocl.pivot.SequenceType; |
| import org.eclipse.ocl.pivot.SetType; |
| import org.eclipse.ocl.pivot.ShadowExp; |
| import org.eclipse.ocl.pivot.ShadowPart; |
| import org.eclipse.ocl.pivot.Signal; |
| import org.eclipse.ocl.pivot.Slot; |
| import org.eclipse.ocl.pivot.StandardLibrary; |
| import org.eclipse.ocl.pivot.State; |
| import org.eclipse.ocl.pivot.StateExp; |
| import org.eclipse.ocl.pivot.StateMachine; |
| import org.eclipse.ocl.pivot.Stereotype; |
| import org.eclipse.ocl.pivot.StereotypeExtender; |
| import org.eclipse.ocl.pivot.StringLiteralExp; |
| import org.eclipse.ocl.pivot.TemplateBinding; |
| import org.eclipse.ocl.pivot.TemplateParameter; |
| import org.eclipse.ocl.pivot.TemplateParameterSubstitution; |
| import org.eclipse.ocl.pivot.TemplateSignature; |
| import org.eclipse.ocl.pivot.Transition; |
| import org.eclipse.ocl.pivot.TransitionKind; |
| import org.eclipse.ocl.pivot.Trigger; |
| import org.eclipse.ocl.pivot.TupleLiteralExp; |
| import org.eclipse.ocl.pivot.TupleLiteralPart; |
| import org.eclipse.ocl.pivot.TupleType; |
| import org.eclipse.ocl.pivot.TypeExp; |
| import org.eclipse.ocl.pivot.UnlimitedNaturalLiteralExp; |
| import org.eclipse.ocl.pivot.UnspecifiedValueExp; |
| import org.eclipse.ocl.pivot.Variable; |
| import org.eclipse.ocl.pivot.VariableExp; |
| import org.eclipse.ocl.pivot.VoidType; |
| import org.eclipse.ocl.pivot.WildcardType; |
| import org.eclipse.ocl.pivot.library.LibraryFeature; |
| import org.eclipse.ocl.pivot.utilities.StringUtil; |
| import org.eclipse.ocl.pivot.values.Unlimited; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model <b>Factory</b>. |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public class PivotFactoryImpl |
| extends EFactoryImpl |
| implements PivotFactory { |
| |
| /** |
| * Creates the default factory implementation. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public static PivotFactory init() { |
| try |
| { |
| PivotFactory thePivotFactory = (PivotFactory)EPackage.Registry.INSTANCE.getEFactory(PivotPackage.eNS_URI); |
| if (thePivotFactory != null) |
| { |
| return thePivotFactory; |
| } |
| } |
| catch (Exception exception) |
| { |
| EcorePlugin.INSTANCE.log(exception); |
| } |
| return new PivotFactoryImpl(); |
| } |
| |
| /** |
| * Creates an instance of the factory. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PivotFactoryImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull EObject create(EClass eClass) { |
| switch (eClass.getClassifierID()) |
| { |
| case 0: return createAnnotation(); |
| case 1: return createAnyType(); |
| case 2: return createAssociationClass(); |
| case 3: return createAssociationClassCallExp(); |
| case 4: return createBagType(); |
| case 6: return createBooleanLiteralExp(); |
| case 8: return createCallOperationAction(); |
| case 9: return createClass(); |
| case 10: return createCollectionItem(); |
| case 11: return createCollectionLiteralExp(); |
| case 13: return createCollectionRange(); |
| case 14: return createCollectionType(); |
| case 15: return createComment(); |
| case 16: return createCompleteClass(); |
| case 17: return createCompleteEnvironment(); |
| case 18: return createCompleteModel(); |
| case 19: return createCompletePackage(); |
| case 20: return createConnectionPointReference(); |
| case 21: return createConstraint(); |
| case 22: return createDataType(); |
| case 23: return createDetail(); |
| case 24: return createDynamicBehavior(); |
| case 25: return createDynamicElement(); |
| case 26: return createDynamicProperty(); |
| case 27: return createDynamicType(); |
| case 28: return createDynamicValueSpecification(); |
| case 30: return createElementExtension(); |
| case 31: return createEnumLiteralExp(); |
| case 32: return createEnumeration(); |
| case 33: return createEnumerationLiteral(); |
| case 34: return createExpressionInOCL(); |
| case 37: return createFinalState(); |
| case 38: return createIfExp(); |
| case 39: return createImport(); |
| case 40: return createInstanceSpecification(); |
| case 41: return createIntegerLiteralExp(); |
| case 42: return createInvalidLiteralExp(); |
| case 43: return createInvalidType(); |
| case 45: return createIterateExp(); |
| case 46: return createIteration(); |
| case 47: return createIteratorExp(); |
| case 48: return createIteratorVariable(); |
| case 49: return createLambdaType(); |
| case 51: return createLetExp(); |
| case 52: return createLetVariable(); |
| case 53: return createLibrary(); |
| case 56: return createMapLiteralExp(); |
| case 57: return createMapLiteralPart(); |
| case 58: return createMapType(); |
| case 59: return createMessageExp(); |
| case 60: return createMessageType(); |
| case 61: return createModel(); |
| case 67: return createNullLiteralExp(); |
| case 70: return createOperation(); |
| case 71: return createOperationCallExp(); |
| case 72: return createOppositePropertyCallExp(); |
| case 73: return createOrderedSetType(); |
| case 74: return createOrphanCompletePackage(); |
| case 75: return createPackage(); |
| case 76: return createParameter(); |
| case 77: return createParameterVariable(); |
| case 79: return createPrecedence(); |
| case 80: return createPrimitiveCompletePackage(); |
| case 82: return createPrimitiveType(); |
| case 83: return createProfile(); |
| case 84: return createProfileApplication(); |
| case 85: return createProperty(); |
| case 86: return createPropertyCallExp(); |
| case 87: return createPseudostate(); |
| case 88: return createRealLiteralExp(); |
| case 90: return createRegion(); |
| case 91: return createResultVariable(); |
| case 92: return createSelfType(); |
| case 93: return createSendSignalAction(); |
| case 94: return createSequenceType(); |
| case 95: return createSetType(); |
| case 96: return createShadowExp(); |
| case 97: return createShadowPart(); |
| case 98: return createSignal(); |
| case 99: return createSlot(); |
| case 100: return createStandardLibrary(); |
| case 101: return createState(); |
| case 102: return createStateExp(); |
| case 103: return createStateMachine(); |
| case 104: return createStereotype(); |
| case 105: return createStereotypeExtender(); |
| case 106: return createStringLiteralExp(); |
| case 107: return createTemplateBinding(); |
| case 108: return createTemplateParameter(); |
| case 109: return createTemplateParameterSubstitution(); |
| case 110: return createTemplateSignature(); |
| case 112: return createTransition(); |
| case 113: return createTrigger(); |
| case 114: return createTupleLiteralExp(); |
| case 115: return createTupleLiteralPart(); |
| case 116: return createTupleType(); |
| case 118: return createTypeExp(); |
| case 120: return createUnlimitedNaturalLiteralExp(); |
| case 121: return createUnspecifiedValueExp(); |
| case 123: return createVariable(); |
| case 125: return createVariableExp(); |
| case 128: return createVoidType(); |
| case 129: return createWildcardType(); |
| default: |
| throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object createFromString(EDataType eDataType, String initialValue) { |
| switch (eDataType.getClassifierID()) |
| { |
| case 130: |
| return createAssociativityKindFromString(eDataType, initialValue); |
| case 131: |
| return createCollectionKindFromString(eDataType, initialValue); |
| case 132: |
| return createPseudostateKindFromString(eDataType, initialValue); |
| case 133: |
| return createTransitionKindFromString(eDataType, initialValue); |
| case 134: |
| return createBooleanFromString(eDataType, initialValue); |
| case 135: |
| return createIntegerFromString(eDataType, initialValue); |
| case 136: |
| return createLibraryFeatureFromString(eDataType, initialValue); |
| case 137: |
| return createObjectFromString(eDataType, initialValue); |
| case 138: |
| return createRealFromString(eDataType, initialValue); |
| case 139: |
| return createStringFromString(eDataType, initialValue); |
| case 140: |
| return createThrowableFromString(eDataType, initialValue); |
| case 141: |
| return createUnlimitedNaturalFromString(eDataType, initialValue); |
| default: |
| throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String convertToString(EDataType eDataType, Object instanceValue) { |
| switch (eDataType.getClassifierID()) |
| { |
| case 130: |
| return convertAssociativityKindToString(eDataType, instanceValue); |
| case 131: |
| return convertCollectionKindToString(eDataType, instanceValue); |
| case 132: |
| return convertPseudostateKindToString(eDataType, instanceValue); |
| case 133: |
| return convertTransitionKindToString(eDataType, instanceValue); |
| case 134: |
| return convertBooleanToString(eDataType, instanceValue); |
| case 135: |
| return convertIntegerToString(eDataType, instanceValue); |
| case 136: |
| return convertLibraryFeatureToString(eDataType, instanceValue); |
| case 137: |
| return convertObjectToString(eDataType, instanceValue); |
| case 138: |
| return convertRealToString(eDataType, instanceValue); |
| case 139: |
| return convertStringToString(eDataType, instanceValue); |
| case 140: |
| return convertThrowableToString(eDataType, instanceValue); |
| case 141: |
| return convertUnlimitedNaturalToString(eDataType, instanceValue); |
| default: |
| throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Annotation createAnnotation() { |
| AnnotationImpl annotation = new AnnotationImpl(); |
| return annotation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| @Override |
| public org.eclipse.ocl.pivot.@NonNull Class createClass() { |
| ClassImpl class_ = new ClassImpl(); |
| return class_; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TemplateBinding createTemplateBinding() { |
| TemplateBindingImpl templateBinding = new TemplateBindingImpl(); |
| return templateBinding; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TemplateSignature createTemplateSignature() { |
| TemplateSignatureImpl templateSignature = new TemplateSignatureImpl(); |
| return templateSignature; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Transition createTransition() |
| { |
| TransitionImpl transition = new TransitionImpl(); |
| return transition; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Trigger createTrigger() |
| { |
| TriggerImpl trigger = new TriggerImpl(); |
| return trigger; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TemplateParameter createTemplateParameter() { |
| TemplateParameterImpl templateParameter = new TemplateParameterImpl(); |
| return templateParameter; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TemplateParameterSubstitution createTemplateParameterSubstitution() { |
| TemplateParameterSubstitutionImpl templateParameterSubstitution = new TemplateParameterSubstitutionImpl(); |
| return templateParameterSubstitution; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| @Override |
| public org.eclipse.ocl.pivot.@NonNull Package createPackage() { |
| PackageImpl package_ = new PackageImpl(); |
| return package_; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Precedence createPrecedence() { |
| PrecedenceImpl precedence = new PrecedenceImpl(); |
| return precedence; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull PrimitiveCompletePackage createPrimitiveCompletePackage() |
| { |
| PrimitiveCompletePackageImpl primitiveCompletePackage = new PrimitiveCompletePackageImpl(); |
| return primitiveCompletePackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Property createProperty() { |
| PropertyImpl property = new PropertyImpl(); |
| return property; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull AssociationClass createAssociationClass() { |
| AssociationClassImpl associationClass = new AssociationClassImpl(); |
| return associationClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Operation createOperation() { |
| OperationImpl operation = new OperationImpl(); |
| return operation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Parameter createParameter() { |
| ParameterImpl parameter = new ParameterImpl(); |
| return parameter; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ParameterVariable createParameterVariable() |
| { |
| ParameterVariableImpl parameterVariable = new ParameterVariableImpl(); |
| return parameterVariable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull OppositePropertyCallExp createOppositePropertyCallExp() |
| { |
| OppositePropertyCallExpImpl oppositePropertyCallExp = new OppositePropertyCallExpImpl(); |
| return oppositePropertyCallExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Comment createComment() { |
| CommentImpl comment = new CommentImpl(); |
| return comment; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CompleteClass createCompleteClass() |
| { |
| CompleteClassImpl completeClass = new CompleteClassImpl(); |
| return completeClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CompleteEnvironment createCompleteEnvironment() |
| { |
| CompleteEnvironmentImpl completeEnvironment = new CompleteEnvironmentImpl(); |
| return completeEnvironment; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CompleteModel createCompleteModel() |
| { |
| CompleteModelImpl completeModel = new CompleteModelImpl(); |
| return completeModel; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CompletePackage createCompletePackage() |
| { |
| CompletePackageImpl completePackage = new CompletePackageImpl(); |
| return completePackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ConnectionPointReference createConnectionPointReference() |
| { |
| ConnectionPointReferenceImpl connectionPointReference = new ConnectionPointReferenceImpl(); |
| return connectionPointReference; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Constraint createConstraint() { |
| ConstraintImpl constraint = new ConstraintImpl(); |
| return constraint; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Detail createDetail() { |
| DetailImpl detail = new DetailImpl(); |
| return detail; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull DynamicBehavior createDynamicBehavior() |
| { |
| DynamicBehaviorImpl dynamicBehavior = new DynamicBehaviorImpl(); |
| return dynamicBehavior; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull DynamicElement createDynamicElement() |
| { |
| DynamicElementImpl dynamicElement = new DynamicElementImpl(); |
| return dynamicElement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull DynamicProperty createDynamicProperty() |
| { |
| DynamicPropertyImpl dynamicProperty = new DynamicPropertyImpl(); |
| return dynamicProperty; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull DynamicType createDynamicType() |
| { |
| DynamicTypeImpl dynamicType = new DynamicTypeImpl(); |
| return dynamicType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull DynamicValueSpecification createDynamicValueSpecification() |
| { |
| DynamicValueSpecificationImpl dynamicValueSpecification = new DynamicValueSpecificationImpl(); |
| return dynamicValueSpecification; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ElementExtension createElementExtension() |
| { |
| ElementExtensionImpl elementExtension = new ElementExtensionImpl(); |
| return elementExtension; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull AnyType createAnyType() { |
| AnyTypeImpl anyType = new AnyTypeImpl(); |
| return anyType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull AssociationClassCallExp createAssociationClassCallExp() { |
| AssociationClassCallExpImpl associationClassCallExp = new AssociationClassCallExpImpl(); |
| return associationClassCallExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull BagType createBagType() { |
| BagTypeImpl bagType = new BagTypeImpl(); |
| return bagType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CollectionType createCollectionType() { |
| CollectionTypeImpl collectionType = new CollectionTypeImpl(); |
| return collectionType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull DataType createDataType() { |
| DataTypeImpl dataType = new DataTypeImpl(); |
| return dataType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull BooleanLiteralExp createBooleanLiteralExp() { |
| BooleanLiteralExpImpl booleanLiteralExp = new BooleanLiteralExpImpl(); |
| return booleanLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CallOperationAction createCallOperationAction() { |
| CallOperationActionImpl callOperationAction = new CallOperationActionImpl(); |
| return callOperationAction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CollectionItem createCollectionItem() { |
| CollectionItemImpl collectionItem = new CollectionItemImpl(); |
| return collectionItem; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CollectionLiteralExp createCollectionLiteralExp() { |
| CollectionLiteralExpImpl collectionLiteralExp = new CollectionLiteralExpImpl(); |
| return collectionLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull CollectionRange createCollectionRange() { |
| CollectionRangeImpl collectionRange = new CollectionRangeImpl(); |
| return collectionRange; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull EnumLiteralExp createEnumLiteralExp() { |
| EnumLiteralExpImpl enumLiteralExp = new EnumLiteralExpImpl(); |
| return enumLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull EnumerationLiteral createEnumerationLiteral() { |
| EnumerationLiteralImpl enumerationLiteral = new EnumerationLiteralImpl(); |
| return enumerationLiteral; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ExpressionInOCL createExpressionInOCL() |
| { |
| ExpressionInOCLImpl expressionInOCL = new ExpressionInOCLImpl(); |
| return expressionInOCL; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull FinalState createFinalState() |
| { |
| FinalStateImpl finalState = new FinalStateImpl(); |
| return finalState; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Enumeration createEnumeration() { |
| EnumerationImpl enumeration = new EnumerationImpl(); |
| return enumeration; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Variable createVariable() { |
| VariableImpl variable = new VariableImpl(); |
| return variable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull IfExp createIfExp() { |
| IfExpImpl ifExp = new IfExpImpl(); |
| return ifExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Import createImport() |
| { |
| ImportImpl import_ = new ImportImpl(); |
| return import_; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull InstanceSpecification createInstanceSpecification() |
| { |
| InstanceSpecificationImpl instanceSpecification = new InstanceSpecificationImpl(); |
| return instanceSpecification; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull IntegerLiteralExp createIntegerLiteralExp() { |
| IntegerLiteralExpImpl integerLiteralExp = new IntegerLiteralExpImpl(); |
| return integerLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull InvalidLiteralExp createInvalidLiteralExp() { |
| InvalidLiteralExpImpl invalidLiteralExp = new InvalidLiteralExpImpl(); |
| return invalidLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull InvalidType createInvalidType() { |
| InvalidTypeImpl invalidType = new InvalidTypeImpl(); |
| return invalidType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull IterateExp createIterateExp() |
| { |
| IterateExpImpl iterateExp = new IterateExpImpl(); |
| return iterateExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Iteration createIteration() |
| { |
| IterationImpl iteration = new IterationImpl(); |
| return iteration; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull IteratorExp createIteratorExp() |
| { |
| IteratorExpImpl iteratorExp = new IteratorExpImpl(); |
| return iteratorExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull IteratorVariable createIteratorVariable() |
| { |
| IteratorVariableImpl iteratorVariable = new IteratorVariableImpl(); |
| return iteratorVariable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull LambdaType createLambdaType() |
| { |
| LambdaTypeImpl lambdaType = new LambdaTypeImpl(); |
| return lambdaType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull LetExp createLetExp() { |
| LetExpImpl letExp = new LetExpImpl(); |
| return letExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull LetVariable createLetVariable() |
| { |
| LetVariableImpl letVariable = new LetVariableImpl(); |
| return letVariable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Library createLibrary() |
| { |
| LibraryImpl library = new LibraryImpl(); |
| return library; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull MapLiteralExp createMapLiteralExp() |
| { |
| MapLiteralExpImpl mapLiteralExp = new MapLiteralExpImpl(); |
| return mapLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull MapLiteralPart createMapLiteralPart() |
| { |
| MapLiteralPartImpl mapLiteralPart = new MapLiteralPartImpl(); |
| return mapLiteralPart; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull MapType createMapType() |
| { |
| MapTypeImpl mapType = new MapTypeImpl(); |
| return mapType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull MessageExp createMessageExp() { |
| MessageExpImpl messageExp = new MessageExpImpl(); |
| return messageExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull SendSignalAction createSendSignalAction() { |
| SendSignalActionImpl sendSignalAction = new SendSignalActionImpl(); |
| return sendSignalAction; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Signal createSignal() { |
| SignalImpl signal = new SignalImpl(); |
| return signal; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Slot createSlot() |
| { |
| SlotImpl slot = new SlotImpl(); |
| return slot; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull StandardLibrary createStandardLibrary() |
| { |
| StandardLibraryImpl standardLibrary = new StandardLibraryImpl(); |
| return standardLibrary; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull MessageType createMessageType() { |
| MessageTypeImpl messageType = new MessageTypeImpl(); |
| return messageType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Model createModel() |
| { |
| ModelImpl model = new ModelImpl(); |
| return model; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull NullLiteralExp createNullLiteralExp() { |
| NullLiteralExpImpl nullLiteralExp = new NullLiteralExpImpl(); |
| return nullLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull OperationCallExp createOperationCallExp() { |
| OperationCallExpImpl operationCallExp = new OperationCallExpImpl(); |
| return operationCallExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull OrderedSetType createOrderedSetType() { |
| OrderedSetTypeImpl orderedSetType = new OrderedSetTypeImpl(); |
| return orderedSetType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull OrphanCompletePackage createOrphanCompletePackage() |
| { |
| OrphanCompletePackageImpl orphanCompletePackage = new OrphanCompletePackageImpl(); |
| return orphanCompletePackage; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull PrimitiveType createPrimitiveType() { |
| PrimitiveTypeImpl primitiveType = new PrimitiveTypeImpl(); |
| return primitiveType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Profile createProfile() |
| { |
| ProfileImpl profile = new ProfileImpl(); |
| return profile; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ProfileApplication createProfileApplication() |
| { |
| ProfileApplicationImpl profileApplication = new ProfileApplicationImpl(); |
| return profileApplication; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull PropertyCallExp createPropertyCallExp() { |
| PropertyCallExpImpl propertyCallExp = new PropertyCallExpImpl(); |
| return propertyCallExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Pseudostate createPseudostate() |
| { |
| PseudostateImpl pseudostate = new PseudostateImpl(); |
| return pseudostate; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull RealLiteralExp createRealLiteralExp() { |
| RealLiteralExpImpl realLiteralExp = new RealLiteralExpImpl(); |
| return realLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Region createRegion() |
| { |
| RegionImpl region = new RegionImpl(); |
| return region; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ResultVariable createResultVariable() |
| { |
| ResultVariableImpl resultVariable = new ResultVariableImpl(); |
| return resultVariable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull SelfType createSelfType() |
| { |
| SelfTypeImpl selfType = new SelfTypeImpl(); |
| return selfType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull SequenceType createSequenceType() { |
| SequenceTypeImpl sequenceType = new SequenceTypeImpl(); |
| return sequenceType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull SetType createSetType() { |
| SetTypeImpl setType = new SetTypeImpl(); |
| return setType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ShadowExp createShadowExp() |
| { |
| ShadowExpImpl shadowExp = new ShadowExpImpl(); |
| return shadowExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull ShadowPart createShadowPart() |
| { |
| ShadowPartImpl shadowPart = new ShadowPartImpl(); |
| return shadowPart; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull State createState() { |
| StateImpl state = new StateImpl(); |
| return state; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull StateExp createStateExp() { |
| StateExpImpl stateExp = new StateExpImpl(); |
| return stateExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull StateMachine createStateMachine() |
| { |
| StateMachineImpl stateMachine = new StateMachineImpl(); |
| return stateMachine; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull Stereotype createStereotype() |
| { |
| StereotypeImpl stereotype = new StereotypeImpl(); |
| return stereotype; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull StereotypeExtender createStereotypeExtender() |
| { |
| StereotypeExtenderImpl stereotypeExtender = new StereotypeExtenderImpl(); |
| return stereotypeExtender; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull StringLiteralExp createStringLiteralExp() { |
| StringLiteralExpImpl stringLiteralExp = new StringLiteralExpImpl(); |
| return stringLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TupleLiteralExp createTupleLiteralExp() { |
| TupleLiteralExpImpl tupleLiteralExp = new TupleLiteralExpImpl(); |
| return tupleLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TupleLiteralPart createTupleLiteralPart() { |
| TupleLiteralPartImpl tupleLiteralPart = new TupleLiteralPartImpl(); |
| return tupleLiteralPart; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TupleType createTupleType() { |
| TupleTypeImpl tupleType = new TupleTypeImpl(); |
| return tupleType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull TypeExp createTypeExp() { |
| TypeExpImpl typeExp = new TypeExpImpl(); |
| return typeExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull UnlimitedNaturalLiteralExp createUnlimitedNaturalLiteralExp() { |
| UnlimitedNaturalLiteralExpImpl unlimitedNaturalLiteralExp = new UnlimitedNaturalLiteralExpImpl(); |
| return unlimitedNaturalLiteralExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull UnspecifiedValueExp createUnspecifiedValueExp() { |
| UnspecifiedValueExpImpl unspecifiedValueExp = new UnspecifiedValueExpImpl(); |
| return unspecifiedValueExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull VariableExp createVariableExp() { |
| VariableExpImpl variableExp = new VariableExpImpl(); |
| return variableExp; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull VoidType createVoidType() { |
| VoidTypeImpl voidType = new VoidTypeImpl(); |
| return voidType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public @NonNull WildcardType createWildcardType() |
| { |
| WildcardTypeImpl wildcardType = new WildcardTypeImpl(); |
| return wildcardType; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public AssociativityKind createAssociativityKindFromString( |
| EDataType eDataType, String initialValue) { |
| AssociativityKind result = AssociativityKind.get(initialValue); |
| if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| return result; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertAssociativityKindToString(EDataType eDataType, |
| Object instanceValue) { |
| return instanceValue == null ? null : instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public CollectionKind createCollectionKindFromString(EDataType eDataType, |
| String initialValue) { |
| CollectionKind result = CollectionKind.get(initialValue); |
| if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| return result; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertCollectionKindToString(EDataType eDataType, |
| Object instanceValue) { |
| return instanceValue == null ? null : instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PseudostateKind createPseudostateKindFromString(EDataType eDataType, String initialValue) |
| { |
| PseudostateKind result = PseudostateKind.get(initialValue); |
| if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| return result; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertPseudostateKindToString(EDataType eDataType, Object instanceValue) |
| { |
| return instanceValue == null ? null : instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TransitionKind createTransitionKindFromString(EDataType eDataType, String initialValue) |
| { |
| TransitionKind result = TransitionKind.get(initialValue); |
| if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| return result; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertTransitionKindToString(EDataType eDataType, Object instanceValue) |
| { |
| return instanceValue == null ? null : instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Boolean createBooleanFromString(EDataType eDataType, |
| String initialValue) { |
| return (Boolean)super.createFromString(eDataType, initialValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertBooleanToString(EDataType eDataType, |
| Object instanceValue) { |
| return super.convertToString(eDataType, instanceValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public Integer createIntFromString(EDataType eDataType, String initialValue) |
| { |
| return Integer.valueOf(initialValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public String convertIntToString(EDataType eDataType, Object instanceValue) |
| { |
| return instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public Number createIntegerFromString(EDataType eDataType, String aValue) { |
| try { |
| assert aValue != null; |
| return StringUtil.createNumberFromString(aValue); |
| } |
| catch (NumberFormatException e) { |
| // return throwInvalidValueException(e, EvaluatorMessages.InvalidInteger, aValue); |
| } |
| return (Number)super.createFromString(eDataType, aValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public String convertIntegerToString(EDataType eDataType, |
| Object instanceValue) { |
| return instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public LibraryFeature createLibraryFeatureFromString(EDataType eDataType, String initialValue) |
| { |
| return (LibraryFeature)super.createFromString(eDataType, initialValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertLibraryFeatureToString(EDataType eDataType, Object instanceValue) |
| { |
| return super.convertToString(eDataType, instanceValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Object createObjectFromString(EDataType eDataType, String initialValue) |
| { |
| return super.createFromString(eDataType, initialValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertObjectToString(EDataType eDataType, Object instanceValue) |
| { |
| return super.convertToString(eDataType, instanceValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public Number createRealFromString(EDataType eDataType, String aValue) { |
| if ("*".equals(aValue)) { |
| return Unlimited.INSTANCE; |
| } |
| try { |
| return new BigDecimal(aValue); |
| } |
| catch (NumberFormatException e) { |
| // return throwInvalidValueException(e, EvaluatorMessages.InvalidInteger, aValue); |
| } |
| return (Number)super.createFromString(eDataType, aValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public String convertRealToString(EDataType eDataType, Object instanceValue) { |
| return instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String createStringFromString(EDataType eDataType, |
| String initialValue) { |
| return (String)super.createFromString(eDataType, initialValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertStringToString(EDataType eDataType, |
| Object instanceValue) { |
| return super.convertToString(eDataType, instanceValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Throwable createThrowableFromString(EDataType eDataType, |
| String initialValue) { |
| return (Throwable)super.createFromString(eDataType, initialValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String convertThrowableToString(EDataType eDataType, |
| Object instanceValue) { |
| return super.convertToString(eDataType, instanceValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public Number createUnlimitedNaturalFromString(EDataType eDataType, String aValue) { |
| try { |
| assert aValue != null; |
| return StringUtil.createNumberFromString(aValue); |
| } |
| catch (NumberFormatException e) { |
| // return throwInvalidValueException(e, EvaluatorMessages.InvalidInteger, aValue); |
| } |
| return (Number)super.createFromString(eDataType, aValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated NOT |
| */ |
| public String convertUnlimitedNaturalToString(EDataType eDataType, |
| Object instanceValue) { |
| return instanceValue.toString(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public PivotPackage getPivotPackage() { |
| return (PivotPackage)getEPackage(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @deprecated |
| * @generated |
| */ |
| @Deprecated |
| public static PivotPackage getPackage() { |
| return PivotPackage.eINSTANCE; |
| } |
| |
| } //PivotFactoryImpl |