diff options
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org')
58 files changed, 15552 insertions, 15015 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java index 5c6eaaa3ca8..6936eefc3ba 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java @@ -23,16 +23,16 @@ public abstract class AbstractUmlPropertyRuntimeModule extends org.eclipse.xtext properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.properties"); super.configure(binder); } - + public void configureLanguageName(Binder binder) { binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty"); } - + public void configureFileExtensions(Binder binder) { if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("umlproperty"); } - + // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment public java.lang.ClassLoader bindClassLoaderToInstance() { return getClass().getClassLoader(); @@ -85,7 +85,8 @@ public abstract class AbstractUmlPropertyRuntimeModule extends org.eclipse.xtext // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment public void configureRuntimeLexer(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class); + binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)) + .to(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class); } // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment @@ -94,7 +95,8 @@ public abstract class AbstractUmlPropertyRuntimeModule extends org.eclipse.xtext } // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment - @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator> bindUmlPropertyJavaValidator() { + @org.eclipse.xtext.service.SingletonBinding(eager = true) + public Class<? extends org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator> bindUmlPropertyJavaValidator() { return org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator.class; } @@ -105,7 +107,8 @@ public abstract class AbstractUmlPropertyRuntimeModule extends org.eclipse.xtext // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment public void configureIScopeProviderDelegate(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class); + binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)) + .to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class); } // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment @@ -140,7 +143,8 @@ public abstract class AbstractUmlPropertyRuntimeModule extends org.eclipse.xtext // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)) + .to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); } // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.ecore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.ecore index cda6cec4438..a844e25434a 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.ecore +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.ecore @@ -5,11 +5,11 @@ <eClassifiers xsi:type="ecore:EClass" name="PropertyRule"> <eStructuralFeatures xsi:type="ecore:EReference" name="visibility" eType="#//VisibilityRule" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="derived" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="derived" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//TypeRule" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="typeUndefined" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="typeUndefined" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> <eStructuralFeatures xsi:type="ecore:EReference" name="multiplicity" eType="#//MultiplicityRule" containment="true"/> <eStructuralFeatures xsi:type="ecore:EReference" name="modifiers" eType="#//ModifiersRule" @@ -41,7 +41,7 @@ eType="#//BoundSpecification" containment="true"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="BoundSpecification"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="ModifiersRule"> <eStructuralFeatures xsi:type="ecore:EReference" name="values" upperBound="-1" @@ -72,21 +72,21 @@ </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="Value"/> <eClassifiers xsi:type="ecore:EClass" name="IntValue" eSuperTypes="#//Value"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="literalInteger" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="literalInteger" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="StringValue" eSuperTypes="#//Value"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="literalString" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="literalString" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> </eClassifiers> <eClassifiers xsi:type="ecore:EEnum" name="BooleanLiterals"> - <eLiterals name="true" literal="true"/> - <eLiterals name="false" value="1" literal="false"/> + <eLiterals name="TRUE" literal="true"/> + <eLiterals name="FALSE" value="1" literal="false"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="BooleanValue" eSuperTypes="#//Value"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="literalBoolean" eType="#//BooleanLiterals"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="RealValue" eSuperTypes="#//Value"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="integer" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="fraction" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="integer" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="fraction" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="NullValue" eSuperTypes="#//Value"/> <eClassifiers xsi:type="ecore:EClass" name="NoValue" eSuperTypes="#//Value"/> diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel index 48295a53e23..2d0338c19a5 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel @@ -5,8 +5,8 @@ modelPluginID="org.eclipse.papyrus.uml.textedit.property.xtext" forceOverwrite="true" modelName="UmlProperty" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" complianceLevel="6.0" copyrightFields="false" editPluginID="org.eclipse.papyrus.uml.textedit.property.xtext.edit" - editorPluginID="org.eclipse.papyrus.uml.textedit.property.xtext.editor" runtimeVersion="2.10" - usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel#//uml"> + editorPluginID="org.eclipse.papyrus.uml.textedit.property.xtext.editor" runtimeVersion="2.14" + usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel#//uml"> <genPackages prefix="UmlProperty" basePackage="org.eclipse.papyrus.uml.textedit.property.xtext" disposableProviderFactory="true" ecorePackage="UmlProperty.ecore#/"> <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//VisibilityKind"> @@ -22,8 +22,8 @@ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/unique"/> </genEnums> <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//BooleanLiterals"> - <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/true"/> - <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/false"/> + <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/TRUE"/> + <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/FALSE"/> </genEnums> <genClasses ecoreClass="UmlProperty.ecore#//PropertyRule"> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/visibility"/> diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin Binary files differindex e8719bf6fb4..d42ad740c18 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java index 33fe267fdd6..c2c51b09303 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java @@ -4,8 +4,8 @@ package org.eclipse.papyrus.uml.textedit.property.xtext; import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.ISetup; import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.xtext.ISetup; import com.google.inject.Guice; import com.google.inject.Injector; @@ -24,21 +24,21 @@ public class UmlPropertyStandaloneSetupGenerated implements ISetup { register(injector); return injector; } - + public Injector createInjector() { return Guice.createInjector(new org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyRuntimeModule()); } - + public void register(Injector injector) { - if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty")) { - EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty", org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE); - } + if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty")) { + EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty", org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE); + } org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class); org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("umlproperty", resourceFactory); org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("umlproperty", serviceProvider); - + diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java index bb39f17a3fa..40fa5509a35 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java @@ -4,13 +4,14 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr; import java.io.InputStream; + import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; public class UmlPropertyAntlrTokenFileProvider implements IAntlrTokenFileProvider { - + @Override public InputStream getAntlrTokenFile() { ClassLoader classLoader = getClass().getClassLoader(); - return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.tokens"); + return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.tokens"); } } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java index 26266b4501d..aa4cbe6548e 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java @@ -3,37 +3,37 @@ */ package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr; -import com.google.inject.Inject; - -import org.eclipse.xtext.parser.antlr.XtextTokenStream; import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess; +import org.eclipse.xtext.parser.antlr.XtextTokenStream; + +import com.google.inject.Inject; public class UmlPropertyParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser { - + @Inject private UmlPropertyGrammarAccess grammarAccess; - + @Override protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); } - + @Override protected org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyParser createParser(XtextTokenStream stream) { return new org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyParser(stream, getGrammarAccess()); } - - @Override + + @Override protected String getDefaultRuleName() { return "PropertyRule"; } - + public UmlPropertyGrammarAccess getGrammarAccess() { return this.grammarAccess; } - + public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) { this.grammarAccess = grammarAccess; } - + } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g index f3d306521d2..2a5ac0b737e 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g @@ -91,7 +91,7 @@ rulePropertyRule returns [EObject current=null] $current, "visibility", lv_visibility_0_0, - "VisibilityRule"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.VisibilityRule"); afterParserOrEnumRuleCall(); } @@ -125,7 +125,7 @@ rulePropertyRule returns [EObject current=null] $current, "name", lv_name_2_0, - "ID"); + "org.eclipse.papyrus.uml.alf.Common.ID"); } ) @@ -146,7 +146,7 @@ rulePropertyRule returns [EObject current=null] $current, "type", lv_type_4_0, - "TypeRule"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.TypeRule"); afterParserOrEnumRuleCall(); } @@ -180,7 +180,7 @@ rulePropertyRule returns [EObject current=null] $current, "multiplicity", lv_multiplicity_6_0, - "MultiplicityRule"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.MultiplicityRule"); afterParserOrEnumRuleCall(); } @@ -198,7 +198,7 @@ rulePropertyRule returns [EObject current=null] $current, "modifiers", lv_modifiers_7_0, - "ModifiersRule"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifiersRule"); afterParserOrEnumRuleCall(); } @@ -216,7 +216,7 @@ rulePropertyRule returns [EObject current=null] $current, "default", lv_default_8_0, - "DefaultValueRule"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.DefaultValueRule"); afterParserOrEnumRuleCall(); } @@ -255,7 +255,7 @@ ruleVisibilityRule returns [EObject current=null] $current, "visibility", lv_visibility_0_0, - "VisibilityKind"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.VisibilityKind"); afterParserOrEnumRuleCall(); } @@ -294,7 +294,7 @@ ruleTypeRule returns [EObject current=null] $current, "path", lv_path_0_0, - "QualifiedName"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.QualifiedName"); afterParserOrEnumRuleCall(); } @@ -363,7 +363,7 @@ ruleQualifiedName returns [EObject current=null] $current, "remaining", lv_remaining_2_0, - "QualifiedName"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.QualifiedName"); afterParserOrEnumRuleCall(); } @@ -406,7 +406,7 @@ ruleMultiplicityRule returns [EObject current=null] $current, "bounds", lv_bounds_1_0, - "BoundSpecification"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BoundSpecification"); afterParserOrEnumRuleCall(); } @@ -428,7 +428,7 @@ ruleMultiplicityRule returns [EObject current=null] $current, "bounds", lv_bounds_3_0, - "BoundSpecification"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BoundSpecification"); afterParserOrEnumRuleCall(); } @@ -472,7 +472,7 @@ ruleBoundSpecification returns [EObject current=null] $current, "value", lv_value_0_1, - "UnlimitedLiteral"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.UnlimitedLiteral"); afterParserOrEnumRuleCall(); } @@ -487,7 +487,7 @@ ruleBoundSpecification returns [EObject current=null] $current, "value", lv_value_0_2, - "StringLiteral"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.StringLiteral"); afterParserOrEnumRuleCall(); } @@ -601,7 +601,7 @@ ruleModifiersRule returns [EObject current=null] $current, "values", lv_values_2_0, - "ModifierSpecification"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierSpecification"); afterParserOrEnumRuleCall(); } @@ -623,7 +623,7 @@ ruleModifiersRule returns [EObject current=null] $current, "values", lv_values_4_0, - "ModifierSpecification"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierSpecification"); afterParserOrEnumRuleCall(); } @@ -666,7 +666,7 @@ ruleModifierSpecification returns [EObject current=null] $current, "value", lv_value_0_0, - "ModifierKind"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierKind"); afterParserOrEnumRuleCall(); } @@ -685,7 +685,7 @@ ruleModifierSpecification returns [EObject current=null] $current, "redefines", lv_redefines_1_0, - "RedefinesRule"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.RedefinesRule"); afterParserOrEnumRuleCall(); } @@ -704,7 +704,7 @@ ruleModifierSpecification returns [EObject current=null] $current, "subsets", lv_subsets_2_0, - "SubsetsRule"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.SubsetsRule"); afterParserOrEnumRuleCall(); } @@ -823,7 +823,7 @@ ruleDefaultValueRule returns [EObject current=null] $current, "default", lv_default_1_0, - "Value"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.Value"); afterParserOrEnumRuleCall(); } @@ -943,7 +943,7 @@ ruleIntValue returns [EObject current=null] $current, "literalInteger", lv_literalInteger_0_0, - "INT"); + "org.eclipse.papyrus.uml.alf.Common.INT"); } ) @@ -982,7 +982,7 @@ ruleStringValue returns [EObject current=null] $current, "literalString", lv_literalString_0_0, - "STRING"); + "org.eclipse.papyrus.uml.alf.Common.STRING"); } ) @@ -1020,7 +1020,7 @@ ruleBooleanValue returns [EObject current=null] $current, "literalBoolean", lv_literalBoolean_0_0, - "BooleanLiterals"); + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BooleanLiterals"); afterParserOrEnumRuleCall(); } @@ -1060,7 +1060,7 @@ ruleRealValue returns [EObject current=null] $current, "integer", lv_integer_0_0, - "INT"); + "org.eclipse.papyrus.uml.alf.Common.INT"); } ) @@ -1087,7 +1087,7 @@ ruleRealValue returns [EObject current=null] $current, "fraction", lv_fraction_3_0, - "INT"); + "org.eclipse.papyrus.uml.alf.Common.INT"); } ) @@ -1106,7 +1106,7 @@ ruleRealValue returns [EObject current=null] $current, "integer", lv_integer_4_0, - "INT"); + "org.eclipse.papyrus.uml.alf.Common.INT"); } ) @@ -1128,7 +1128,7 @@ ruleRealValue returns [EObject current=null] $current, "fraction", lv_fraction_6_0, - "INT"); + "org.eclipse.papyrus.uml.alf.Common.INT"); } ) @@ -1269,14 +1269,14 @@ ruleBooleanLiterals returns [Enumerator current=null] @after { leaveRule(); }: (( enumLiteral_0='true' { - $current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); + $current = grammarAccess.getBooleanLiteralsAccess().getTRUEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTRUEEnumLiteralDeclaration_0()); } ) |( enumLiteral_1='false' { - $current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); + $current = grammarAccess.getBooleanLiteralsAccess().getFALSEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFALSEEnumLiteralDeclaration_1()); } )); diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java index b54e3bd66f1..80dc85a0452 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java @@ -1,2069 +1,2046 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal; +import org.antlr.runtime.BaseRecognizer; +import org.antlr.runtime.CharStream; +import org.antlr.runtime.DFA; +import org.antlr.runtime.EarlyExitException; +import org.antlr.runtime.IntStream; +import org.antlr.runtime.MismatchedSetException; +import org.antlr.runtime.NoViableAltException; +import org.antlr.runtime.RecognitionException; +import org.antlr.runtime.RecognizerSharedState; // Hack: Use our own Lexer superclass by means of import. // Currently there is no other way to specify the superclass for the lexer. import org.eclipse.xtext.parser.antlr.Lexer; - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - @SuppressWarnings("all") public class InternalUmlPropertyLexer extends Lexer { - public static final int RULE_ID=4; - public static final int T__29=29; - public static final int T__28=28; - public static final int T__27=27; - public static final int T__26=26; - public static final int T__25=25; - public static final int T__24=24; - public static final int T__23=23; - public static final int T__22=22; - public static final int RULE_ANY_OTHER=11; - public static final int T__21=21; - public static final int T__20=20; - public static final int RULE_INTEGER_VALUE=9; - public static final int EOF=-1; - public static final int RULE_SL_COMMENT=8; - public static final int RULE_ML_COMMENT=7; - public static final int T__19=19; - public static final int T__30=30; - public static final int T__31=31; - public static final int T__32=32; - public static final int RULE_STRING=6; - public static final int T__16=16; - public static final int T__33=33; - public static final int T__15=15; - public static final int T__34=34; - public static final int T__18=18; - public static final int T__35=35; - public static final int T__17=17; - public static final int T__36=36; - public static final int T__12=12; - public static final int T__37=37; - public static final int T__38=38; - public static final int T__14=14; - public static final int T__13=13; - public static final int RULE_INT=5; - public static final int RULE_WS=10; - - // delegates - // delegators - - public InternalUmlPropertyLexer() {;} - public InternalUmlPropertyLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalUmlPropertyLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g"; } - - // $ANTLR start "T__12" - public final void mT__12() throws RecognitionException { - try { - int _type = T__12; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:11:7: ( '/' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:11:9: '/' - { - match('/'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__12" - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:12:7: ( ':' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:12:9: ':' - { - match(':'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__13" - - // $ANTLR start "T__14" - public final void mT__14() throws RecognitionException { - try { - int _type = T__14; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:13:7: ( '<Undefined>' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:13:9: '<Undefined>' - { - match("<Undefined>"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__14" - - // $ANTLR start "T__15" - public final void mT__15() throws RecognitionException { - try { - int _type = T__15; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:14:7: ( '::' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:14:9: '::' - { - match("::"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__15" - - // $ANTLR start "T__16" - public final void mT__16() throws RecognitionException { - try { - int _type = T__16; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:15:7: ( '[' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:15:9: '[' - { - match('['); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__16" - - // $ANTLR start "T__17" - public final void mT__17() throws RecognitionException { - try { - int _type = T__17; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:16:7: ( '..' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:16:9: '..' - { - match(".."); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__17" - - // $ANTLR start "T__18" - public final void mT__18() throws RecognitionException { - try { - int _type = T__18; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:17:7: ( ']' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:17:9: ']' - { - match(']'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__18" - - // $ANTLR start "T__19" - public final void mT__19() throws RecognitionException { - try { - int _type = T__19; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:18:7: ( '*' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:18:9: '*' - { - match('*'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__19" - - // $ANTLR start "T__20" - public final void mT__20() throws RecognitionException { - try { - int _type = T__20; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:19:7: ( '{' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:19:9: '{' - { - match('{'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__20" - - // $ANTLR start "T__21" - public final void mT__21() throws RecognitionException { - try { - int _type = T__21; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:20:7: ( ',' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:20:9: ',' - { - match(','); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__21" - - // $ANTLR start "T__22" - public final void mT__22() throws RecognitionException { - try { - int _type = T__22; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:21:7: ( '}' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:21:9: '}' - { - match('}'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__22" - - // $ANTLR start "T__23" - public final void mT__23() throws RecognitionException { - try { - int _type = T__23; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:22:7: ( 'redefines' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:22:9: 'redefines' - { - match("redefines"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__23" - - // $ANTLR start "T__24" - public final void mT__24() throws RecognitionException { - try { - int _type = T__24; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:23:7: ( 'subsets' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:23:9: 'subsets' - { - match("subsets"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__24" - - // $ANTLR start "T__25" - public final void mT__25() throws RecognitionException { - try { - int _type = T__25; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:24:7: ( '=' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:24:9: '=' - { - match('='); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__25" - - // $ANTLR start "T__26" - public final void mT__26() throws RecognitionException { - try { - int _type = T__26; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:25:7: ( '.' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:25:9: '.' - { - match('.'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__26" - - // $ANTLR start "T__27" - public final void mT__27() throws RecognitionException { - try { - int _type = T__27; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:26:7: ( 'null' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:26:9: 'null' - { - match("null"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__27" - - // $ANTLR start "T__28" - public final void mT__28() throws RecognitionException { - try { - int _type = T__28; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:27:7: ( 'none' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:27:9: 'none' - { - match("none"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__28" - - // $ANTLR start "T__29" - public final void mT__29() throws RecognitionException { - try { - int _type = T__29; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:28:7: ( '+' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:28:9: '+' - { - match('+'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__29" - - // $ANTLR start "T__30" - public final void mT__30() throws RecognitionException { - try { - int _type = T__30; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:29:7: ( '-' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:29:9: '-' - { - match('-'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__30" - - // $ANTLR start "T__31" - public final void mT__31() throws RecognitionException { - try { - int _type = T__31; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:30:7: ( '#' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:30:9: '#' - { - match('#'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__31" - - // $ANTLR start "T__32" - public final void mT__32() throws RecognitionException { - try { - int _type = T__32; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:31:7: ( '~' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:31:9: '~' - { - match('~'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__32" - - // $ANTLR start "T__33" - public final void mT__33() throws RecognitionException { - try { - int _type = T__33; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:32:7: ( 'readOnly' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:32:9: 'readOnly' - { - match("readOnly"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__33" - - // $ANTLR start "T__34" - public final void mT__34() throws RecognitionException { - try { - int _type = T__34; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:33:7: ( 'union' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:33:9: 'union' - { - match("union"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__34" - - // $ANTLR start "T__35" - public final void mT__35() throws RecognitionException { - try { - int _type = T__35; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:34:7: ( 'ordered' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:34:9: 'ordered' - { - match("ordered"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__35" - - // $ANTLR start "T__36" - public final void mT__36() throws RecognitionException { - try { - int _type = T__36; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:35:7: ( 'unique' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:35:9: 'unique' - { - match("unique"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__36" - - // $ANTLR start "T__37" - public final void mT__37() throws RecognitionException { - try { - int _type = T__37; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:36:7: ( 'true' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:36:9: 'true' - { - match("true"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__37" - - // $ANTLR start "T__38" - public final void mT__38() throws RecognitionException { - try { - int _type = T__38; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:37:7: ( 'false' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:37:9: 'false' - { - match("false"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__38" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) - int alt3=2; - int LA3_0 = input.LA(1); - - if ( ((LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) { - alt3=1; - } - else if ( (LA3_0=='\'') ) { - alt3=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - { - if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - loop1: - do { - int alt1=2; - int LA1_0 = input.LA(1); - - if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) { - alt1=1; - } - - - switch (alt1) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop1; - } - } while (true); - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:70: '\\'' ( options {greedy=false; } : . )* '\\'' - { - match('\''); - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:75: ( options {greedy=false; } : . )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0=='\'') ) { - alt2=2; - } - else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='\uFFFF')) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:103: . - { - matchAny(); - - } - break; - - default : - break loop2; - } - } while (true); - - match('\''); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ID" - - // $ANTLR start "RULE_STRING" - public final void mRULE_STRING() throws RecognitionException { - try { - int _type = RULE_STRING; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' - { - match('\"'); - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* - loop4: - do { - int alt4=3; - int LA4_0 = input.LA(1); - - if ( (LA4_0=='\\') ) { - alt4=1; - } - else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { - alt4=2; - } - - - switch (alt4) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) - { - match('\\'); - if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:61: ~ ( ( '\\\\' | '\"' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop4; - } - } while (true); - - match('\"'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_STRING" - - // $ANTLR start "RULE_ML_COMMENT" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - if ( (input.LA(1)>='\u0000' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:31: ( options {greedy=false; } : . )* - loop5: - do { - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0=='*') ) { - int LA5_1 = input.LA(2); - - if ( (LA5_1=='/') ) { - alt5=2; - } - else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) { - alt5=1; - } - - - } - else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) { - alt5=1; - } - - - switch (alt5) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:59: . - { - matchAny(); - - } - break; - - default : - break loop5; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )* - loop6: - do { - int alt6=2; - int LA6_0 = input.LA(1); - - if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='?')||(LA6_0>='A' && LA6_0<='\uFFFF')) ) { - alt6=1; - } - - - switch (alt6) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:24: ~ ( ( '\\n' | '\\r' | '@' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop6; - } - } while (true); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:44: ( ( '\\r' )? '\\n' )? - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0=='\n'||LA8_0=='\r') ) { - alt8=1; - } - switch (alt8) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:45: ( '\\r' )? '\\n' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:45: ( '\\r' )? - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='\r') ) { - alt7=1; - } - switch (alt7) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:45: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_SL_COMMENT" - - // $ANTLR start "RULE_INT" - public final void mRULE_INT() throws RecognitionException { - try { - int _type = RULE_INT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:10: ( ( '0' .. '9' )+ ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:12: ( '0' .. '9' )+ - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:12: ( '0' .. '9' )+ - int cnt9=0; - loop9: - do { - int alt9=2; - int LA9_0 = input.LA(1); - - if ( ((LA9_0>='0' && LA9_0<='9')) ) { - alt9=1; - } - - - switch (alt9) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:13: '0' .. '9' - { - matchRange('0','9'); - - } - break; - - default : - if ( cnt9 >= 1 ) break loop9; - EarlyExitException eee = - new EarlyExitException(9, input); - throw eee; - } - cnt9++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_INT" - - // $ANTLR start "RULE_INTEGER_VALUE" - public final void mRULE_INTEGER_VALUE() throws RecognitionException { - try { - int _type = RULE_INTEGER_VALUE; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) - int alt22=4; - int LA22_0 = input.LA(1); - - if ( (LA22_0=='0') ) { - switch ( input.LA(2) ) { - case 'B': - case 'b': - { - alt22=2; - } - break; - case 'X': - case 'x': - { - alt22=3; - } - break; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '_': - { - alt22=4; - } - break; - default: - alt22=1;} - - } - else if ( ((LA22_0>='1' && LA22_0<='9')) ) { - alt22=1; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 22, 0, input); - - throw nvae; - } - switch (alt22) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) - int alt12=2; - int LA12_0 = input.LA(1); - - if ( (LA12_0=='0') ) { - alt12=1; - } - else if ( ((LA12_0>='1' && LA12_0<='9')) ) { - alt12=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 12, 0, input); - - throw nvae; - } - switch (alt12) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:24: '0' - { - match('0'); - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:28: '1' .. '9' ( ( '_' )? '0' .. '9' )* - { - matchRange('1','9'); - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:37: ( ( '_' )? '0' .. '9' )* - loop11: - do { - int alt11=2; - int LA11_0 = input.LA(1); - - if ( ((LA11_0>='0' && LA11_0<='9')||LA11_0=='_') ) { - alt11=1; - } - - - switch (alt11) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:38: ( '_' )? '0' .. '9' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:38: ( '_' )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='_') ) { - alt10=1; - } - switch (alt10) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:38: '_' - { - match('_'); - - } - break; - - } - - matchRange('0','9'); - - } - break; - - default : - break loop11; - } - } while (true); - - - } - break; - - } - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:55: ( '0b' | '0B' ) - int alt13=2; - int LA13_0 = input.LA(1); - - if ( (LA13_0=='0') ) { - int LA13_1 = input.LA(2); - - if ( (LA13_1=='b') ) { - alt13=1; - } - else if ( (LA13_1=='B') ) { - alt13=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 13, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 13, 0, input); - - throw nvae; - } - switch (alt13) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:56: '0b' - { - match("0b"); - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:61: '0B' - { - match("0B"); - - - } - break; - - } - - matchRange('0','1'); - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:76: ( ( '_' )? '0' .. '1' )* - loop15: - do { - int alt15=2; - int LA15_0 = input.LA(1); - - if ( ((LA15_0>='0' && LA15_0<='1')||LA15_0=='_') ) { - alt15=1; - } - - - switch (alt15) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:77: ( '_' )? '0' .. '1' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:77: ( '_' )? - int alt14=2; - int LA14_0 = input.LA(1); - - if ( (LA14_0=='_') ) { - alt14=1; - } - switch (alt14) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:77: '_' - { - match('_'); - - } - break; - - } - - matchRange('0','1'); - - } - break; - - default : - break loop15; - } - } while (true); - - - } - break; - case 3 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:93: ( '0x' | '0X' ) - int alt16=2; - int LA16_0 = input.LA(1); - - if ( (LA16_0=='0') ) { - int LA16_1 = input.LA(2); - - if ( (LA16_1=='x') ) { - alt16=1; - } - else if ( (LA16_1=='X') ) { - alt16=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 16, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 16, 0, input); - - throw nvae; - } - switch (alt16) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:94: '0x' - { - match("0x"); - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:99: '0X' - { - match("0X"); - - - } - break; - - } - - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* - loop18: - do { - int alt18=2; - int LA18_0 = input.LA(1); - - if ( ((LA18_0>='0' && LA18_0<='9')||(LA18_0>='A' && LA18_0<='F')||LA18_0=='_'||(LA18_0>='a' && LA18_0<='f')) ) { - alt18=1; - } - - - switch (alt18) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:135: ( '_' )? - int alt17=2; - int LA17_0 = input.LA(1); - - if ( (LA17_0=='_') ) { - alt17=1; - } - switch (alt17) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:135: '_' - { - match('_'); - - } - break; - - } - - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop18; - } - } while (true); - - - } - break; - case 4 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* - { - match('0'); - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:175: ( '_' )? - int alt19=2; - int LA19_0 = input.LA(1); - - if ( (LA19_0=='_') ) { - alt19=1; - } - switch (alt19) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:175: '_' - { - match('_'); - - } - break; - - } - - matchRange('0','7'); - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:189: ( ( '_' )? '0' .. '7' )* - loop21: - do { - int alt21=2; - int LA21_0 = input.LA(1); - - if ( ((LA21_0>='0' && LA21_0<='7')||LA21_0=='_') ) { - alt21=1; - } - - - switch (alt21) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:190: ( '_' )? '0' .. '7' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:190: ( '_' )? - int alt20=2; - int LA20_0 = input.LA(1); - - if ( (LA20_0=='_') ) { - alt20=1; - } - switch (alt20) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:190: '_' - { - match('_'); - - } - break; - - } - - matchRange('0','7'); - - } - break; - - default : - break loop21; - } - } while (true); - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_INTEGER_VALUE" - - // $ANTLR start "RULE_WS" - public final void mRULE_WS() throws RecognitionException { - try { - int _type = RULE_WS; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1297:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1297:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1297:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt23=0; - loop23: - do { - int alt23=2; - int LA23_0 = input.LA(1); - - if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) { - alt23=1; - } - - - switch (alt23) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g: - { - if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt23 >= 1 ) break loop23; - EarlyExitException eee = - new EarlyExitException(23, input); - throw eee; - } - cnt23++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1299:16: ( . ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1299:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER ) - int alt24=35; - alt24 = dfa24.predict(input); - switch (alt24) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:10: T__12 - { - mT__12(); - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:16: T__13 - { - mT__13(); - - } - break; - case 3 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:22: T__14 - { - mT__14(); - - } - break; - case 4 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:28: T__15 - { - mT__15(); - - } - break; - case 5 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:34: T__16 - { - mT__16(); - - } - break; - case 6 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:40: T__17 - { - mT__17(); - - } - break; - case 7 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:46: T__18 - { - mT__18(); - - } - break; - case 8 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:52: T__19 - { - mT__19(); - - } - break; - case 9 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:58: T__20 - { - mT__20(); - - } - break; - case 10 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:64: T__21 - { - mT__21(); - - } - break; - case 11 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:70: T__22 - { - mT__22(); - - } - break; - case 12 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:76: T__23 - { - mT__23(); - - } - break; - case 13 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:82: T__24 - { - mT__24(); - - } - break; - case 14 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:88: T__25 - { - mT__25(); - - } - break; - case 15 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:94: T__26 - { - mT__26(); - - } - break; - case 16 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:100: T__27 - { - mT__27(); - - } - break; - case 17 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:106: T__28 - { - mT__28(); - - } - break; - case 18 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:112: T__29 - { - mT__29(); - - } - break; - case 19 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:118: T__30 - { - mT__30(); - - } - break; - case 20 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:124: T__31 - { - mT__31(); - - } - break; - case 21 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:130: T__32 - { - mT__32(); - - } - break; - case 22 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:136: T__33 - { - mT__33(); - - } - break; - case 23 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:142: T__34 - { - mT__34(); - - } - break; - case 24 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:148: T__35 - { - mT__35(); - - } - break; - case 25 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:154: T__36 - { - mT__36(); - - } - break; - case 26 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:160: T__37 - { - mT__37(); - - } - break; - case 27 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:166: T__38 - { - mT__38(); - - } - break; - case 28 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:172: RULE_ID - { - mRULE_ID(); - - } - break; - case 29 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:180: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 30 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:192: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 31 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:208: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 32 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:224: RULE_INT - { - mRULE_INT(); - - } - break; - case 33 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:233: RULE_INTEGER_VALUE - { - mRULE_INTEGER_VALUE(); - - } - break; - case 34 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:252: RULE_WS - { - mRULE_WS(); - - } - break; - case 35 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:260: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA24 dfa24 = new DFA24(this); - static final String DFA24_eotS = - "\1\uffff\1\40\1\42\1\35\1\uffff\1\46\5\uffff\2\55\1\uffff\1\55"+ - "\4\uffff\4\55\1\uffff\2\35\2\75\20\uffff\1\55\1\uffff\1\55\1\uffff"+ - "\2\55\4\uffff\4\55\2\uffff\1\75\1\uffff\1\75\1\uffff\11\55\1\75"+ - "\3\55\1\127\1\130\3\55\1\134\4\55\2\uffff\1\141\2\55\1\uffff\1\144"+ - "\3\55\1\uffff\1\150\1\55\1\uffff\2\55\1\154\1\uffff\1\155\1\55\1"+ - "\157\2\uffff\1\160\2\uffff"; - static final String DFA24_eofS = - "\161\uffff"; - static final String DFA24_minS = - "\1\0\1\52\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff\1"+ - "\157\4\uffff\1\156\2\162\1\141\1\uffff\2\0\2\60\20\uffff\1\141\1"+ - "\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144\1\165\1\154"+ - "\2\uffff\1\60\1\uffff\1\60\1\uffff\1\145\1\144\1\163\1\154\1\145"+ - "\1\157\2\145\1\163\1\60\1\146\1\117\1\145\2\60\1\156\1\165\1\162"+ - "\1\60\1\145\1\151\1\156\1\164\2\uffff\1\60\2\145\1\uffff\1\60\1"+ - "\156\1\154\1\163\1\uffff\1\60\1\144\1\uffff\1\145\1\171\1\60\1\uffff"+ - "\1\60\1\163\1\60\2\uffff\1\60\2\uffff"; - static final String DFA24_maxS = - "\1\uffff\1\57\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff"+ - "\1\165\4\uffff\1\156\2\162\1\141\1\uffff\2\uffff\1\170\1\137\20"+ - "\uffff\1\144\1\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144"+ - "\1\165\1\154\2\uffff\1\137\1\uffff\1\137\1\uffff\1\145\1\144\1\163"+ - "\1\154\1\145\1\161\2\145\1\163\1\137\1\146\1\117\1\145\2\172\1\156"+ - "\1\165\1\162\1\172\1\145\1\151\1\156\1\164\2\uffff\1\172\2\145\1"+ - "\uffff\1\172\1\156\1\154\1\163\1\uffff\1\172\1\144\1\uffff\1\145"+ - "\1\171\1\172\1\uffff\1\172\1\163\1\172\2\uffff\1\172\2\uffff"; - static final String DFA24_acceptS = - "\4\uffff\1\5\1\uffff\1\7\1\10\1\11\1\12\1\13\2\uffff\1\16\1\uffff"+ - "\1\22\1\23\1\24\1\25\4\uffff\1\34\4\uffff\1\42\1\43\1\36\1\37\1"+ - "\1\1\4\1\2\1\3\1\5\1\6\1\17\1\7\1\10\1\11\1\12\1\13\1\uffff\1\34"+ - "\1\uffff\1\16\2\uffff\1\22\1\23\1\24\1\25\4\uffff\1\35\1\41\1\uffff"+ - "\1\40\1\uffff\1\42\27\uffff\1\20\1\21\3\uffff\1\32\4\uffff\1\27"+ - "\2\uffff\1\33\3\uffff\1\31\3\uffff\1\15\1\30\1\uffff\1\26\1\14"; - static final String DFA24_specialS = - "\1\0\27\uffff\1\1\1\2\127\uffff}>"; - static final String[] DFA24_transitionS = { - "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\21\3\35\1\30\2"+ - "\35\1\7\1\17\1\11\1\20\1\5\1\1\1\32\11\33\1\2\1\35\1\3\1\15"+ - "\3\35\32\27\1\4\1\35\1\6\1\35\1\27\1\35\5\27\1\26\7\27\1\16"+ - "\1\24\2\27\1\13\1\14\1\25\1\23\5\27\1\10\1\35\1\12\1\22\uff81"+ - "\35", - "\1\36\4\uffff\1\37", - "\1\41", - "\1\43", - "", - "\1\45", - "", - "", - "", - "", - "", - "\1\54", - "\1\56", - "", - "\1\61\5\uffff\1\60", - "", - "", - "", - "", - "\1\66", - "\1\67", - "\1\70", - "\1\71", - "", - "\0\55", - "\0\72", - "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1"+ - "\73\25\uffff\1\73", - "\12\76\45\uffff\1\73", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "\1\101\2\uffff\1\100", - "", - "\1\102", - "", - "\1\103", - "\1\104", - "", - "", - "", - "", - "\1\105", - "\1\106", - "\1\107", - "\1\110", - "", - "", - "\10\111\47\uffff\1\73", - "", - "\12\76\45\uffff\1\73", - "", - "\1\112", - "\1\113", - "\1\114", - "\1\115", - "\1\116", - "\1\117\1\uffff\1\120", - "\1\121", - "\1\122", - "\1\123", - "\10\111\47\uffff\1\73", - "\1\124", - "\1\125", - "\1\126", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "\1\131", - "\1\132", - "\1\133", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "\1\135", - "\1\136", - "\1\137", - "\1\140", - "", - "", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "\1\142", - "\1\143", - "", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "\1\145", - "\1\146", - "\1\147", - "", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "\1\151", - "", - "\1\152", - "\1\153", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "\1\156", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "", - "", - "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", - "", - "" - }; - - static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS); - static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS); - static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS); - static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS); - static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS); - static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS); - static final short[][] DFA24_transition; - - static { - int numStates = DFA24_transitionS.length; - DFA24_transition = new short[numStates][]; - for (int i=0; i<numStates; i++) { - DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]); - } - } - - class DFA24 extends DFA { - - public DFA24(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 24; - this.eot = DFA24_eot; - this.eof = DFA24_eof; - this.min = DFA24_min; - this.max = DFA24_max; - this.accept = DFA24_accept; - this.special = DFA24_special; - this.transition = DFA24_transition; - } - public String getDescription() { - return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - IntStream input = _input; - int _s = s; - switch ( s ) { - case 0 : - int LA24_0 = input.LA(1); - - s = -1; - if ( (LA24_0=='/') ) {s = 1;} - - else if ( (LA24_0==':') ) {s = 2;} - - else if ( (LA24_0=='<') ) {s = 3;} - - else if ( (LA24_0=='[') ) {s = 4;} - - else if ( (LA24_0=='.') ) {s = 5;} - - else if ( (LA24_0==']') ) {s = 6;} - - else if ( (LA24_0=='*') ) {s = 7;} - - else if ( (LA24_0=='{') ) {s = 8;} - - else if ( (LA24_0==',') ) {s = 9;} - - else if ( (LA24_0=='}') ) {s = 10;} - - else if ( (LA24_0=='r') ) {s = 11;} - - else if ( (LA24_0=='s') ) {s = 12;} - - else if ( (LA24_0=='=') ) {s = 13;} - - else if ( (LA24_0=='n') ) {s = 14;} - - else if ( (LA24_0=='+') ) {s = 15;} - - else if ( (LA24_0=='-') ) {s = 16;} - - else if ( (LA24_0=='#') ) {s = 17;} - - else if ( (LA24_0=='~') ) {s = 18;} - - else if ( (LA24_0=='u') ) {s = 19;} - - else if ( (LA24_0=='o') ) {s = 20;} - - else if ( (LA24_0=='t') ) {s = 21;} - - else if ( (LA24_0=='f') ) {s = 22;} - - else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='e')||(LA24_0>='g' && LA24_0<='m')||(LA24_0>='p' && LA24_0<='q')||(LA24_0>='v' && LA24_0<='z')) ) {s = 23;} - - else if ( (LA24_0=='\'') ) {s = 24;} - - else if ( (LA24_0=='\"') ) {s = 25;} - - else if ( (LA24_0=='0') ) {s = 26;} - - else if ( ((LA24_0>='1' && LA24_0<='9')) ) {s = 27;} - - else if ( ((LA24_0>='\t' && LA24_0<='\n')||LA24_0=='\r'||LA24_0==' ') ) {s = 28;} - - else if ( ((LA24_0>='\u0000' && LA24_0<='\b')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='\u001F')||LA24_0=='!'||(LA24_0>='$' && LA24_0<='&')||(LA24_0>='(' && LA24_0<=')')||LA24_0==';'||(LA24_0>='>' && LA24_0<='@')||LA24_0=='\\'||LA24_0=='^'||LA24_0=='`'||LA24_0=='|'||(LA24_0>='\u007F' && LA24_0<='\uFFFF')) ) {s = 29;} + public static final int RULE_STRING = 6; + public static final int RULE_SL_COMMENT = 8; + public static final int T__19 = 19; + public static final int T__15 = 15; + public static final int T__37 = 37; + public static final int T__16 = 16; + public static final int T__38 = 38; + public static final int T__17 = 17; + public static final int T__18 = 18; + public static final int T__33 = 33; + public static final int T__12 = 12; + public static final int T__34 = 34; + public static final int T__13 = 13; + public static final int T__35 = 35; + public static final int T__14 = 14; + public static final int T__36 = 36; + public static final int EOF = -1; + public static final int T__30 = 30; + public static final int T__31 = 31; + public static final int T__32 = 32; + public static final int RULE_ID = 4; + public static final int RULE_WS = 10; + public static final int RULE_ANY_OTHER = 11; + public static final int T__26 = 26; + public static final int T__27 = 27; + public static final int T__28 = 28; + public static final int RULE_INT = 5; + public static final int T__29 = 29; + public static final int T__22 = 22; + public static final int RULE_ML_COMMENT = 7; + public static final int RULE_INTEGER_VALUE = 9; + public static final int T__23 = 23; + public static final int T__24 = 24; + public static final int T__25 = 25; + public static final int T__20 = 20; + public static final int T__21 = 21; + + // delegates + // delegators + + public InternalUmlPropertyLexer() { + ; + } + + public InternalUmlPropertyLexer(CharStream input) { + this(input, new RecognizerSharedState()); + } + + public InternalUmlPropertyLexer(CharStream input, RecognizerSharedState state) { + super(input, state); + + } + + public String getGrammarFileName() { + return "InternalUmlProperty.g"; + } + + // $ANTLR start "T__12" + public final void mT__12() throws RecognitionException { + try { + int _type = T__12; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:11:7: ( '/' ) + // InternalUmlProperty.g:11:9: '/' + { + match('/'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__12" + + // $ANTLR start "T__13" + public final void mT__13() throws RecognitionException { + try { + int _type = T__13; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:12:7: ( ':' ) + // InternalUmlProperty.g:12:9: ':' + { + match(':'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__13" + + // $ANTLR start "T__14" + public final void mT__14() throws RecognitionException { + try { + int _type = T__14; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:13:7: ( '<Undefined>' ) + // InternalUmlProperty.g:13:9: '<Undefined>' + { + match("<Undefined>"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__14" + + // $ANTLR start "T__15" + public final void mT__15() throws RecognitionException { + try { + int _type = T__15; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:14:7: ( '::' ) + // InternalUmlProperty.g:14:9: '::' + { + match("::"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__15" + + // $ANTLR start "T__16" + public final void mT__16() throws RecognitionException { + try { + int _type = T__16; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:15:7: ( '[' ) + // InternalUmlProperty.g:15:9: '[' + { + match('['); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__16" + + // $ANTLR start "T__17" + public final void mT__17() throws RecognitionException { + try { + int _type = T__17; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:16:7: ( '..' ) + // InternalUmlProperty.g:16:9: '..' + { + match(".."); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__17" + + // $ANTLR start "T__18" + public final void mT__18() throws RecognitionException { + try { + int _type = T__18; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:17:7: ( ']' ) + // InternalUmlProperty.g:17:9: ']' + { + match(']'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__18" + + // $ANTLR start "T__19" + public final void mT__19() throws RecognitionException { + try { + int _type = T__19; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:18:7: ( '*' ) + // InternalUmlProperty.g:18:9: '*' + { + match('*'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__19" + + // $ANTLR start "T__20" + public final void mT__20() throws RecognitionException { + try { + int _type = T__20; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:19:7: ( '{' ) + // InternalUmlProperty.g:19:9: '{' + { + match('{'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__20" + + // $ANTLR start "T__21" + public final void mT__21() throws RecognitionException { + try { + int _type = T__21; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:20:7: ( ',' ) + // InternalUmlProperty.g:20:9: ',' + { + match(','); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__21" + + // $ANTLR start "T__22" + public final void mT__22() throws RecognitionException { + try { + int _type = T__22; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:21:7: ( '}' ) + // InternalUmlProperty.g:21:9: '}' + { + match('}'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__22" + + // $ANTLR start "T__23" + public final void mT__23() throws RecognitionException { + try { + int _type = T__23; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:22:7: ( 'redefines' ) + // InternalUmlProperty.g:22:9: 'redefines' + { + match("redefines"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__23" + + // $ANTLR start "T__24" + public final void mT__24() throws RecognitionException { + try { + int _type = T__24; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:23:7: ( 'subsets' ) + // InternalUmlProperty.g:23:9: 'subsets' + { + match("subsets"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__24" + + // $ANTLR start "T__25" + public final void mT__25() throws RecognitionException { + try { + int _type = T__25; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:24:7: ( '=' ) + // InternalUmlProperty.g:24:9: '=' + { + match('='); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__25" + + // $ANTLR start "T__26" + public final void mT__26() throws RecognitionException { + try { + int _type = T__26; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:25:7: ( '.' ) + // InternalUmlProperty.g:25:9: '.' + { + match('.'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__26" + + // $ANTLR start "T__27" + public final void mT__27() throws RecognitionException { + try { + int _type = T__27; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:26:7: ( 'null' ) + // InternalUmlProperty.g:26:9: 'null' + { + match("null"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__27" + + // $ANTLR start "T__28" + public final void mT__28() throws RecognitionException { + try { + int _type = T__28; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:27:7: ( 'none' ) + // InternalUmlProperty.g:27:9: 'none' + { + match("none"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__28" + + // $ANTLR start "T__29" + public final void mT__29() throws RecognitionException { + try { + int _type = T__29; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:28:7: ( '+' ) + // InternalUmlProperty.g:28:9: '+' + { + match('+'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__29" + + // $ANTLR start "T__30" + public final void mT__30() throws RecognitionException { + try { + int _type = T__30; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:29:7: ( '-' ) + // InternalUmlProperty.g:29:9: '-' + { + match('-'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__30" + + // $ANTLR start "T__31" + public final void mT__31() throws RecognitionException { + try { + int _type = T__31; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:30:7: ( '#' ) + // InternalUmlProperty.g:30:9: '#' + { + match('#'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__31" + + // $ANTLR start "T__32" + public final void mT__32() throws RecognitionException { + try { + int _type = T__32; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:31:7: ( '~' ) + // InternalUmlProperty.g:31:9: '~' + { + match('~'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__32" + + // $ANTLR start "T__33" + public final void mT__33() throws RecognitionException { + try { + int _type = T__33; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:32:7: ( 'readOnly' ) + // InternalUmlProperty.g:32:9: 'readOnly' + { + match("readOnly"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__33" + + // $ANTLR start "T__34" + public final void mT__34() throws RecognitionException { + try { + int _type = T__34; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:33:7: ( 'union' ) + // InternalUmlProperty.g:33:9: 'union' + { + match("union"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__34" + + // $ANTLR start "T__35" + public final void mT__35() throws RecognitionException { + try { + int _type = T__35; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:34:7: ( 'ordered' ) + // InternalUmlProperty.g:34:9: 'ordered' + { + match("ordered"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__35" + + // $ANTLR start "T__36" + public final void mT__36() throws RecognitionException { + try { + int _type = T__36; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:35:7: ( 'unique' ) + // InternalUmlProperty.g:35:9: 'unique' + { + match("unique"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__36" + + // $ANTLR start "T__37" + public final void mT__37() throws RecognitionException { + try { + int _type = T__37; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:36:7: ( 'true' ) + // InternalUmlProperty.g:36:9: 'true' + { + match("true"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__37" + + // $ANTLR start "T__38" + public final void mT__38() throws RecognitionException { + try { + int _type = T__38; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:37:7: ( 'false' ) + // InternalUmlProperty.g:37:9: 'false' + { + match("false"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "T__38" + + // $ANTLR start "RULE_ID" + public final void mRULE_ID() throws RecognitionException { + try { + int _type = RULE_ID; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1285:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) ) + // InternalUmlProperty.g:1285:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) + { + // InternalUmlProperty.g:1285:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) + int alt3 = 2; + int LA3_0 = input.LA(1); + + if (((LA3_0 >= 'A' && LA3_0 <= 'Z') || LA3_0 == '_' || (LA3_0 >= 'a' && LA3_0 <= 'z'))) { + alt3 = 1; + } else if ((LA3_0 == '\'')) { + alt3 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 3, 0, input); + + throw nvae; + } + switch (alt3) { + case 1: + // InternalUmlProperty.g:1285:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + { + if ((input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + // InternalUmlProperty.g:1285:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + loop1: do { + int alt1 = 2; + int LA1_0 = input.LA(1); + + if (((LA1_0 >= '0' && LA1_0 <= '9') || (LA1_0 >= 'A' && LA1_0 <= 'Z') || LA1_0 == '_' || (LA1_0 >= 'a' && LA1_0 <= 'z'))) { + alt1 = 1; + } + + + switch (alt1) { + case 1: + // InternalUmlProperty.g: + { + if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + + } + break; + + default: + break loop1; + } + } while (true); + + + } + break; + case 2: + // InternalUmlProperty.g:1285:70: '\\'' ( options {greedy=false; } : . )* '\\'' + { + match('\''); + // InternalUmlProperty.g:1285:75: ( options {greedy=false; } : . )* + loop2: do { + int alt2 = 2; + int LA2_0 = input.LA(1); + + if ((LA2_0 == '\'')) { + alt2 = 2; + } else if (((LA2_0 >= '\u0000' && LA2_0 <= '&') || (LA2_0 >= '(' && LA2_0 <= '\uFFFF'))) { + alt2 = 1; + } + + + switch (alt2) { + case 1: + // InternalUmlProperty.g:1285:103: . + { + matchAny(); + + } + break; + + default: + break loop2; + } + } while (true); + + match('\''); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_ID" + + // $ANTLR start "RULE_STRING" + public final void mRULE_STRING() throws RecognitionException { + try { + int _type = RULE_STRING; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1287:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' ) + // InternalUmlProperty.g:1287:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' + { + match('\"'); + // InternalUmlProperty.g:1287:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* + loop4: do { + int alt4 = 3; + int LA4_0 = input.LA(1); + + if ((LA4_0 == '\\')) { + alt4 = 1; + } else if (((LA4_0 >= '\u0000' && LA4_0 <= '!') || (LA4_0 >= '#' && LA4_0 <= '[') || (LA4_0 >= ']' && LA4_0 <= '\uFFFF'))) { + alt4 = 2; + } + + + switch (alt4) { + case 1: + // InternalUmlProperty.g:1287:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) + { + match('\\'); + if (input.LA(1) == '\"' || input.LA(1) == '\'' || input.LA(1) == '\\' || input.LA(1) == 'b' || input.LA(1) == 'f' || input.LA(1) == 'n' || input.LA(1) == 'r' || input.LA(1) == 't') { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + + } + break; + case 2: + // InternalUmlProperty.g:1287:61: ~ ( ( '\\\\' | '\"' ) ) + { + if ((input.LA(1) >= '\u0000' && input.LA(1) <= '!') || (input.LA(1) >= '#' && input.LA(1) <= '[') || (input.LA(1) >= ']' && input.LA(1) <= '\uFFFF')) { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + + } + break; + + default: + break loop4; + } + } while (true); + + match('\"'); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_STRING" + + // $ANTLR start "RULE_ML_COMMENT" + public final void mRULE_ML_COMMENT() throws RecognitionException { + try { + int _type = RULE_ML_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1289:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' ) + // InternalUmlProperty.g:1289:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' + { + match("/*"); + + if ((input.LA(1) >= '\u0000' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + // InternalUmlProperty.g:1289:31: ( options {greedy=false; } : . )* + loop5: do { + int alt5 = 2; + int LA5_0 = input.LA(1); + + if ((LA5_0 == '*')) { + int LA5_1 = input.LA(2); + + if ((LA5_1 == '/')) { + alt5 = 2; + } else if (((LA5_1 >= '\u0000' && LA5_1 <= '.') || (LA5_1 >= '0' && LA5_1 <= '\uFFFF'))) { + alt5 = 1; + } + + + } else if (((LA5_0 >= '\u0000' && LA5_0 <= ')') || (LA5_0 >= '+' && LA5_0 <= '\uFFFF'))) { + alt5 = 1; + } + + + switch (alt5) { + case 1: + // InternalUmlProperty.g:1289:59: . + { + matchAny(); + + } + break; + + default: + break loop5; + } + } while (true); + + match("*/"); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_ML_COMMENT" + + // $ANTLR start "RULE_SL_COMMENT" + public final void mRULE_SL_COMMENT() throws RecognitionException { + try { + int _type = RULE_SL_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1291:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? ) + // InternalUmlProperty.g:1291:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? + { + match("//"); + + // InternalUmlProperty.g:1291:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )* + loop6: do { + int alt6 = 2; + int LA6_0 = input.LA(1); + + if (((LA6_0 >= '\u0000' && LA6_0 <= '\t') || (LA6_0 >= '\u000B' && LA6_0 <= '\f') || (LA6_0 >= '\u000E' && LA6_0 <= '?') || (LA6_0 >= 'A' && LA6_0 <= '\uFFFF'))) { + alt6 = 1; + } + + + switch (alt6) { + case 1: + // InternalUmlProperty.g:1291:24: ~ ( ( '\\n' | '\\r' | '@' ) ) + { + if ((input.LA(1) >= '\u0000' && input.LA(1) <= '\t') || (input.LA(1) >= '\u000B' && input.LA(1) <= '\f') || (input.LA(1) >= '\u000E' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + + } + break; + + default: + break loop6; + } + } while (true); + + // InternalUmlProperty.g:1291:44: ( ( '\\r' )? '\\n' )? + int alt8 = 2; + int LA8_0 = input.LA(1); + + if ((LA8_0 == '\n' || LA8_0 == '\r')) { + alt8 = 1; + } + switch (alt8) { + case 1: + // InternalUmlProperty.g:1291:45: ( '\\r' )? '\\n' + { + // InternalUmlProperty.g:1291:45: ( '\\r' )? + int alt7 = 2; + int LA7_0 = input.LA(1); + + if ((LA7_0 == '\r')) { + alt7 = 1; + } + switch (alt7) { + case 1: + // InternalUmlProperty.g:1291:45: '\\r' + { + match('\r'); + + } + break; + + } + + match('\n'); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_SL_COMMENT" + + // $ANTLR start "RULE_INT" + public final void mRULE_INT() throws RecognitionException { + try { + int _type = RULE_INT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1293:10: ( ( '0' .. '9' )+ ) + // InternalUmlProperty.g:1293:12: ( '0' .. '9' )+ + { + // InternalUmlProperty.g:1293:12: ( '0' .. '9' )+ + int cnt9 = 0; + loop9: do { + int alt9 = 2; + int LA9_0 = input.LA(1); + + if (((LA9_0 >= '0' && LA9_0 <= '9'))) { + alt9 = 1; + } + + + switch (alt9) { + case 1: + // InternalUmlProperty.g:1293:13: '0' .. '9' + { + matchRange('0', '9'); + + } + break; + + default: + if (cnt9 >= 1) + break loop9; + EarlyExitException eee = new EarlyExitException(9, input); + throw eee; + } + cnt9++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_INT" + + // $ANTLR start "RULE_INTEGER_VALUE" + public final void mRULE_INTEGER_VALUE() throws RecognitionException { + try { + int _type = RULE_INTEGER_VALUE; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1295:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) + // )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) ) + // InternalUmlProperty.g:1295:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) + // )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) + { + // InternalUmlProperty.g:1295:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' + // ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) + int alt22 = 4; + int LA22_0 = input.LA(1); + + if ((LA22_0 == '0')) { + switch (input.LA(2)) { + case 'B': + case 'b': { + alt22 = 2; + } + break; + case 'X': + case 'x': { + alt22 = 3; + } + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '_': { + alt22 = 4; + } + break; + default: + alt22 = 1; + } + + } else if (((LA22_0 >= '1' && LA22_0 <= '9'))) { + alt22 = 1; + } else { + NoViableAltException nvae = new NoViableAltException("", 22, 0, input); + + throw nvae; + } + switch (alt22) { + case 1: + // InternalUmlProperty.g:1295:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) + { + // InternalUmlProperty.g:1295:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) + int alt12 = 2; + int LA12_0 = input.LA(1); + + if ((LA12_0 == '0')) { + alt12 = 1; + } else if (((LA12_0 >= '1' && LA12_0 <= '9'))) { + alt12 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 12, 0, input); + + throw nvae; + } + switch (alt12) { + case 1: + // InternalUmlProperty.g:1295:24: '0' + { + match('0'); + + } + break; + case 2: + // InternalUmlProperty.g:1295:28: '1' .. '9' ( ( '_' )? '0' .. '9' )* + { + matchRange('1', '9'); + // InternalUmlProperty.g:1295:37: ( ( '_' )? '0' .. '9' )* + loop11: do { + int alt11 = 2; + int LA11_0 = input.LA(1); + + if (((LA11_0 >= '0' && LA11_0 <= '9') || LA11_0 == '_')) { + alt11 = 1; + } + + + switch (alt11) { + case 1: + // InternalUmlProperty.g:1295:38: ( '_' )? '0' .. '9' + { + // InternalUmlProperty.g:1295:38: ( '_' )? + int alt10 = 2; + int LA10_0 = input.LA(1); + + if ((LA10_0 == '_')) { + alt10 = 1; + } + switch (alt10) { + case 1: + // InternalUmlProperty.g:1295:38: '_' + { + match('_'); + + } + break; + + } + + matchRange('0', '9'); + + } + break; + + default: + break loop11; + } + } while (true); + + + } + break; + + } + + + } + break; + case 2: + // InternalUmlProperty.g:1295:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* + { + // InternalUmlProperty.g:1295:55: ( '0b' | '0B' ) + int alt13 = 2; + int LA13_0 = input.LA(1); + + if ((LA13_0 == '0')) { + int LA13_1 = input.LA(2); + + if ((LA13_1 == 'b')) { + alt13 = 1; + } else if ((LA13_1 == 'B')) { + alt13 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 13, 1, input); + + throw nvae; + } + } else { + NoViableAltException nvae = new NoViableAltException("", 13, 0, input); + + throw nvae; + } + switch (alt13) { + case 1: + // InternalUmlProperty.g:1295:56: '0b' + { + match("0b"); + + + } + break; + case 2: + // InternalUmlProperty.g:1295:61: '0B' + { + match("0B"); + + + } + break; + + } + + matchRange('0', '1'); + // InternalUmlProperty.g:1295:76: ( ( '_' )? '0' .. '1' )* + loop15: do { + int alt15 = 2; + int LA15_0 = input.LA(1); + + if (((LA15_0 >= '0' && LA15_0 <= '1') || LA15_0 == '_')) { + alt15 = 1; + } - if ( s>=0 ) return s; - break; - case 1 : - int LA24_24 = input.LA(1); - s = -1; - if ( ((LA24_24>='\u0000' && LA24_24<='\uFFFF')) ) {s = 45;} + switch (alt15) { + case 1: + // InternalUmlProperty.g:1295:77: ( '_' )? '0' .. '1' + { + // InternalUmlProperty.g:1295:77: ( '_' )? + int alt14 = 2; + int LA14_0 = input.LA(1); + + if ((LA14_0 == '_')) { + alt14 = 1; + } + switch (alt14) { + case 1: + // InternalUmlProperty.g:1295:77: '_' + { + match('_'); + + } + break; + + } + + matchRange('0', '1'); - else s = 29; + } + break; + + default: + break loop15; + } + } while (true); + + + } + break; + case 3: + // InternalUmlProperty.g:1295:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* + { + // InternalUmlProperty.g:1295:93: ( '0x' | '0X' ) + int alt16 = 2; + int LA16_0 = input.LA(1); + + if ((LA16_0 == '0')) { + int LA16_1 = input.LA(2); + + if ((LA16_1 == 'x')) { + alt16 = 1; + } else if ((LA16_1 == 'X')) { + alt16 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 16, 1, input); + + throw nvae; + } + } else { + NoViableAltException nvae = new NoViableAltException("", 16, 0, input); + + throw nvae; + } + switch (alt16) { + case 1: + // InternalUmlProperty.g:1295:94: '0x' + { + match("0x"); + + + } + break; + case 2: + // InternalUmlProperty.g:1295:99: '0X' + { + match("0X"); + + + } + break; + + } + + if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + // InternalUmlProperty.g:1295:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* + loop18: do { + int alt18 = 2; + int LA18_0 = input.LA(1); + + if (((LA18_0 >= '0' && LA18_0 <= '9') || (LA18_0 >= 'A' && LA18_0 <= 'F') || LA18_0 == '_' || (LA18_0 >= 'a' && LA18_0 <= 'f'))) { + alt18 = 1; + } + + + switch (alt18) { + case 1: + // InternalUmlProperty.g:1295:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) + { + // InternalUmlProperty.g:1295:135: ( '_' )? + int alt17 = 2; + int LA17_0 = input.LA(1); + + if ((LA17_0 == '_')) { + alt17 = 1; + } + switch (alt17) { + case 1: + // InternalUmlProperty.g:1295:135: '_' + { + match('_'); - if ( s>=0 ) return s; - break; - case 2 : - int LA24_25 = input.LA(1); + } + break; - s = -1; - if ( ((LA24_25>='\u0000' && LA24_25<='\uFFFF')) ) {s = 58;} + } - else s = 29; + if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + + } + break; + + default: + break loop18; + } + } while (true); + + + } + break; + case 4: + // InternalUmlProperty.g:1295:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* + { + match('0'); + // InternalUmlProperty.g:1295:175: ( '_' )? + int alt19 = 2; + int LA19_0 = input.LA(1); + + if ((LA19_0 == '_')) { + alt19 = 1; + } + switch (alt19) { + case 1: + // InternalUmlProperty.g:1295:175: '_' + { + match('_'); + + } + break; + + } + + matchRange('0', '7'); + // InternalUmlProperty.g:1295:189: ( ( '_' )? '0' .. '7' )* + loop21: do { + int alt21 = 2; + int LA21_0 = input.LA(1); + + if (((LA21_0 >= '0' && LA21_0 <= '7') || LA21_0 == '_')) { + alt21 = 1; + } + + + switch (alt21) { + case 1: + // InternalUmlProperty.g:1295:190: ( '_' )? '0' .. '7' + { + // InternalUmlProperty.g:1295:190: ( '_' )? + int alt20 = 2; + int LA20_0 = input.LA(1); + + if ((LA20_0 == '_')) { + alt20 = 1; + } + switch (alt20) { + case 1: + // InternalUmlProperty.g:1295:190: '_' + { + match('_'); + + } + break; + + } + + matchRange('0', '7'); + + } + break; + + default: + break loop21; + } + } while (true); + + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_INTEGER_VALUE" + + // $ANTLR start "RULE_WS" + public final void mRULE_WS() throws RecognitionException { + try { + int _type = RULE_WS; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1297:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // InternalUmlProperty.g:1297:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + { + // InternalUmlProperty.g:1297:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + int cnt23 = 0; + loop23: do { + int alt23 = 2; + int LA23_0 = input.LA(1); + + if (((LA23_0 >= '\t' && LA23_0 <= '\n') || LA23_0 == '\r' || LA23_0 == ' ')) { + alt23 = 1; + } + + + switch (alt23) { + case 1: + // InternalUmlProperty.g: + { + if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') { + input.consume(); + + } else { + MismatchedSetException mse = new MismatchedSetException(null, input); + recover(mse); + throw mse; + } + + + } + break; + + default: + if (cnt23 >= 1) + break loop23; + EarlyExitException eee = new EarlyExitException(23, input); + throw eee; + } + cnt23++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_WS" + + // $ANTLR start "RULE_ANY_OTHER" + public final void mRULE_ANY_OTHER() throws RecognitionException { + try { + int _type = RULE_ANY_OTHER; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlProperty.g:1299:16: ( . ) + // InternalUmlProperty.g:1299:18: . + { + matchAny(); + + } + + state.type = _type; + state.channel = _channel; + } finally { + } + } + // $ANTLR end "RULE_ANY_OTHER" + + public void mTokens() throws RecognitionException { + // InternalUmlProperty.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | + // RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER ) + int alt24 = 35; + alt24 = dfa24.predict(input); + switch (alt24) { + case 1: + // InternalUmlProperty.g:1:10: T__12 + { + mT__12(); + + } + break; + case 2: + // InternalUmlProperty.g:1:16: T__13 + { + mT__13(); + + } + break; + case 3: + // InternalUmlProperty.g:1:22: T__14 + { + mT__14(); + + } + break; + case 4: + // InternalUmlProperty.g:1:28: T__15 + { + mT__15(); + + } + break; + case 5: + // InternalUmlProperty.g:1:34: T__16 + { + mT__16(); + + } + break; + case 6: + // InternalUmlProperty.g:1:40: T__17 + { + mT__17(); + + } + break; + case 7: + // InternalUmlProperty.g:1:46: T__18 + { + mT__18(); + + } + break; + case 8: + // InternalUmlProperty.g:1:52: T__19 + { + mT__19(); + + } + break; + case 9: + // InternalUmlProperty.g:1:58: T__20 + { + mT__20(); + + } + break; + case 10: + // InternalUmlProperty.g:1:64: T__21 + { + mT__21(); + + } + break; + case 11: + // InternalUmlProperty.g:1:70: T__22 + { + mT__22(); + + } + break; + case 12: + // InternalUmlProperty.g:1:76: T__23 + { + mT__23(); + + } + break; + case 13: + // InternalUmlProperty.g:1:82: T__24 + { + mT__24(); + + } + break; + case 14: + // InternalUmlProperty.g:1:88: T__25 + { + mT__25(); + + } + break; + case 15: + // InternalUmlProperty.g:1:94: T__26 + { + mT__26(); + + } + break; + case 16: + // InternalUmlProperty.g:1:100: T__27 + { + mT__27(); + + } + break; + case 17: + // InternalUmlProperty.g:1:106: T__28 + { + mT__28(); + + } + break; + case 18: + // InternalUmlProperty.g:1:112: T__29 + { + mT__29(); + + } + break; + case 19: + // InternalUmlProperty.g:1:118: T__30 + { + mT__30(); + + } + break; + case 20: + // InternalUmlProperty.g:1:124: T__31 + { + mT__31(); + + } + break; + case 21: + // InternalUmlProperty.g:1:130: T__32 + { + mT__32(); + + } + break; + case 22: + // InternalUmlProperty.g:1:136: T__33 + { + mT__33(); + + } + break; + case 23: + // InternalUmlProperty.g:1:142: T__34 + { + mT__34(); + + } + break; + case 24: + // InternalUmlProperty.g:1:148: T__35 + { + mT__35(); + + } + break; + case 25: + // InternalUmlProperty.g:1:154: T__36 + { + mT__36(); + + } + break; + case 26: + // InternalUmlProperty.g:1:160: T__37 + { + mT__37(); + + } + break; + case 27: + // InternalUmlProperty.g:1:166: T__38 + { + mT__38(); + + } + break; + case 28: + // InternalUmlProperty.g:1:172: RULE_ID + { + mRULE_ID(); + + } + break; + case 29: + // InternalUmlProperty.g:1:180: RULE_STRING + { + mRULE_STRING(); + + } + break; + case 30: + // InternalUmlProperty.g:1:192: RULE_ML_COMMENT + { + mRULE_ML_COMMENT(); + + } + break; + case 31: + // InternalUmlProperty.g:1:208: RULE_SL_COMMENT + { + mRULE_SL_COMMENT(); + + } + break; + case 32: + // InternalUmlProperty.g:1:224: RULE_INT + { + mRULE_INT(); + + } + break; + case 33: + // InternalUmlProperty.g:1:233: RULE_INTEGER_VALUE + { + mRULE_INTEGER_VALUE(); + + } + break; + case 34: + // InternalUmlProperty.g:1:252: RULE_WS + { + mRULE_WS(); + + } + break; + case 35: + // InternalUmlProperty.g:1:260: RULE_ANY_OTHER + { + mRULE_ANY_OTHER(); + + } + break; + + } + + } + + + protected DFA24 dfa24 = new DFA24(this); + static final String DFA24_eotS = "\1\uffff\1\40\1\42\1\35\1\uffff\1\46\5\uffff\2\55\1\uffff\1\55\4\uffff\4\55\1\uffff\2\35\2\75\20\uffff\1\55\1\uffff\1\55\1\uffff\2\55\4\uffff\4\55\2\uffff\1\75\1\uffff\1\75\1\uffff\11\55\1\75\3\55\1\127\1\130\3\55\1\134\4\55\2\uffff\1\141\2\55\1\uffff\1\144\3\55\1\uffff\1\150\1\55\1\uffff\2\55\1\154\1\uffff\1\155\1\55\1\157\2\uffff\1\160\2\uffff"; + static final String DFA24_eofS = "\161\uffff"; + static final String DFA24_minS = "\1\0\1\52\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff\1\157\4\uffff\1\156\2\162\1\141\1\uffff\2\0\2\60\20\uffff\1\141\1\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144\1\165\1\154\2\uffff\1\60\1\uffff\1\60\1\uffff\1\145\1\144\1\163\1\154\1\145\1\157\2\145\1\163\1\60\1\146\1\117\1\145\2\60\1\156\1\165\1\162\1\60\1\145\1\151\1\156\1\164\2\uffff\1\60\2\145\1\uffff\1\60\1\156\1\154\1\163\1\uffff\1\60\1\144\1\uffff\1\145\1\171\1\60\1\uffff\1\60\1\163\1\60\2\uffff\1\60\2\uffff"; + static final String DFA24_maxS = "\1\uffff\1\57\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff\1\165\4\uffff\1\156\2\162\1\141\1\uffff\2\uffff\1\170\1\137\20\uffff\1\144\1\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144\1\165\1\154\2\uffff\1\137\1\uffff\1\137\1\uffff\1\145\1\144\1\163\1\154\1\145\1\161\2\145\1\163\1\137\1\146\1\117\1\145\2\172\1\156\1\165\1\162\1\172\1\145\1\151\1\156\1\164\2\uffff\1\172\2\145\1\uffff\1\172\1\156\1\154\1\163\1\uffff\1\172\1\144\1\uffff\1\145\1\171\1\172\1\uffff\1\172\1\163\1\172\2\uffff\1\172\2\uffff"; + static final String DFA24_acceptS = "\4\uffff\1\5\1\uffff\1\7\1\10\1\11\1\12\1\13\2\uffff\1\16\1\uffff\1\22\1\23\1\24\1\25\4\uffff\1\34\4\uffff\1\42\1\43\1\36\1\37\1\1\1\4\1\2\1\3\1\5\1\6\1\17\1\7\1\10\1\11\1\12\1\13\1\uffff\1\34\1\uffff\1\16\2\uffff\1\22\1\23\1\24\1\25\4\uffff\1\35\1\41\1\uffff\1\40\1\uffff\1\42\27\uffff\1\20\1\21\3\uffff\1\32\4\uffff\1\27\2\uffff\1\33\3\uffff\1\31\3\uffff\1\15\1\30\1\uffff\1\26\1\14"; + static final String DFA24_specialS = "\1\2\27\uffff\1\1\1\0\127\uffff}>"; + static final String[] DFA24_transitionS = { + "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\21\3\35\1\30\2\35\1\7\1\17\1\11\1\20\1\5\1\1\1\32\11\33\1\2\1\35\1\3\1\15\3\35\32\27\1\4\1\35\1\6\1\35\1\27\1\35\5\27\1\26\7\27\1\16\1\24\2\27\1\13\1\14\1\25\1\23\5\27\1\10\1\35\1\12\1\22\uff81\35", + "\1\36\4\uffff\1\37", + "\1\41", + "\1\43", + "", + "\1\45", + "", + "", + "", + "", + "", + "\1\54", + "\1\56", + "", + "\1\61\5\uffff\1\60", + "", + "", + "", + "", + "\1\66", + "\1\67", + "\1\70", + "\1\71", + "", + "\0\55", + "\0\72", + "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1\73\25\uffff\1\73", + "\12\76\45\uffff\1\73", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "\1\101\2\uffff\1\100", + "", + "\1\102", + "", + "\1\103", + "\1\104", + "", + "", + "", + "", + "\1\105", + "\1\106", + "\1\107", + "\1\110", + "", + "", + "\10\111\47\uffff\1\73", + "", + "\12\76\45\uffff\1\73", + "", + "\1\112", + "\1\113", + "\1\114", + "\1\115", + "\1\116", + "\1\117\1\uffff\1\120", + "\1\121", + "\1\122", + "\1\123", + "\10\111\47\uffff\1\73", + "\1\124", + "\1\125", + "\1\126", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "\1\131", + "\1\132", + "\1\133", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "\1\135", + "\1\136", + "\1\137", + "\1\140", + "", + "", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "\1\142", + "\1\143", + "", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "\1\145", + "\1\146", + "\1\147", + "", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "\1\151", + "", + "\1\152", + "\1\153", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "\1\156", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "", + "", + "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55", + "", + "" + }; + + static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS); + static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS); + static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS); + static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS); + static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS); + static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS); + static final short[][] DFA24_transition; + + static { + int numStates = DFA24_transitionS.length; + DFA24_transition = new short[numStates][]; + for (int i = 0; i < numStates; i++) { + DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]); + } + } + + class DFA24 extends DFA { + + public DFA24(BaseRecognizer recognizer) { + this.recognizer = recognizer; + this.decisionNumber = 24; + this.eot = DFA24_eot; + this.eof = DFA24_eof; + this.min = DFA24_min; + this.max = DFA24_max; + this.accept = DFA24_accept; + this.special = DFA24_special; + this.transition = DFA24_transition; + } + + public String getDescription() { + return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );"; + } + + public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { + IntStream input = _input; + int _s = s; + switch (s) { + case 0: + int LA24_25 = input.LA(1); + + s = -1; + if (((LA24_25 >= '\u0000' && LA24_25 <= '\uFFFF'))) { + s = 58; + } + + else + s = 29; + + if (s >= 0) + return s; + break; + case 1: + int LA24_24 = input.LA(1); + + s = -1; + if (((LA24_24 >= '\u0000' && LA24_24 <= '\uFFFF'))) { + s = 45; + } + + else + s = 29; + + if (s >= 0) + return s; + break; + case 2: + int LA24_0 = input.LA(1); + + s = -1; + if ((LA24_0 == '/')) { + s = 1; + } + + else if ((LA24_0 == ':')) { + s = 2; + } + + else if ((LA24_0 == '<')) { + s = 3; + } + + else if ((LA24_0 == '[')) { + s = 4; + } + + else if ((LA24_0 == '.')) { + s = 5; + } + + else if ((LA24_0 == ']')) { + s = 6; + } + + else if ((LA24_0 == '*')) { + s = 7; + } + + else if ((LA24_0 == '{')) { + s = 8; + } + + else if ((LA24_0 == ',')) { + s = 9; + } + + else if ((LA24_0 == '}')) { + s = 10; + } + + else if ((LA24_0 == 'r')) { + s = 11; + } + + else if ((LA24_0 == 's')) { + s = 12; + } + + else if ((LA24_0 == '=')) { + s = 13; + } + + else if ((LA24_0 == 'n')) { + s = 14; + } + + else if ((LA24_0 == '+')) { + s = 15; + } + + else if ((LA24_0 == '-')) { + s = 16; + } + + else if ((LA24_0 == '#')) { + s = 17; + } + + else if ((LA24_0 == '~')) { + s = 18; + } + + else if ((LA24_0 == 'u')) { + s = 19; + } + + else if ((LA24_0 == 'o')) { + s = 20; + } + + else if ((LA24_0 == 't')) { + s = 21; + } + + else if ((LA24_0 == 'f')) { + s = 22; + } + + else if (((LA24_0 >= 'A' && LA24_0 <= 'Z') || LA24_0 == '_' || (LA24_0 >= 'a' && LA24_0 <= 'e') || (LA24_0 >= 'g' && LA24_0 <= 'm') || (LA24_0 >= 'p' && LA24_0 <= 'q') || (LA24_0 >= 'v' && LA24_0 <= 'z'))) { + s = 23; + } + + else if ((LA24_0 == '\'')) { + s = 24; + } + + else if ((LA24_0 == '\"')) { + s = 25; + } + + else if ((LA24_0 == '0')) { + s = 26; + } + + else if (((LA24_0 >= '1' && LA24_0 <= '9'))) { + s = 27; + } + + else if (((LA24_0 >= '\t' && LA24_0 <= '\n') || LA24_0 == '\r' || LA24_0 == ' ')) { + s = 28; + } + + else if (((LA24_0 >= '\u0000' && LA24_0 <= '\b') || (LA24_0 >= '\u000B' && LA24_0 <= '\f') || (LA24_0 >= '\u000E' && LA24_0 <= '\u001F') || LA24_0 == '!' || (LA24_0 >= '$' && LA24_0 <= '&') || (LA24_0 >= '(' && LA24_0 <= ')') || LA24_0 == ';' + || (LA24_0 >= '>' && LA24_0 <= '@') || LA24_0 == '\\' || LA24_0 == '^' || LA24_0 == '`' || LA24_0 == '|' || (LA24_0 >= '\u007F' && LA24_0 <= '\uFFFF'))) { + s = 29; + } + + if (s >= 0) + return s; + break; + } + NoViableAltException nvae = new NoViableAltException(getDescription(), 24, _s, input); + error(nvae); + throw nvae; + } + } - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 24, _s, input); - error(nvae); - throw nvae; - } - } - }
\ No newline at end of file diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java index ce2a6544784..20c5a610385 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java @@ -1,3562 +1,3394 @@ -package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; +package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal; + +import org.antlr.runtime.BitSet; +import org.antlr.runtime.NoViableAltException; +import org.antlr.runtime.RecognitionException; +import org.antlr.runtime.RecognizerSharedState; +import org.antlr.runtime.Token; +import org.antlr.runtime.TokenStream; import org.eclipse.emf.common.util.Enumerator; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess; import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; -import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess; +@SuppressWarnings("all") +public class InternalUmlPropertyParser extends AbstractInternalAntlrParser { + public static final String[] tokenNames = new String[] { + "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'/'", "':'", "'<Undefined>'", "'::'", "'['", "'..'", "']'", "'*'", "'{'", "','", + "'}'", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'" + }; + public static final int RULE_STRING = 6; + public static final int RULE_SL_COMMENT = 8; + public static final int T__19 = 19; + public static final int T__15 = 15; + public static final int T__37 = 37; + public static final int T__16 = 16; + public static final int T__38 = 38; + public static final int T__17 = 17; + public static final int T__18 = 18; + public static final int T__33 = 33; + public static final int T__12 = 12; + public static final int T__34 = 34; + public static final int T__13 = 13; + public static final int T__35 = 35; + public static final int T__14 = 14; + public static final int T__36 = 36; + public static final int EOF = -1; + public static final int T__30 = 30; + public static final int T__31 = 31; + public static final int T__32 = 32; + public static final int RULE_ID = 4; + public static final int RULE_WS = 10; + public static final int RULE_ANY_OTHER = 11; + public static final int T__26 = 26; + public static final int T__27 = 27; + public static final int T__28 = 28; + public static final int RULE_INT = 5; + public static final int T__29 = 29; + public static final int T__22 = 22; + public static final int RULE_ML_COMMENT = 7; + public static final int RULE_INTEGER_VALUE = 9; + public static final int T__23 = 23; + public static final int T__24 = 24; + public static final int T__25 = 25; + public static final int T__20 = 20; + public static final int T__21 = 21; + + // delegates + // delegators + + + public InternalUmlPropertyParser(TokenStream input) { + this(input, new RecognizerSharedState()); + } + + public InternalUmlPropertyParser(TokenStream input, RecognizerSharedState state) { + super(input, state); + + } + + + public String[] getTokenNames() { + return InternalUmlPropertyParser.tokenNames; + } + + public String getGrammarFileName() { + return "../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g"; + } + + + + private UmlPropertyGrammarAccess grammarAccess; + + public InternalUmlPropertyParser(TokenStream input, UmlPropertyGrammarAccess grammarAccess) { + this(input); + this.grammarAccess = grammarAccess; + registerRules(grammarAccess.getGrammar()); + } + + @Override + protected String getFirstRuleName() { + return "PropertyRule"; + } + + @Override + protected UmlPropertyGrammarAccess getGrammarAccess() { + return grammarAccess; + } + + + + // $ANTLR start "entryRulePropertyRule" + // InternalUmlProperty.g:68:1: entryRulePropertyRule returns [EObject current=null] : iv_rulePropertyRule= rulePropertyRule EOF ; + public final EObject entryRulePropertyRule() throws RecognitionException { + EObject current = null; + + EObject iv_rulePropertyRule = null; + + + try { + // InternalUmlProperty.g:69:2: (iv_rulePropertyRule= rulePropertyRule EOF ) + // InternalUmlProperty.g:70:2: iv_rulePropertyRule= rulePropertyRule EOF + { + newCompositeNode(grammarAccess.getPropertyRuleRule()); + pushFollow(FOLLOW_1); + iv_rulePropertyRule = rulePropertyRule(); + + state._fsp--; + + current = iv_rulePropertyRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRulePropertyRule" -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; + // $ANTLR start "rulePropertyRule" + // InternalUmlProperty.g:77:1: rulePropertyRule returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( + // (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) ; + public final EObject rulePropertyRule() throws RecognitionException { + EObject current = null; + + Token lv_derived_1_0 = null; + Token lv_name_2_0 = null; + Token otherlv_3 = null; + Token lv_typeUndefined_5_0 = null; + EObject lv_visibility_0_0 = null; + + EObject lv_type_4_0 = null; + + EObject lv_multiplicity_6_0 = null; + + EObject lv_modifiers_7_0 = null; + + EObject lv_default_8_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:80:28: ( ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( + // (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) ) + // InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( + // (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) + { + // InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( + // (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) + // InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( + // (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? + { + // InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? + int alt1 = 2; + int LA1_0 = input.LA(1); + + if (((LA1_0 >= 29 && LA1_0 <= 32))) { + alt1 = 1; + } + switch (alt1) { + case 1: + // InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule ) + { + // InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule ) + // InternalUmlProperty.g:83:3: lv_visibility_0_0= ruleVisibilityRule + { + + newCompositeNode(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); + + pushFollow(FOLLOW_3); + lv_visibility_0_0 = ruleVisibilityRule(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); + } + set( + current, + "visibility", + lv_visibility_0_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.VisibilityRule"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + } + + // InternalUmlProperty.g:99:3: ( (lv_derived_1_0= '/' ) )? + int alt2 = 2; + int LA2_0 = input.LA(1); + + if ((LA2_0 == 12)) { + alt2 = 1; + } + switch (alt2) { + case 1: + // InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' ) + { + // InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' ) + // InternalUmlProperty.g:101:3: lv_derived_1_0= '/' + { + lv_derived_1_0 = (Token) match(input, 12, FOLLOW_4); + + newLeafNode(lv_derived_1_0, grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getPropertyRuleRule()); + } + setWithLastConsumed(current, "derived", true, "/"); + + + } + + + } + break; + + } + + // InternalUmlProperty.g:114:3: ( (lv_name_2_0= RULE_ID ) ) + // InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID ) + { + // InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID ) + // InternalUmlProperty.g:116:3: lv_name_2_0= RULE_ID + { + lv_name_2_0 = (Token) match(input, RULE_ID, FOLLOW_5); + + newLeafNode(lv_name_2_0, grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getPropertyRuleRule()); + } + setWithLastConsumed( + current, + "name", + lv_name_2_0, + "org.eclipse.papyrus.uml.alf.Common.ID"); + + + } + + + } + + // InternalUmlProperty.g:132:2: (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? + int alt4 = 2; + int LA4_0 = input.LA(1); + + if ((LA4_0 == 13)) { + alt4 = 1; + } + switch (alt4) { + case 1: + // InternalUmlProperty.g:132:4: otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) + { + otherlv_3 = (Token) match(input, 13, FOLLOW_6); + + newLeafNode(otherlv_3, grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0()); + + // InternalUmlProperty.g:136:1: ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) + int alt3 = 2; + int LA3_0 = input.LA(1); + + if ((LA3_0 == RULE_ID)) { + alt3 = 1; + } else if ((LA3_0 == 14)) { + alt3 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 3, 0, input); + + throw nvae; + } + switch (alt3) { + case 1: + // InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) ) + { + // InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) ) + // InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule ) + { + // InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule ) + // InternalUmlProperty.g:138:3: lv_type_4_0= ruleTypeRule + { + + newCompositeNode(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0()); + + pushFollow(FOLLOW_7); + lv_type_4_0 = ruleTypeRule(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); + } + set( + current, + "type", + lv_type_4_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.TypeRule"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + case 2: + // InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) ) + { + // InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) ) + // InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' ) + { + // InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' ) + // InternalUmlProperty.g:157:3: lv_typeUndefined_5_0= '<Undefined>' + { + lv_typeUndefined_5_0 = (Token) match(input, 14, FOLLOW_7); + + newLeafNode(lv_typeUndefined_5_0, grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getPropertyRuleRule()); + } + setWithLastConsumed(current, "typeUndefined", true, "<Undefined>"); + + + } + + + } + + + } + break; + + } + + + } + break; + + } + + // InternalUmlProperty.g:170:5: ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? + int alt5 = 2; + int LA5_0 = input.LA(1); + + if ((LA5_0 == 16)) { + alt5 = 1; + } + switch (alt5) { + case 1: + // InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule ) + { + // InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule ) + // InternalUmlProperty.g:172:3: lv_multiplicity_6_0= ruleMultiplicityRule + { + + newCompositeNode(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); + + pushFollow(FOLLOW_8); + lv_multiplicity_6_0 = ruleMultiplicityRule(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); + } + set( + current, + "multiplicity", + lv_multiplicity_6_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.MultiplicityRule"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + } + + // InternalUmlProperty.g:188:3: ( (lv_modifiers_7_0= ruleModifiersRule ) )? + int alt6 = 2; + int LA6_0 = input.LA(1); + + if ((LA6_0 == 20)) { + alt6 = 1; + } + switch (alt6) { + case 1: + // InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule ) + { + // InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule ) + // InternalUmlProperty.g:190:3: lv_modifiers_7_0= ruleModifiersRule + { + + newCompositeNode(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); + + pushFollow(FOLLOW_9); + lv_modifiers_7_0 = ruleModifiersRule(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); + } + set( + current, + "modifiers", + lv_modifiers_7_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifiersRule"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + } + + // InternalUmlProperty.g:206:3: ( (lv_default_8_0= ruleDefaultValueRule ) )? + int alt7 = 2; + int LA7_0 = input.LA(1); + + if ((LA7_0 == 25)) { + alt7 = 1; + } + switch (alt7) { + case 1: + // InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule ) + { + // InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule ) + // InternalUmlProperty.g:208:3: lv_default_8_0= ruleDefaultValueRule + { + + newCompositeNode(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); + + pushFollow(FOLLOW_2); + lv_default_8_0 = ruleDefaultValueRule(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); + } + set( + current, + "default", + lv_default_8_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.DefaultValueRule"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "rulePropertyRule" + + + // $ANTLR start "entryRuleVisibilityRule" + // InternalUmlProperty.g:232:1: entryRuleVisibilityRule returns [EObject current=null] : iv_ruleVisibilityRule= ruleVisibilityRule EOF ; + public final EObject entryRuleVisibilityRule() throws RecognitionException { + EObject current = null; + + EObject iv_ruleVisibilityRule = null; + + + try { + // InternalUmlProperty.g:233:2: (iv_ruleVisibilityRule= ruleVisibilityRule EOF ) + // InternalUmlProperty.g:234:2: iv_ruleVisibilityRule= ruleVisibilityRule EOF + { + newCompositeNode(grammarAccess.getVisibilityRuleRule()); + pushFollow(FOLLOW_1); + iv_ruleVisibilityRule = ruleVisibilityRule(); + + state._fsp--; + + current = iv_ruleVisibilityRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleVisibilityRule" + + + // $ANTLR start "ruleVisibilityRule" + // InternalUmlProperty.g:241:1: ruleVisibilityRule returns [EObject current=null] : ( (lv_visibility_0_0= ruleVisibilityKind ) ) ; + public final EObject ruleVisibilityRule() throws RecognitionException { + EObject current = null; + + Enumerator lv_visibility_0_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:244:28: ( ( (lv_visibility_0_0= ruleVisibilityKind ) ) ) + // InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) ) + { + // InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) ) + // InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind ) + { + // InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind ) + // InternalUmlProperty.g:247:3: lv_visibility_0_0= ruleVisibilityKind + { + + newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); + + pushFollow(FOLLOW_2); + lv_visibility_0_0 = ruleVisibilityKind(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getVisibilityRuleRule()); + } + set( + current, + "visibility", + lv_visibility_0_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.VisibilityKind"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleVisibilityRule" + + + // $ANTLR start "entryRuleTypeRule" + // InternalUmlProperty.g:271:1: entryRuleTypeRule returns [EObject current=null] : iv_ruleTypeRule= ruleTypeRule EOF ; + public final EObject entryRuleTypeRule() throws RecognitionException { + EObject current = null; + + EObject iv_ruleTypeRule = null; + + + try { + // InternalUmlProperty.g:272:2: (iv_ruleTypeRule= ruleTypeRule EOF ) + // InternalUmlProperty.g:273:2: iv_ruleTypeRule= ruleTypeRule EOF + { + newCompositeNode(grammarAccess.getTypeRuleRule()); + pushFollow(FOLLOW_1); + iv_ruleTypeRule = ruleTypeRule(); + + state._fsp--; + + current = iv_ruleTypeRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleTypeRule" + + + // $ANTLR start "ruleTypeRule" + // InternalUmlProperty.g:280:1: ruleTypeRule returns [EObject current=null] : ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) ; + public final EObject ruleTypeRule() throws RecognitionException { + EObject current = null; + + Token otherlv_1 = null; + EObject lv_path_0_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:283:28: ( ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) ) + // InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) + { + // InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) + // InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) + { + // InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )? + int alt8 = 2; + int LA8_0 = input.LA(1); + + if ((LA8_0 == RULE_ID)) { + int LA8_1 = input.LA(2); + + if ((LA8_1 == 15)) { + alt8 = 1; + } + } + switch (alt8) { + case 1: + // InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName ) + { + // InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName ) + // InternalUmlProperty.g:286:3: lv_path_0_0= ruleQualifiedName + { + + newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); + + pushFollow(FOLLOW_4); + lv_path_0_0 = ruleQualifiedName(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getTypeRuleRule()); + } + set( + current, + "path", + lv_path_0_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.QualifiedName"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + } + + // InternalUmlProperty.g:302:3: ( (otherlv_1= RULE_ID ) ) + // InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID ) + { + // InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID ) + // InternalUmlProperty.g:304:3: otherlv_1= RULE_ID + { + + if (current == null) { + current = createModelElement(grammarAccess.getTypeRuleRule()); + } + + otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_2); + + newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleTypeRule" + + + // $ANTLR start "entryRuleQualifiedName" + // InternalUmlProperty.g:323:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; + public final EObject entryRuleQualifiedName() throws RecognitionException { + EObject current = null; + + EObject iv_ruleQualifiedName = null; + + + try { + // InternalUmlProperty.g:324:2: (iv_ruleQualifiedName= ruleQualifiedName EOF ) + // InternalUmlProperty.g:325:2: iv_ruleQualifiedName= ruleQualifiedName EOF + { + newCompositeNode(grammarAccess.getQualifiedNameRule()); + pushFollow(FOLLOW_1); + iv_ruleQualifiedName = ruleQualifiedName(); + + state._fsp--; + + current = iv_ruleQualifiedName; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleQualifiedName" + + + // $ANTLR start "ruleQualifiedName" + // InternalUmlProperty.g:332:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ; + public final EObject ruleQualifiedName() throws RecognitionException { + EObject current = null; + + Token otherlv_0 = null; + Token otherlv_1 = null; + EObject lv_remaining_2_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:335:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ) + // InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) + { + // InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) + // InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? + { + // InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) ) + // InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID ) + { + // InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID ) + // InternalUmlProperty.g:338:3: otherlv_0= RULE_ID + { + + if (current == null) { + current = createModelElement(grammarAccess.getQualifiedNameRule()); + } + + otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_10); + + newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); + + + } + + + } + + otherlv_1 = (Token) match(input, 15, FOLLOW_11); + + newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); + + // InternalUmlProperty.g:353:1: ( (lv_remaining_2_0= ruleQualifiedName ) )? + int alt9 = 2; + int LA9_0 = input.LA(1); + + if ((LA9_0 == RULE_ID)) { + int LA9_1 = input.LA(2); + + if ((LA9_1 == 15)) { + alt9 = 1; + } + } + switch (alt9) { + case 1: + // InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName ) + { + // InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName ) + // InternalUmlProperty.g:355:3: lv_remaining_2_0= ruleQualifiedName + { + + newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); + + pushFollow(FOLLOW_2); + lv_remaining_2_0 = ruleQualifiedName(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getQualifiedNameRule()); + } + set( + current, + "remaining", + lv_remaining_2_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.QualifiedName"); + afterParserOrEnumRuleCall(); + + + } + + + } + break; + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleQualifiedName" + + + // $ANTLR start "entryRuleMultiplicityRule" + // InternalUmlProperty.g:379:1: entryRuleMultiplicityRule returns [EObject current=null] : iv_ruleMultiplicityRule= ruleMultiplicityRule EOF ; + public final EObject entryRuleMultiplicityRule() throws RecognitionException { + EObject current = null; + + EObject iv_ruleMultiplicityRule = null; + + + try { + // InternalUmlProperty.g:380:2: (iv_ruleMultiplicityRule= ruleMultiplicityRule EOF ) + // InternalUmlProperty.g:381:2: iv_ruleMultiplicityRule= ruleMultiplicityRule EOF + { + newCompositeNode(grammarAccess.getMultiplicityRuleRule()); + pushFollow(FOLLOW_1); + iv_ruleMultiplicityRule = ruleMultiplicityRule(); + + state._fsp--; + + current = iv_ruleMultiplicityRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleMultiplicityRule" + + + // $ANTLR start "ruleMultiplicityRule" + // InternalUmlProperty.g:388:1: ruleMultiplicityRule returns [EObject current=null] : (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) ; + public final EObject ruleMultiplicityRule() throws RecognitionException { + EObject current = null; + + Token otherlv_0 = null; + Token otherlv_2 = null; + Token otherlv_4 = null; + EObject lv_bounds_1_0 = null; + + EObject lv_bounds_3_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:391:28: ( (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) ) + // InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) + { + // InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) + // InternalUmlProperty.g:392:3: otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' + { + otherlv_0 = (Token) match(input, 16, FOLLOW_12); + + newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); + + // InternalUmlProperty.g:396:1: ( (lv_bounds_1_0= ruleBoundSpecification ) ) + // InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification ) + { + // InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification ) + // InternalUmlProperty.g:398:3: lv_bounds_1_0= ruleBoundSpecification + { + + newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); + + pushFollow(FOLLOW_13); + lv_bounds_1_0 = ruleBoundSpecification(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule()); + } + add( + current, + "bounds", + lv_bounds_1_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BoundSpecification"); + afterParserOrEnumRuleCall(); + + + } + + + } + + // InternalUmlProperty.g:414:2: (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? + int alt10 = 2; + int LA10_0 = input.LA(1); + + if ((LA10_0 == 17)) { + alt10 = 1; + } + switch (alt10) { + case 1: + // InternalUmlProperty.g:414:4: otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) + { + otherlv_2 = (Token) match(input, 17, FOLLOW_12); + + newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); + + // InternalUmlProperty.g:418:1: ( (lv_bounds_3_0= ruleBoundSpecification ) ) + // InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification ) + { + // InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification ) + // InternalUmlProperty.g:420:3: lv_bounds_3_0= ruleBoundSpecification + { + + newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); + + pushFollow(FOLLOW_14); + lv_bounds_3_0 = ruleBoundSpecification(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule()); + } + add( + current, + "bounds", + lv_bounds_3_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BoundSpecification"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + + } + + otherlv_4 = (Token) match(input, 18, FOLLOW_2); + + newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleMultiplicityRule" + + + // $ANTLR start "entryRuleBoundSpecification" + // InternalUmlProperty.g:448:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification= ruleBoundSpecification EOF ; + public final EObject entryRuleBoundSpecification() throws RecognitionException { + EObject current = null; + + EObject iv_ruleBoundSpecification = null; + + + try { + // InternalUmlProperty.g:449:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF ) + // InternalUmlProperty.g:450:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF + { + newCompositeNode(grammarAccess.getBoundSpecificationRule()); + pushFollow(FOLLOW_1); + iv_ruleBoundSpecification = ruleBoundSpecification(); + + state._fsp--; + + current = iv_ruleBoundSpecification; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleBoundSpecification" + + + // $ANTLR start "ruleBoundSpecification" + // InternalUmlProperty.g:457:1: ruleBoundSpecification returns [EObject current=null] : ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) ; + public final EObject ruleBoundSpecification() throws RecognitionException { + EObject current = null; + + AntlrDatatypeRuleToken lv_value_0_1 = null; + + AntlrDatatypeRuleToken lv_value_0_2 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:460:28: ( ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) ) + // InternalUmlProperty.g:461:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) + { + // InternalUmlProperty.g:461:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) + // InternalUmlProperty.g:462:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) + { + // InternalUmlProperty.g:462:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) + // InternalUmlProperty.g:463:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) + { + // InternalUmlProperty.g:463:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) + int alt11 = 2; + int LA11_0 = input.LA(1); + + if ((LA11_0 == RULE_INT || LA11_0 == 19)) { + alt11 = 1; + } else if ((LA11_0 == RULE_STRING)) { + alt11 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 11, 0, input); + + throw nvae; + } + switch (alt11) { + case 1: + // InternalUmlProperty.g:464:3: lv_value_0_1= ruleUnlimitedLiteral + { + + newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0()); + + pushFollow(FOLLOW_2); + lv_value_0_1 = ruleUnlimitedLiteral(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getBoundSpecificationRule()); + } + set( + current, + "value", + lv_value_0_1, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.UnlimitedLiteral"); + afterParserOrEnumRuleCall(); + + + } + break; + case 2: + // InternalUmlProperty.g:479:8: lv_value_0_2= ruleStringLiteral + { + + newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1()); + + pushFollow(FOLLOW_2); + lv_value_0_2 = ruleStringLiteral(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getBoundSpecificationRule()); + } + set( + current, + "value", + lv_value_0_2, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.StringLiteral"); + afterParserOrEnumRuleCall(); + + + } + break; + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleBoundSpecification" + + + // $ANTLR start "entryRuleUnlimitedLiteral" + // InternalUmlProperty.g:505:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ; + public final String entryRuleUnlimitedLiteral() throws RecognitionException { + String current = null; + + AntlrDatatypeRuleToken iv_ruleUnlimitedLiteral = null; + + + try { + // InternalUmlProperty.g:506:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ) + // InternalUmlProperty.g:507:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF + { + newCompositeNode(grammarAccess.getUnlimitedLiteralRule()); + pushFollow(FOLLOW_1); + iv_ruleUnlimitedLiteral = ruleUnlimitedLiteral(); + + state._fsp--; + + current = iv_ruleUnlimitedLiteral.getText(); + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleUnlimitedLiteral" + + + // $ANTLR start "ruleUnlimitedLiteral" + // InternalUmlProperty.g:514:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | kw= '*' ) ; + public final AntlrDatatypeRuleToken ruleUnlimitedLiteral() throws RecognitionException { + AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); + + Token this_INT_0 = null; + Token kw = null; + + enterRule(); + + try { + // InternalUmlProperty.g:517:28: ( (this_INT_0= RULE_INT | kw= '*' ) ) + // InternalUmlProperty.g:518:1: (this_INT_0= RULE_INT | kw= '*' ) + { + // InternalUmlProperty.g:518:1: (this_INT_0= RULE_INT | kw= '*' ) + int alt12 = 2; + int LA12_0 = input.LA(1); + + if ((LA12_0 == RULE_INT)) { + alt12 = 1; + } else if ((LA12_0 == 19)) { + alt12 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 12, 0, input); + + throw nvae; + } + switch (alt12) { + case 1: + // InternalUmlProperty.g:518:6: this_INT_0= RULE_INT + { + this_INT_0 = (Token) match(input, RULE_INT, FOLLOW_2); + + current.merge(this_INT_0); + + + newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); + + + } + break; + case 2: + // InternalUmlProperty.g:527:2: kw= '*' + { + kw = (Token) match(input, 19, FOLLOW_2); + + current.merge(kw); + newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); + + + } + break; + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleUnlimitedLiteral" + + + // $ANTLR start "entryRuleStringLiteral" + // InternalUmlProperty.g:540:1: entryRuleStringLiteral returns [String current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ; + public final String entryRuleStringLiteral() throws RecognitionException { + String current = null; + + AntlrDatatypeRuleToken iv_ruleStringLiteral = null; + + + try { + // InternalUmlProperty.g:541:2: (iv_ruleStringLiteral= ruleStringLiteral EOF ) + // InternalUmlProperty.g:542:2: iv_ruleStringLiteral= ruleStringLiteral EOF + { + newCompositeNode(grammarAccess.getStringLiteralRule()); + pushFollow(FOLLOW_1); + iv_ruleStringLiteral = ruleStringLiteral(); + + state._fsp--; + + current = iv_ruleStringLiteral.getText(); + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleStringLiteral" + + + // $ANTLR start "ruleStringLiteral" + // InternalUmlProperty.g:549:1: ruleStringLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ; + public final AntlrDatatypeRuleToken ruleStringLiteral() throws RecognitionException { + AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); + + Token this_STRING_0 = null; + + enterRule(); + + try { + // InternalUmlProperty.g:552:28: (this_STRING_0= RULE_STRING ) + // InternalUmlProperty.g:553:5: this_STRING_0= RULE_STRING + { + this_STRING_0 = (Token) match(input, RULE_STRING, FOLLOW_2); + + current.merge(this_STRING_0); + + + newLeafNode(this_STRING_0, grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall()); + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleStringLiteral" + + + // $ANTLR start "entryRuleModifiersRule" + // InternalUmlProperty.g:568:1: entryRuleModifiersRule returns [EObject current=null] : iv_ruleModifiersRule= ruleModifiersRule EOF ; + public final EObject entryRuleModifiersRule() throws RecognitionException { + EObject current = null; + + EObject iv_ruleModifiersRule = null; + + + try { + // InternalUmlProperty.g:569:2: (iv_ruleModifiersRule= ruleModifiersRule EOF ) + // InternalUmlProperty.g:570:2: iv_ruleModifiersRule= ruleModifiersRule EOF + { + newCompositeNode(grammarAccess.getModifiersRuleRule()); + pushFollow(FOLLOW_1); + iv_ruleModifiersRule = ruleModifiersRule(); + + state._fsp--; + + current = iv_ruleModifiersRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleModifiersRule" + + + // $ANTLR start "ruleModifiersRule" + // InternalUmlProperty.g:577:1: ruleModifiersRule returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ; + public final EObject ruleModifiersRule() throws RecognitionException { + EObject current = null; + + Token otherlv_1 = null; + Token otherlv_3 = null; + Token otherlv_5 = null; + EObject lv_values_2_0 = null; + + EObject lv_values_4_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:580:28: ( ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ) + // InternalUmlProperty.g:581:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) + { + // InternalUmlProperty.g:581:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) + // InternalUmlProperty.g:581:2: () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' + { + // InternalUmlProperty.g:581:2: () + // InternalUmlProperty.g:582:5: + { + + current = forceCreateModelElement( + grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(), + current); + + + } + + otherlv_1 = (Token) match(input, 20, FOLLOW_15); + + newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); + + // InternalUmlProperty.g:591:1: ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? + int alt14 = 2; + int LA14_0 = input.LA(1); + + if (((LA14_0 >= 23 && LA14_0 <= 24) || (LA14_0 >= 33 && LA14_0 <= 36))) { + alt14 = 1; + } + switch (alt14) { + case 1: + // InternalUmlProperty.g:591:2: ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* + { + // InternalUmlProperty.g:591:2: ( (lv_values_2_0= ruleModifierSpecification ) ) + // InternalUmlProperty.g:592:1: (lv_values_2_0= ruleModifierSpecification ) + { + // InternalUmlProperty.g:592:1: (lv_values_2_0= ruleModifierSpecification ) + // InternalUmlProperty.g:593:3: lv_values_2_0= ruleModifierSpecification + { + + newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); + + pushFollow(FOLLOW_16); + lv_values_2_0 = ruleModifierSpecification(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getModifiersRuleRule()); + } + add( + current, + "values", + lv_values_2_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierSpecification"); + afterParserOrEnumRuleCall(); + + + } + + + } + + // InternalUmlProperty.g:609:2: (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* + loop13: do { + int alt13 = 2; + int LA13_0 = input.LA(1); + + if ((LA13_0 == 21)) { + alt13 = 1; + } + + + switch (alt13) { + case 1: + // InternalUmlProperty.g:609:4: otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) + { + otherlv_3 = (Token) match(input, 21, FOLLOW_17); + + newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); + + // InternalUmlProperty.g:613:1: ( (lv_values_4_0= ruleModifierSpecification ) ) + // InternalUmlProperty.g:614:1: (lv_values_4_0= ruleModifierSpecification ) + { + // InternalUmlProperty.g:614:1: (lv_values_4_0= ruleModifierSpecification ) + // InternalUmlProperty.g:615:3: lv_values_4_0= ruleModifierSpecification + { + + newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); + + pushFollow(FOLLOW_16); + lv_values_4_0 = ruleModifierSpecification(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getModifiersRuleRule()); + } + add( + current, + "values", + lv_values_4_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierSpecification"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + + default: + break loop13; + } + } while (true); + + + } + break; + + } + + otherlv_5 = (Token) match(input, 22, FOLLOW_2); + + newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleModifiersRule" + + + // $ANTLR start "entryRuleModifierSpecification" + // InternalUmlProperty.g:643:1: entryRuleModifierSpecification returns [EObject current=null] : iv_ruleModifierSpecification= ruleModifierSpecification EOF ; + public final EObject entryRuleModifierSpecification() throws RecognitionException { + EObject current = null; + + EObject iv_ruleModifierSpecification = null; + + + try { + // InternalUmlProperty.g:644:2: (iv_ruleModifierSpecification= ruleModifierSpecification EOF ) + // InternalUmlProperty.g:645:2: iv_ruleModifierSpecification= ruleModifierSpecification EOF + { + newCompositeNode(grammarAccess.getModifierSpecificationRule()); + pushFollow(FOLLOW_1); + iv_ruleModifierSpecification = ruleModifierSpecification(); + + state._fsp--; + + current = iv_ruleModifierSpecification; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleModifierSpecification" + + + // $ANTLR start "ruleModifierSpecification" + // InternalUmlProperty.g:652:1: ruleModifierSpecification returns [EObject current=null] : ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ; + public final EObject ruleModifierSpecification() throws RecognitionException { + EObject current = null; + + Enumerator lv_value_0_0 = null; + + EObject lv_redefines_1_0 = null; + + EObject lv_subsets_2_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:655:28: ( ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ) + // InternalUmlProperty.g:656:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) + { + // InternalUmlProperty.g:656:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) + int alt15 = 3; + switch (input.LA(1)) { + case 33: + case 34: + case 35: + case 36: { + alt15 = 1; + } + break; + case 23: { + alt15 = 2; + } + break; + case 24: { + alt15 = 3; + } + break; + default: + NoViableAltException nvae = new NoViableAltException("", 15, 0, input); + + throw nvae; + } + + switch (alt15) { + case 1: + // InternalUmlProperty.g:656:2: ( (lv_value_0_0= ruleModifierKind ) ) + { + // InternalUmlProperty.g:656:2: ( (lv_value_0_0= ruleModifierKind ) ) + // InternalUmlProperty.g:657:1: (lv_value_0_0= ruleModifierKind ) + { + // InternalUmlProperty.g:657:1: (lv_value_0_0= ruleModifierKind ) + // InternalUmlProperty.g:658:3: lv_value_0_0= ruleModifierKind + { + + newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); + + pushFollow(FOLLOW_2); + lv_value_0_0 = ruleModifierKind(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getModifierSpecificationRule()); + } + set( + current, + "value", + lv_value_0_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierKind"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + case 2: + // InternalUmlProperty.g:675:6: ( (lv_redefines_1_0= ruleRedefinesRule ) ) + { + // InternalUmlProperty.g:675:6: ( (lv_redefines_1_0= ruleRedefinesRule ) ) + // InternalUmlProperty.g:676:1: (lv_redefines_1_0= ruleRedefinesRule ) + { + // InternalUmlProperty.g:676:1: (lv_redefines_1_0= ruleRedefinesRule ) + // InternalUmlProperty.g:677:3: lv_redefines_1_0= ruleRedefinesRule + { + + newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); + + pushFollow(FOLLOW_2); + lv_redefines_1_0 = ruleRedefinesRule(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getModifierSpecificationRule()); + } + set( + current, + "redefines", + lv_redefines_1_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.RedefinesRule"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + case 3: + // InternalUmlProperty.g:694:6: ( (lv_subsets_2_0= ruleSubsetsRule ) ) + { + // InternalUmlProperty.g:694:6: ( (lv_subsets_2_0= ruleSubsetsRule ) ) + // InternalUmlProperty.g:695:1: (lv_subsets_2_0= ruleSubsetsRule ) + { + // InternalUmlProperty.g:695:1: (lv_subsets_2_0= ruleSubsetsRule ) + // InternalUmlProperty.g:696:3: lv_subsets_2_0= ruleSubsetsRule + { + + newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); + + pushFollow(FOLLOW_2); + lv_subsets_2_0 = ruleSubsetsRule(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getModifierSpecificationRule()); + } + set( + current, + "subsets", + lv_subsets_2_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.SubsetsRule"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + break; + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleModifierSpecification" + + + // $ANTLR start "entryRuleRedefinesRule" + // InternalUmlProperty.g:720:1: entryRuleRedefinesRule returns [EObject current=null] : iv_ruleRedefinesRule= ruleRedefinesRule EOF ; + public final EObject entryRuleRedefinesRule() throws RecognitionException { + EObject current = null; + + EObject iv_ruleRedefinesRule = null; + + + try { + // InternalUmlProperty.g:721:2: (iv_ruleRedefinesRule= ruleRedefinesRule EOF ) + // InternalUmlProperty.g:722:2: iv_ruleRedefinesRule= ruleRedefinesRule EOF + { + newCompositeNode(grammarAccess.getRedefinesRuleRule()); + pushFollow(FOLLOW_1); + iv_ruleRedefinesRule = ruleRedefinesRule(); + + state._fsp--; + + current = iv_ruleRedefinesRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleRedefinesRule" + + + // $ANTLR start "ruleRedefinesRule" + // InternalUmlProperty.g:729:1: ruleRedefinesRule returns [EObject current=null] : (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) ; + public final EObject ruleRedefinesRule() throws RecognitionException { + EObject current = null; + + Token otherlv_0 = null; + Token otherlv_1 = null; + + enterRule(); + + try { + // InternalUmlProperty.g:732:28: ( (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) ) + // InternalUmlProperty.g:733:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) + { + // InternalUmlProperty.g:733:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) + // InternalUmlProperty.g:733:3: otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) + { + otherlv_0 = (Token) match(input, 23, FOLLOW_4); + + newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); + + // InternalUmlProperty.g:737:1: ( (otherlv_1= RULE_ID ) ) + // InternalUmlProperty.g:738:1: (otherlv_1= RULE_ID ) + { + // InternalUmlProperty.g:738:1: (otherlv_1= RULE_ID ) + // InternalUmlProperty.g:739:3: otherlv_1= RULE_ID + { + + if (current == null) { + current = createModelElement(grammarAccess.getRedefinesRuleRule()); + } + + otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_2); + + newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0()); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleRedefinesRule" + + + // $ANTLR start "entryRuleSubsetsRule" + // InternalUmlProperty.g:758:1: entryRuleSubsetsRule returns [EObject current=null] : iv_ruleSubsetsRule= ruleSubsetsRule EOF ; + public final EObject entryRuleSubsetsRule() throws RecognitionException { + EObject current = null; + + EObject iv_ruleSubsetsRule = null; + + + try { + // InternalUmlProperty.g:759:2: (iv_ruleSubsetsRule= ruleSubsetsRule EOF ) + // InternalUmlProperty.g:760:2: iv_ruleSubsetsRule= ruleSubsetsRule EOF + { + newCompositeNode(grammarAccess.getSubsetsRuleRule()); + pushFollow(FOLLOW_1); + iv_ruleSubsetsRule = ruleSubsetsRule(); + + state._fsp--; + + current = iv_ruleSubsetsRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleSubsetsRule" + + + // $ANTLR start "ruleSubsetsRule" + // InternalUmlProperty.g:767:1: ruleSubsetsRule returns [EObject current=null] : (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) ; + public final EObject ruleSubsetsRule() throws RecognitionException { + EObject current = null; + + Token otherlv_0 = null; + Token otherlv_1 = null; + + enterRule(); + + try { + // InternalUmlProperty.g:770:28: ( (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) ) + // InternalUmlProperty.g:771:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) + { + // InternalUmlProperty.g:771:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) + // InternalUmlProperty.g:771:3: otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) + { + otherlv_0 = (Token) match(input, 24, FOLLOW_4); + + newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); + + // InternalUmlProperty.g:775:1: ( (otherlv_1= RULE_ID ) ) + // InternalUmlProperty.g:776:1: (otherlv_1= RULE_ID ) + { + // InternalUmlProperty.g:776:1: (otherlv_1= RULE_ID ) + // InternalUmlProperty.g:777:3: otherlv_1= RULE_ID + { + + if (current == null) { + current = createModelElement(grammarAccess.getSubsetsRuleRule()); + } + + otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_2); + + newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0()); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleSubsetsRule" + + + // $ANTLR start "entryRuleDefaultValueRule" + // InternalUmlProperty.g:796:1: entryRuleDefaultValueRule returns [EObject current=null] : iv_ruleDefaultValueRule= ruleDefaultValueRule EOF ; + public final EObject entryRuleDefaultValueRule() throws RecognitionException { + EObject current = null; + + EObject iv_ruleDefaultValueRule = null; + + + try { + // InternalUmlProperty.g:797:2: (iv_ruleDefaultValueRule= ruleDefaultValueRule EOF ) + // InternalUmlProperty.g:798:2: iv_ruleDefaultValueRule= ruleDefaultValueRule EOF + { + newCompositeNode(grammarAccess.getDefaultValueRuleRule()); + pushFollow(FOLLOW_1); + iv_ruleDefaultValueRule = ruleDefaultValueRule(); + + state._fsp--; + + current = iv_ruleDefaultValueRule; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleDefaultValueRule" + + + // $ANTLR start "ruleDefaultValueRule" + // InternalUmlProperty.g:805:1: ruleDefaultValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) ; + public final EObject ruleDefaultValueRule() throws RecognitionException { + EObject current = null; + + Token otherlv_0 = null; + EObject lv_default_1_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:808:28: ( (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) ) + // InternalUmlProperty.g:809:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) + { + // InternalUmlProperty.g:809:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) + // InternalUmlProperty.g:809:3: otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) + { + otherlv_0 = (Token) match(input, 25, FOLLOW_18); + + newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); + + // InternalUmlProperty.g:813:1: ( (lv_default_1_0= ruleValue ) ) + // InternalUmlProperty.g:814:1: (lv_default_1_0= ruleValue ) + { + // InternalUmlProperty.g:814:1: (lv_default_1_0= ruleValue ) + // InternalUmlProperty.g:815:3: lv_default_1_0= ruleValue + { + + newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); + + pushFollow(FOLLOW_2); + lv_default_1_0 = ruleValue(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule()); + } + set( + current, + "default", + lv_default_1_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.Value"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleDefaultValueRule" + + + // $ANTLR start "entryRuleValue" + // InternalUmlProperty.g:839:1: entryRuleValue returns [EObject current=null] : iv_ruleValue= ruleValue EOF ; + public final EObject entryRuleValue() throws RecognitionException { + EObject current = null; + + EObject iv_ruleValue = null; + + + try { + // InternalUmlProperty.g:840:2: (iv_ruleValue= ruleValue EOF ) + // InternalUmlProperty.g:841:2: iv_ruleValue= ruleValue EOF + { + newCompositeNode(grammarAccess.getValueRule()); + pushFollow(FOLLOW_1); + iv_ruleValue = ruleValue(); + + state._fsp--; + + current = iv_ruleValue; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleValue" + + + // $ANTLR start "ruleValue" + // InternalUmlProperty.g:848:1: ruleValue returns [EObject current=null] : (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | + // this_NoValue_5= ruleNoValue ) ; + public final EObject ruleValue() throws RecognitionException { + EObject current = null; + + EObject this_IntValue_0 = null; + + EObject this_StringValue_1 = null; + + EObject this_BooleanValue_2 = null; + + EObject this_RealValue_3 = null; + + EObject this_NullValue_4 = null; + + EObject this_NoValue_5 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:851:28: ( (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) ) + // InternalUmlProperty.g:852:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) + { + // InternalUmlProperty.g:852:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) + int alt16 = 6; + switch (input.LA(1)) { + case RULE_INT: { + int LA16_1 = input.LA(2); + + if ((LA16_1 == 26)) { + alt16 = 4; + } else if ((LA16_1 == EOF)) { + alt16 = 1; + } else { + NoViableAltException nvae = new NoViableAltException("", 16, 1, input); + + throw nvae; + } + } + break; + case RULE_STRING: { + alt16 = 2; + } + break; + case 37: + case 38: { + alt16 = 3; + } + break; + case 26: { + alt16 = 4; + } + break; + case 27: { + alt16 = 5; + } + break; + case 28: { + alt16 = 6; + } + break; + default: + NoViableAltException nvae = new NoViableAltException("", 16, 0, input); + + throw nvae; + } + + switch (alt16) { + case 1: + // InternalUmlProperty.g:853:5: this_IntValue_0= ruleIntValue + { + + newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); + + pushFollow(FOLLOW_2); + this_IntValue_0 = ruleIntValue(); + + state._fsp--; + + + current = this_IntValue_0; + afterParserOrEnumRuleCall(); + + + } + break; + case 2: + // InternalUmlProperty.g:863:5: this_StringValue_1= ruleStringValue + { + + newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); + + pushFollow(FOLLOW_2); + this_StringValue_1 = ruleStringValue(); + + state._fsp--; + + + current = this_StringValue_1; + afterParserOrEnumRuleCall(); + + + } + break; + case 3: + // InternalUmlProperty.g:873:5: this_BooleanValue_2= ruleBooleanValue + { + + newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); + + pushFollow(FOLLOW_2); + this_BooleanValue_2 = ruleBooleanValue(); + + state._fsp--; + + + current = this_BooleanValue_2; + afterParserOrEnumRuleCall(); + + + } + break; + case 4: + // InternalUmlProperty.g:883:5: this_RealValue_3= ruleRealValue + { + + newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); + + pushFollow(FOLLOW_2); + this_RealValue_3 = ruleRealValue(); + + state._fsp--; + + + current = this_RealValue_3; + afterParserOrEnumRuleCall(); + + + } + break; + case 5: + // InternalUmlProperty.g:893:5: this_NullValue_4= ruleNullValue + { + + newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); + + pushFollow(FOLLOW_2); + this_NullValue_4 = ruleNullValue(); + + state._fsp--; + + + current = this_NullValue_4; + afterParserOrEnumRuleCall(); + + + } + break; + case 6: + // InternalUmlProperty.g:903:5: this_NoValue_5= ruleNoValue + { + + newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); + + pushFollow(FOLLOW_2); + this_NoValue_5 = ruleNoValue(); + + state._fsp--; + + + current = this_NoValue_5; + afterParserOrEnumRuleCall(); + + + } + break; + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleValue" + + + // $ANTLR start "entryRuleIntValue" + // InternalUmlProperty.g:919:1: entryRuleIntValue returns [EObject current=null] : iv_ruleIntValue= ruleIntValue EOF ; + public final EObject entryRuleIntValue() throws RecognitionException { + EObject current = null; + + EObject iv_ruleIntValue = null; + + + try { + // InternalUmlProperty.g:920:2: (iv_ruleIntValue= ruleIntValue EOF ) + // InternalUmlProperty.g:921:2: iv_ruleIntValue= ruleIntValue EOF + { + newCompositeNode(grammarAccess.getIntValueRule()); + pushFollow(FOLLOW_1); + iv_ruleIntValue = ruleIntValue(); + + state._fsp--; + + current = iv_ruleIntValue; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleIntValue" + + + // $ANTLR start "ruleIntValue" + // InternalUmlProperty.g:928:1: ruleIntValue returns [EObject current=null] : ( (lv_literalInteger_0_0= RULE_INT ) ) ; + public final EObject ruleIntValue() throws RecognitionException { + EObject current = null; + + Token lv_literalInteger_0_0 = null; + + enterRule(); + + try { + // InternalUmlProperty.g:931:28: ( ( (lv_literalInteger_0_0= RULE_INT ) ) ) + // InternalUmlProperty.g:932:1: ( (lv_literalInteger_0_0= RULE_INT ) ) + { + // InternalUmlProperty.g:932:1: ( (lv_literalInteger_0_0= RULE_INT ) ) + // InternalUmlProperty.g:933:1: (lv_literalInteger_0_0= RULE_INT ) + { + // InternalUmlProperty.g:933:1: (lv_literalInteger_0_0= RULE_INT ) + // InternalUmlProperty.g:934:3: lv_literalInteger_0_0= RULE_INT + { + lv_literalInteger_0_0 = (Token) match(input, RULE_INT, FOLLOW_2); + + newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getIntValueRule()); + } + setWithLastConsumed( + current, + "literalInteger", + lv_literalInteger_0_0, + "org.eclipse.papyrus.uml.alf.Common.INT"); + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleIntValue" + + + // $ANTLR start "entryRuleStringValue" + // InternalUmlProperty.g:958:1: entryRuleStringValue returns [EObject current=null] : iv_ruleStringValue= ruleStringValue EOF ; + public final EObject entryRuleStringValue() throws RecognitionException { + EObject current = null; + + EObject iv_ruleStringValue = null; + + + try { + // InternalUmlProperty.g:959:2: (iv_ruleStringValue= ruleStringValue EOF ) + // InternalUmlProperty.g:960:2: iv_ruleStringValue= ruleStringValue EOF + { + newCompositeNode(grammarAccess.getStringValueRule()); + pushFollow(FOLLOW_1); + iv_ruleStringValue = ruleStringValue(); + + state._fsp--; + + current = iv_ruleStringValue; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleStringValue" + + + // $ANTLR start "ruleStringValue" + // InternalUmlProperty.g:967:1: ruleStringValue returns [EObject current=null] : ( (lv_literalString_0_0= RULE_STRING ) ) ; + public final EObject ruleStringValue() throws RecognitionException { + EObject current = null; + + Token lv_literalString_0_0 = null; + + enterRule(); + + try { + // InternalUmlProperty.g:970:28: ( ( (lv_literalString_0_0= RULE_STRING ) ) ) + // InternalUmlProperty.g:971:1: ( (lv_literalString_0_0= RULE_STRING ) ) + { + // InternalUmlProperty.g:971:1: ( (lv_literalString_0_0= RULE_STRING ) ) + // InternalUmlProperty.g:972:1: (lv_literalString_0_0= RULE_STRING ) + { + // InternalUmlProperty.g:972:1: (lv_literalString_0_0= RULE_STRING ) + // InternalUmlProperty.g:973:3: lv_literalString_0_0= RULE_STRING + { + lv_literalString_0_0 = (Token) match(input, RULE_STRING, FOLLOW_2); + + newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getStringValueRule()); + } + setWithLastConsumed( + current, + "literalString", + lv_literalString_0_0, + "org.eclipse.papyrus.uml.alf.Common.STRING"); + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleStringValue" + + + // $ANTLR start "entryRuleBooleanValue" + // InternalUmlProperty.g:997:1: entryRuleBooleanValue returns [EObject current=null] : iv_ruleBooleanValue= ruleBooleanValue EOF ; + public final EObject entryRuleBooleanValue() throws RecognitionException { + EObject current = null; + + EObject iv_ruleBooleanValue = null; + + + try { + // InternalUmlProperty.g:998:2: (iv_ruleBooleanValue= ruleBooleanValue EOF ) + // InternalUmlProperty.g:999:2: iv_ruleBooleanValue= ruleBooleanValue EOF + { + newCompositeNode(grammarAccess.getBooleanValueRule()); + pushFollow(FOLLOW_1); + iv_ruleBooleanValue = ruleBooleanValue(); + + state._fsp--; + + current = iv_ruleBooleanValue; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleBooleanValue" + + + // $ANTLR start "ruleBooleanValue" + // InternalUmlProperty.g:1006:1: ruleBooleanValue returns [EObject current=null] : ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) ; + public final EObject ruleBooleanValue() throws RecognitionException { + EObject current = null; + + Enumerator lv_literalBoolean_0_0 = null; + + + enterRule(); + + try { + // InternalUmlProperty.g:1009:28: ( ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) ) + // InternalUmlProperty.g:1010:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) + { + // InternalUmlProperty.g:1010:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) + // InternalUmlProperty.g:1011:1: (lv_literalBoolean_0_0= ruleBooleanLiterals ) + { + // InternalUmlProperty.g:1011:1: (lv_literalBoolean_0_0= ruleBooleanLiterals ) + // InternalUmlProperty.g:1012:3: lv_literalBoolean_0_0= ruleBooleanLiterals + { + + newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); + + pushFollow(FOLLOW_2); + lv_literalBoolean_0_0 = ruleBooleanLiterals(); + + state._fsp--; + + + if (current == null) { + current = createModelElementForParent(grammarAccess.getBooleanValueRule()); + } + set( + current, + "literalBoolean", + lv_literalBoolean_0_0, + "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BooleanLiterals"); + afterParserOrEnumRuleCall(); + + + } + + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleBooleanValue" + + + // $ANTLR start "entryRuleRealValue" + // InternalUmlProperty.g:1036:1: entryRuleRealValue returns [EObject current=null] : iv_ruleRealValue= ruleRealValue EOF ; + public final EObject entryRuleRealValue() throws RecognitionException { + EObject current = null; + + EObject iv_ruleRealValue = null; + + + try { + // InternalUmlProperty.g:1037:2: (iv_ruleRealValue= ruleRealValue EOF ) + // InternalUmlProperty.g:1038:2: iv_ruleRealValue= ruleRealValue EOF + { + newCompositeNode(grammarAccess.getRealValueRule()); + pushFollow(FOLLOW_1); + iv_ruleRealValue = ruleRealValue(); + + state._fsp--; + + current = iv_ruleRealValue; + match(input, EOF, FOLLOW_2); + + } + + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleRealValue" + + + // $ANTLR start "ruleRealValue" + // InternalUmlProperty.g:1045:1: ruleRealValue returns [EObject current=null] : ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= + // RULE_INT ) ) ) ) ; + public final EObject ruleRealValue() throws RecognitionException { + EObject current = null; + + Token lv_integer_0_0 = null; + Token otherlv_1 = null; + Token otherlv_2 = null; + Token lv_fraction_3_0 = null; + Token lv_integer_4_0 = null; + Token otherlv_5 = null; + Token lv_fraction_6_0 = null; + + enterRule(); + + try { + // InternalUmlProperty.g:1048:28: ( ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) ) + // InternalUmlProperty.g:1049:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) + { + // InternalUmlProperty.g:1049:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) + int alt17 = 3; + int LA17_0 = input.LA(1); + + if ((LA17_0 == RULE_INT)) { + int LA17_1 = input.LA(2); + + if ((LA17_1 == 26)) { + int LA17_3 = input.LA(3); + + if ((LA17_3 == RULE_INT)) { + alt17 = 3; + } else if ((LA17_3 == EOF)) { + alt17 = 1; + } else { + NoViableAltException nvae = new NoViableAltException("", 17, 3, input); + + throw nvae; + } + } else { + NoViableAltException nvae = new NoViableAltException("", 17, 1, input); + + throw nvae; + } + } else if ((LA17_0 == 26)) { + alt17 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 17, 0, input); + + throw nvae; + } + switch (alt17) { + case 1: + // InternalUmlProperty.g:1049:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) + { + // InternalUmlProperty.g:1049:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) + // InternalUmlProperty.g:1049:3: ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' + { + // InternalUmlProperty.g:1049:3: ( (lv_integer_0_0= RULE_INT ) ) + // InternalUmlProperty.g:1050:1: (lv_integer_0_0= RULE_INT ) + { + // InternalUmlProperty.g:1050:1: (lv_integer_0_0= RULE_INT ) + // InternalUmlProperty.g:1051:3: lv_integer_0_0= RULE_INT + { + lv_integer_0_0 = (Token) match(input, RULE_INT, FOLLOW_19); + + newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getRealValueRule()); + } + setWithLastConsumed( + current, + "integer", + lv_integer_0_0, + "org.eclipse.papyrus.uml.alf.Common.INT"); + + + } + + + } + + otherlv_1 = (Token) match(input, 26, FOLLOW_2); + + newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); + + + } + + + } + break; + case 2: + // InternalUmlProperty.g:1072:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) + { + // InternalUmlProperty.g:1072:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) + // InternalUmlProperty.g:1072:8: otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) + { + otherlv_2 = (Token) match(input, 26, FOLLOW_20); + + newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); + + // InternalUmlProperty.g:1076:1: ( (lv_fraction_3_0= RULE_INT ) ) + // InternalUmlProperty.g:1077:1: (lv_fraction_3_0= RULE_INT ) + { + // InternalUmlProperty.g:1077:1: (lv_fraction_3_0= RULE_INT ) + // InternalUmlProperty.g:1078:3: lv_fraction_3_0= RULE_INT + { + lv_fraction_3_0 = (Token) match(input, RULE_INT, FOLLOW_2); + + newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getRealValueRule()); + } + setWithLastConsumed( + current, + "fraction", + lv_fraction_3_0, + "org.eclipse.papyrus.uml.alf.Common.INT"); + + + } + + + } + + + } + + + } + break; + case 3: + // InternalUmlProperty.g:1095:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) + { + // InternalUmlProperty.g:1095:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) + // InternalUmlProperty.g:1095:7: ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) + { + // InternalUmlProperty.g:1095:7: ( (lv_integer_4_0= RULE_INT ) ) + // InternalUmlProperty.g:1096:1: (lv_integer_4_0= RULE_INT ) + { + // InternalUmlProperty.g:1096:1: (lv_integer_4_0= RULE_INT ) + // InternalUmlProperty.g:1097:3: lv_integer_4_0= RULE_INT + { + lv_integer_4_0 = (Token) match(input, RULE_INT, FOLLOW_19); + + newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); + + + if (current == null) { + current = createModelElement(grammarAccess.getRealValueRule()); + } + setWithLastConsumed( + current, + "integer", + lv_integer_4_0, + "org.eclipse.papyrus.uml.alf.Common.INT"); + + + } -@SuppressWarnings("all") -public class InternalUmlPropertyParser extends AbstractInternalAntlrParser { - public static final String[] tokenNames = new String[] { - "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'/'", "':'", "'<Undefined>'", "'::'", "'['", "'..'", "']'", "'*'", "'{'", "','", "'}'", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'" - }; - public static final int RULE_ID=4; - public static final int T__29=29; - public static final int T__28=28; - public static final int T__27=27; - public static final int T__26=26; - public static final int T__25=25; - public static final int T__24=24; - public static final int T__23=23; - public static final int T__22=22; - public static final int RULE_ANY_OTHER=11; - public static final int T__21=21; - public static final int T__20=20; - public static final int RULE_INTEGER_VALUE=9; - public static final int RULE_SL_COMMENT=8; - public static final int EOF=-1; - public static final int RULE_ML_COMMENT=7; - public static final int T__30=30; - public static final int T__19=19; - public static final int T__31=31; - public static final int RULE_STRING=6; - public static final int T__32=32; - public static final int T__33=33; - public static final int T__16=16; - public static final int T__34=34; - public static final int T__15=15; - public static final int T__35=35; - public static final int T__18=18; - public static final int T__36=36; - public static final int T__17=17; - public static final int T__37=37; - public static final int T__12=12; - public static final int T__38=38; - public static final int T__14=14; - public static final int T__13=13; - public static final int RULE_INT=5; - public static final int RULE_WS=10; - - // delegates - // delegators - - - public InternalUmlPropertyParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalUmlPropertyParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalUmlPropertyParser.tokenNames; } - public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g"; } - - - - private UmlPropertyGrammarAccess grammarAccess; - - public InternalUmlPropertyParser(TokenStream input, UmlPropertyGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "PropertyRule"; - } - - @Override - protected UmlPropertyGrammarAccess getGrammarAccess() { - return grammarAccess; - } - - - - // $ANTLR start "entryRulePropertyRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:68:1: entryRulePropertyRule returns [EObject current=null] : iv_rulePropertyRule= rulePropertyRule EOF ; - public final EObject entryRulePropertyRule() throws RecognitionException { - EObject current = null; - - EObject iv_rulePropertyRule = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:69:2: (iv_rulePropertyRule= rulePropertyRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:70:2: iv_rulePropertyRule= rulePropertyRule EOF - { - newCompositeNode(grammarAccess.getPropertyRuleRule()); - pushFollow(FOLLOW_rulePropertyRule_in_entryRulePropertyRule75); - iv_rulePropertyRule=rulePropertyRule(); - - state._fsp--; - - current =iv_rulePropertyRule; - match(input,EOF,FOLLOW_EOF_in_entryRulePropertyRule85); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRulePropertyRule" - - - // $ANTLR start "rulePropertyRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:77:1: rulePropertyRule returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) ; - public final EObject rulePropertyRule() throws RecognitionException { - EObject current = null; - - Token lv_derived_1_0=null; - Token lv_name_2_0=null; - Token otherlv_3=null; - Token lv_typeUndefined_5_0=null; - EObject lv_visibility_0_0 = null; - - EObject lv_type_4_0 = null; - - EObject lv_multiplicity_6_0 = null; - - EObject lv_modifiers_7_0 = null; - - EObject lv_default_8_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:80:28: ( ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? - int alt1=2; - int LA1_0 = input.LA(1); - - if ( ((LA1_0>=29 && LA1_0<=32)) ) { - alt1=1; - } - switch (alt1) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:83:3: lv_visibility_0_0= ruleVisibilityRule - { - - newCompositeNode(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); - - pushFollow(FOLLOW_ruleVisibilityRule_in_rulePropertyRule131); - lv_visibility_0_0=ruleVisibilityRule(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); - } - set( - current, - "visibility", - lv_visibility_0_0, - "VisibilityRule"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - } - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:99:3: ( (lv_derived_1_0= '/' ) )? - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0==12) ) { - alt2=1; - } - switch (alt2) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:101:3: lv_derived_1_0= '/' - { - lv_derived_1_0=(Token)match(input,12,FOLLOW_12_in_rulePropertyRule150); - - newLeafNode(lv_derived_1_0, grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getPropertyRuleRule()); - } - setWithLastConsumed(current, "derived", true, "/"); - - - } - - - } - break; - - } - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:114:3: ( (lv_name_2_0= RULE_ID ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:116:3: lv_name_2_0= RULE_ID - { - lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_rulePropertyRule181); - - newLeafNode(lv_name_2_0, grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getPropertyRuleRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_2_0, - "ID"); - - - } - - - } - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:132:2: (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==13) ) { - alt4=1; - } - switch (alt4) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:132:4: otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) - { - otherlv_3=(Token)match(input,13,FOLLOW_13_in_rulePropertyRule199); - - newLeafNode(otherlv_3, grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:1: ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0==RULE_ID) ) { - alt3=1; - } - else if ( (LA3_0==14) ) { - alt3=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:138:3: lv_type_4_0= ruleTypeRule - { - - newCompositeNode(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0()); - - pushFollow(FOLLOW_ruleTypeRule_in_rulePropertyRule221); - lv_type_4_0=ruleTypeRule(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); - } - set( - current, - "type", - lv_type_4_0, - "TypeRule"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:157:3: lv_typeUndefined_5_0= '<Undefined>' - { - lv_typeUndefined_5_0=(Token)match(input,14,FOLLOW_14_in_rulePropertyRule245); - - newLeafNode(lv_typeUndefined_5_0, grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getPropertyRuleRule()); - } - setWithLastConsumed(current, "typeUndefined", true, "<Undefined>"); - - - } - - - } - - - } - break; - - } - - - } - break; - - } - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:170:5: ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0==16) ) { - alt5=1; - } - switch (alt5) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:172:3: lv_multiplicity_6_0= ruleMultiplicityRule - { - - newCompositeNode(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); - - pushFollow(FOLLOW_ruleMultiplicityRule_in_rulePropertyRule282); - lv_multiplicity_6_0=ruleMultiplicityRule(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); - } - set( - current, - "multiplicity", - lv_multiplicity_6_0, - "MultiplicityRule"); - afterParserOrEnumRuleCall(); - - } + } + otherlv_5 = (Token) match(input, 26, FOLLOW_20); - } - break; + newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); - } + // InternalUmlProperty.g:1117:1: ( (lv_fraction_6_0= RULE_INT ) ) + // InternalUmlProperty.g:1118:1: (lv_fraction_6_0= RULE_INT ) + { + // InternalUmlProperty.g:1118:1: (lv_fraction_6_0= RULE_INT ) + // InternalUmlProperty.g:1119:3: lv_fraction_6_0= RULE_INT + { + lv_fraction_6_0 = (Token) match(input, RULE_INT, FOLLOW_2); - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:188:3: ( (lv_modifiers_7_0= ruleModifiersRule ) )? - int alt6=2; - int LA6_0 = input.LA(1); + newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); - if ( (LA6_0==20) ) { - alt6=1; - } - switch (alt6) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:190:3: lv_modifiers_7_0= ruleModifiersRule - { - - newCompositeNode(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); - - pushFollow(FOLLOW_ruleModifiersRule_in_rulePropertyRule304); - lv_modifiers_7_0=ruleModifiersRule(); - - state._fsp--; + if (current == null) { + current = createModelElement(grammarAccess.getRealValueRule()); + } + setWithLastConsumed( + current, + "fraction", + lv_fraction_6_0, + "org.eclipse.papyrus.uml.alf.Common.INT"); - if (current==null) { - current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); - } - set( - current, - "modifiers", - lv_modifiers_7_0, - "ModifiersRule"); - afterParserOrEnumRuleCall(); - - } + } - } - break; + } - } - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:206:3: ( (lv_default_8_0= ruleDefaultValueRule ) )? - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0==25) ) { - alt7=1; - } - switch (alt7) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:208:3: lv_default_8_0= ruleDefaultValueRule - { - - newCompositeNode(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); - - pushFollow(FOLLOW_ruleDefaultValueRule_in_rulePropertyRule326); - lv_default_8_0=ruleDefaultValueRule(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPropertyRuleRule()); - } - set( - current, - "default", - lv_default_8_0, - "DefaultValueRule"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - } - - - } + } - } + } + break; - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "rulePropertyRule" - - - // $ANTLR start "entryRuleVisibilityRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:232:1: entryRuleVisibilityRule returns [EObject current=null] : iv_ruleVisibilityRule= ruleVisibilityRule EOF ; - public final EObject entryRuleVisibilityRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleVisibilityRule = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:233:2: (iv_ruleVisibilityRule= ruleVisibilityRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:234:2: iv_ruleVisibilityRule= ruleVisibilityRule EOF - { - newCompositeNode(grammarAccess.getVisibilityRuleRule()); - pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule363); - iv_ruleVisibilityRule=ruleVisibilityRule(); + } - state._fsp--; - current =iv_ruleVisibilityRule; - match(input,EOF,FOLLOW_EOF_in_entryRuleVisibilityRule373); + } - } + leaveRule(); + } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleVisibilityRule" - - - // $ANTLR start "ruleVisibilityRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:241:1: ruleVisibilityRule returns [EObject current=null] : ( (lv_visibility_0_0= ruleVisibilityKind ) ) ; - public final EObject ruleVisibilityRule() throws RecognitionException { - EObject current = null; - - Enumerator lv_visibility_0_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:244:28: ( ( (lv_visibility_0_0= ruleVisibilityKind ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:247:3: lv_visibility_0_0= ruleVisibilityKind - { - - newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); - - pushFollow(FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule418); - lv_visibility_0_0=ruleVisibilityKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getVisibilityRuleRule()); - } - set( - current, - "visibility", - lv_visibility_0_0, - "VisibilityKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleVisibilityRule" - - - // $ANTLR start "entryRuleTypeRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:271:1: entryRuleTypeRule returns [EObject current=null] : iv_ruleTypeRule= ruleTypeRule EOF ; - public final EObject entryRuleTypeRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleTypeRule = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:272:2: (iv_ruleTypeRule= ruleTypeRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:273:2: iv_ruleTypeRule= ruleTypeRule EOF - { - newCompositeNode(grammarAccess.getTypeRuleRule()); - pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule453); - iv_ruleTypeRule=ruleTypeRule(); - - state._fsp--; - - current =iv_ruleTypeRule; - match(input,EOF,FOLLOW_EOF_in_entryRuleTypeRule463); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleTypeRule" - - - // $ANTLR start "ruleTypeRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:280:1: ruleTypeRule returns [EObject current=null] : ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) ; - public final EObject ruleTypeRule() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - EObject lv_path_0_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:283:28: ( ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )? - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==RULE_ID) ) { - int LA8_1 = input.LA(2); + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleRealValue" - if ( (LA8_1==15) ) { - alt8=1; - } - } - switch (alt8) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:286:3: lv_path_0_0= ruleQualifiedName - { - - newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); - - pushFollow(FOLLOW_ruleQualifiedName_in_ruleTypeRule509); - lv_path_0_0=ruleQualifiedName(); - state._fsp--; + // $ANTLR start "entryRuleNullValue" + // InternalUmlProperty.g:1143:1: entryRuleNullValue returns [EObject current=null] : iv_ruleNullValue= ruleNullValue EOF ; + public final EObject entryRuleNullValue() throws RecognitionException { + EObject current = null; - - if (current==null) { - current = createModelElementForParent(grammarAccess.getTypeRuleRule()); - } - set( - current, - "path", - lv_path_0_0, - "QualifiedName"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - } - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:302:3: ( (otherlv_1= RULE_ID ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:304:3: otherlv_1= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getTypeRuleRule()); - } - - otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTypeRule530); - - newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); - - - } - - - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleTypeRule" - - - // $ANTLR start "entryRuleQualifiedName" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:323:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; - public final EObject entryRuleQualifiedName() throws RecognitionException { - EObject current = null; - - EObject iv_ruleQualifiedName = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:324:2: (iv_ruleQualifiedName= ruleQualifiedName EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:325:2: iv_ruleQualifiedName= ruleQualifiedName EOF - { - newCompositeNode(grammarAccess.getQualifiedNameRule()); - pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName566); - iv_ruleQualifiedName=ruleQualifiedName(); - - state._fsp--; - - current =iv_ruleQualifiedName; - match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName576); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleQualifiedName" + EObject iv_ruleNullValue = null; - // $ANTLR start "ruleQualifiedName" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:332:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ; - public final EObject ruleQualifiedName() throws RecognitionException { - EObject current = null; + try { + // InternalUmlProperty.g:1144:2: (iv_ruleNullValue= ruleNullValue EOF ) + // InternalUmlProperty.g:1145:2: iv_ruleNullValue= ruleNullValue EOF + { + newCompositeNode(grammarAccess.getNullValueRule()); + pushFollow(FOLLOW_1); + iv_ruleNullValue = ruleNullValue(); - Token otherlv_0=null; - Token otherlv_1=null; - EObject lv_remaining_2_0 = null; + state._fsp--; + current = iv_ruleNullValue; + match(input, EOF, FOLLOW_2); - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:335:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:338:3: otherlv_0= RULE_ID - { + } - if (current==null) { - current = createModelElement(grammarAccess.getQualifiedNameRule()); - } - - otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleQualifiedName621); + } - newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); - + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleNullValue" - } + // $ANTLR start "ruleNullValue" + // InternalUmlProperty.g:1152:1: ruleNullValue returns [EObject current=null] : ( () otherlv_1= 'null' ) ; + public final EObject ruleNullValue() throws RecognitionException { + EObject current = null; - } + Token otherlv_1 = null; - otherlv_1=(Token)match(input,15,FOLLOW_15_in_ruleQualifiedName633); + enterRule(); - newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:353:1: ( (lv_remaining_2_0= ruleQualifiedName ) )? - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0==RULE_ID) ) { - int LA9_1 = input.LA(2); - - if ( (LA9_1==15) ) { - alt9=1; - } - } - switch (alt9) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:355:3: lv_remaining_2_0= ruleQualifiedName - { - - newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); - - pushFollow(FOLLOW_ruleQualifiedName_in_ruleQualifiedName654); - lv_remaining_2_0=ruleQualifiedName(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getQualifiedNameRule()); - } - set( - current, - "remaining", - lv_remaining_2_0, - "QualifiedName"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQualifiedName" - - - // $ANTLR start "entryRuleMultiplicityRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:379:1: entryRuleMultiplicityRule returns [EObject current=null] : iv_ruleMultiplicityRule= ruleMultiplicityRule EOF ; - public final EObject entryRuleMultiplicityRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleMultiplicityRule = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:380:2: (iv_ruleMultiplicityRule= ruleMultiplicityRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:381:2: iv_ruleMultiplicityRule= ruleMultiplicityRule EOF - { - newCompositeNode(grammarAccess.getMultiplicityRuleRule()); - pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule691); - iv_ruleMultiplicityRule=ruleMultiplicityRule(); - - state._fsp--; - - current =iv_ruleMultiplicityRule; - match(input,EOF,FOLLOW_EOF_in_entryRuleMultiplicityRule701); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleMultiplicityRule" - - - // $ANTLR start "ruleMultiplicityRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:388:1: ruleMultiplicityRule returns [EObject current=null] : (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) ; - public final EObject ruleMultiplicityRule() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - EObject lv_bounds_1_0 = null; - - EObject lv_bounds_3_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:391:28: ( (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:3: otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' - { - otherlv_0=(Token)match(input,16,FOLLOW_16_in_ruleMultiplicityRule738); + try { + // InternalUmlProperty.g:1155:28: ( ( () otherlv_1= 'null' ) ) + // InternalUmlProperty.g:1156:1: ( () otherlv_1= 'null' ) + { + // InternalUmlProperty.g:1156:1: ( () otherlv_1= 'null' ) + // InternalUmlProperty.g:1156:2: () otherlv_1= 'null' + { + // InternalUmlProperty.g:1156:2: () + // InternalUmlProperty.g:1157:5: + { - newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:396:1: ( (lv_bounds_1_0= ruleBoundSpecification ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:398:3: lv_bounds_1_0= ruleBoundSpecification - { - - newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); - - pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule759); - lv_bounds_1_0=ruleBoundSpecification(); + current = forceCreateModelElement( + grammarAccess.getNullValueAccess().getNullValueAction_0(), + current); - state._fsp--; + } - if (current==null) { - current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule()); - } - add( - current, - "bounds", - lv_bounds_1_0, - "BoundSpecification"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:414:2: (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0==17) ) { - alt10=1; - } - switch (alt10) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:414:4: otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) - { - otherlv_2=(Token)match(input,17,FOLLOW_17_in_ruleMultiplicityRule772); - - newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:418:1: ( (lv_bounds_3_0= ruleBoundSpecification ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:420:3: lv_bounds_3_0= ruleBoundSpecification - { - - newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); - - pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule793); - lv_bounds_3_0=ruleBoundSpecification(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule()); - } - add( - current, - "bounds", - lv_bounds_3_0, - "BoundSpecification"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - } - - otherlv_4=(Token)match(input,18,FOLLOW_18_in_ruleMultiplicityRule807); - - newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleMultiplicityRule" - - - // $ANTLR start "entryRuleBoundSpecification" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:448:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification= ruleBoundSpecification EOF ; - public final EObject entryRuleBoundSpecification() throws RecognitionException { - EObject current = null; - - EObject iv_ruleBoundSpecification = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:449:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:450:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF - { - newCompositeNode(grammarAccess.getBoundSpecificationRule()); - pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification843); - iv_ruleBoundSpecification=ruleBoundSpecification(); - - state._fsp--; - - current =iv_ruleBoundSpecification; - match(input,EOF,FOLLOW_EOF_in_entryRuleBoundSpecification853); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleBoundSpecification" - - - // $ANTLR start "ruleBoundSpecification" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:457:1: ruleBoundSpecification returns [EObject current=null] : ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) ; - public final EObject ruleBoundSpecification() throws RecognitionException { - EObject current = null; - - AntlrDatatypeRuleToken lv_value_0_1 = null; - - AntlrDatatypeRuleToken lv_value_0_2 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:460:28: ( ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:461:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:461:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:462:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:462:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:463:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:463:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) - int alt11=2; - int LA11_0 = input.LA(1); + otherlv_1 = (Token) match(input, 27, FOLLOW_2); - if ( (LA11_0==RULE_INT||LA11_0==19) ) { - alt11=1; - } - else if ( (LA11_0==RULE_STRING) ) { - alt11=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 11, 0, input); - - throw nvae; - } - switch (alt11) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:464:3: lv_value_0_1= ruleUnlimitedLiteral - { - - newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0()); - - pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification900); - lv_value_0_1=ruleUnlimitedLiteral(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getBoundSpecificationRule()); - } - set( - current, - "value", - lv_value_0_1, - "UnlimitedLiteral"); - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:479:8: lv_value_0_2= ruleStringLiteral - { - - newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1()); - - pushFollow(FOLLOW_ruleStringLiteral_in_ruleBoundSpecification919); - lv_value_0_2=ruleStringLiteral(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getBoundSpecificationRule()); - } - set( - current, - "value", - lv_value_0_2, - "StringLiteral"); - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleBoundSpecification" - - - // $ANTLR start "entryRuleUnlimitedLiteral" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:505:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ; - public final String entryRuleUnlimitedLiteral() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleUnlimitedLiteral = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:506:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:507:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF - { - newCompositeNode(grammarAccess.getUnlimitedLiteralRule()); - pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral958); - iv_ruleUnlimitedLiteral=ruleUnlimitedLiteral(); - - state._fsp--; - - current =iv_ruleUnlimitedLiteral.getText(); - match(input,EOF,FOLLOW_EOF_in_entryRuleUnlimitedLiteral969); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleUnlimitedLiteral" - - - // $ANTLR start "ruleUnlimitedLiteral" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:514:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | kw= '*' ) ; - public final AntlrDatatypeRuleToken ruleUnlimitedLiteral() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_INT_0=null; - Token kw=null; - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:517:28: ( (this_INT_0= RULE_INT | kw= '*' ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:518:1: (this_INT_0= RULE_INT | kw= '*' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:518:1: (this_INT_0= RULE_INT | kw= '*' ) - int alt12=2; - int LA12_0 = input.LA(1); - - if ( (LA12_0==RULE_INT) ) { - alt12=1; - } - else if ( (LA12_0==19) ) { - alt12=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 12, 0, input); - - throw nvae; - } - switch (alt12) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:518:6: this_INT_0= RULE_INT - { - this_INT_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1009); - - current.merge(this_INT_0); - - - newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:527:2: kw= '*' - { - kw=(Token)match(input,19,FOLLOW_19_in_ruleUnlimitedLiteral1033); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); - - - } - break; - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleUnlimitedLiteral" - - - // $ANTLR start "entryRuleStringLiteral" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:540:1: entryRuleStringLiteral returns [String current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ; - public final String entryRuleStringLiteral() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleStringLiteral = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:541:2: (iv_ruleStringLiteral= ruleStringLiteral EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:542:2: iv_ruleStringLiteral= ruleStringLiteral EOF - { - newCompositeNode(grammarAccess.getStringLiteralRule()); - pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1074); - iv_ruleStringLiteral=ruleStringLiteral(); - - state._fsp--; - - current =iv_ruleStringLiteral.getText(); - match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral1085); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleStringLiteral" - - - // $ANTLR start "ruleStringLiteral" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:549:1: ruleStringLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ; - public final AntlrDatatypeRuleToken ruleStringLiteral() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_STRING_0=null; - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:552:28: (this_STRING_0= RULE_STRING ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:553:5: this_STRING_0= RULE_STRING - { - this_STRING_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral1124); - - current.merge(this_STRING_0); - - - newLeafNode(this_STRING_0, grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall()); - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleStringLiteral" - - - // $ANTLR start "entryRuleModifiersRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:568:1: entryRuleModifiersRule returns [EObject current=null] : iv_ruleModifiersRule= ruleModifiersRule EOF ; - public final EObject entryRuleModifiersRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleModifiersRule = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:569:2: (iv_ruleModifiersRule= ruleModifiersRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:570:2: iv_ruleModifiersRule= ruleModifiersRule EOF - { - newCompositeNode(grammarAccess.getModifiersRuleRule()); - pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1168); - iv_ruleModifiersRule=ruleModifiersRule(); - - state._fsp--; - - current =iv_ruleModifiersRule; - match(input,EOF,FOLLOW_EOF_in_entryRuleModifiersRule1178); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleModifiersRule" - - - // $ANTLR start "ruleModifiersRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:577:1: ruleModifiersRule returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ; - public final EObject ruleModifiersRule() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_5=null; - EObject lv_values_2_0 = null; - - EObject lv_values_4_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:580:28: ( ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:2: () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:2: () - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:582:5: - { - - current = forceCreateModelElement( - grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(), - current); - - - } - - otherlv_1=(Token)match(input,20,FOLLOW_20_in_ruleModifiersRule1224); - - newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:591:1: ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? - int alt14=2; - int LA14_0 = input.LA(1); - - if ( ((LA14_0>=23 && LA14_0<=24)||(LA14_0>=33 && LA14_0<=36)) ) { - alt14=1; - } - switch (alt14) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:591:2: ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:591:2: ( (lv_values_2_0= ruleModifierSpecification ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:592:1: (lv_values_2_0= ruleModifierSpecification ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:592:1: (lv_values_2_0= ruleModifierSpecification ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:593:3: lv_values_2_0= ruleModifierSpecification - { - - newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); - - pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1246); - lv_values_2_0=ruleModifierSpecification(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getModifiersRuleRule()); - } - add( - current, - "values", - lv_values_2_0, - "ModifierSpecification"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:609:2: (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* - loop13: - do { - int alt13=2; - int LA13_0 = input.LA(1); - - if ( (LA13_0==21) ) { - alt13=1; - } - - - switch (alt13) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:609:4: otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) - { - otherlv_3=(Token)match(input,21,FOLLOW_21_in_ruleModifiersRule1259); - - newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:613:1: ( (lv_values_4_0= ruleModifierSpecification ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:614:1: (lv_values_4_0= ruleModifierSpecification ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:614:1: (lv_values_4_0= ruleModifierSpecification ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:615:3: lv_values_4_0= ruleModifierSpecification - { - - newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); - - pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1280); - lv_values_4_0=ruleModifierSpecification(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getModifiersRuleRule()); - } - add( - current, - "values", - lv_values_4_0, - "ModifierSpecification"); - afterParserOrEnumRuleCall(); - + newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1()); - } + } - } - - - } - break; - - default : - break loop13; - } - } while (true); - - - } - break; - - } - - otherlv_5=(Token)match(input,22,FOLLOW_22_in_ruleModifiersRule1296); - - newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleModifiersRule" - - - // $ANTLR start "entryRuleModifierSpecification" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:643:1: entryRuleModifierSpecification returns [EObject current=null] : iv_ruleModifierSpecification= ruleModifierSpecification EOF ; - public final EObject entryRuleModifierSpecification() throws RecognitionException { - EObject current = null; - - EObject iv_ruleModifierSpecification = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:644:2: (iv_ruleModifierSpecification= ruleModifierSpecification EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:645:2: iv_ruleModifierSpecification= ruleModifierSpecification EOF - { - newCompositeNode(grammarAccess.getModifierSpecificationRule()); - pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1332); - iv_ruleModifierSpecification=ruleModifierSpecification(); - - state._fsp--; - - current =iv_ruleModifierSpecification; - match(input,EOF,FOLLOW_EOF_in_entryRuleModifierSpecification1342); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleModifierSpecification" - - - // $ANTLR start "ruleModifierSpecification" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:652:1: ruleModifierSpecification returns [EObject current=null] : ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ; - public final EObject ruleModifierSpecification() throws RecognitionException { - EObject current = null; - - Enumerator lv_value_0_0 = null; - - EObject lv_redefines_1_0 = null; - - EObject lv_subsets_2_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:655:28: ( ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) - int alt15=3; - switch ( input.LA(1) ) { - case 33: - case 34: - case 35: - case 36: - { - alt15=1; - } - break; - case 23: - { - alt15=2; - } - break; - case 24: - { - alt15=3; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 15, 0, input); - - throw nvae; - } - - switch (alt15) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:2: ( (lv_value_0_0= ruleModifierKind ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:2: ( (lv_value_0_0= ruleModifierKind ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:657:1: (lv_value_0_0= ruleModifierKind ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:657:1: (lv_value_0_0= ruleModifierKind ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:658:3: lv_value_0_0= ruleModifierKind - { - - newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); - - pushFollow(FOLLOW_ruleModifierKind_in_ruleModifierSpecification1388); - lv_value_0_0=ruleModifierKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getModifierSpecificationRule()); - } - set( - current, - "value", - lv_value_0_0, - "ModifierKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:675:6: ( (lv_redefines_1_0= ruleRedefinesRule ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:675:6: ( (lv_redefines_1_0= ruleRedefinesRule ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:676:1: (lv_redefines_1_0= ruleRedefinesRule ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:676:1: (lv_redefines_1_0= ruleRedefinesRule ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:677:3: lv_redefines_1_0= ruleRedefinesRule - { - - newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); - - pushFollow(FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1415); - lv_redefines_1_0=ruleRedefinesRule(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getModifierSpecificationRule()); - } - set( - current, - "redefines", - lv_redefines_1_0, - "RedefinesRule"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - case 3 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:694:6: ( (lv_subsets_2_0= ruleSubsetsRule ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:694:6: ( (lv_subsets_2_0= ruleSubsetsRule ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:695:1: (lv_subsets_2_0= ruleSubsetsRule ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:695:1: (lv_subsets_2_0= ruleSubsetsRule ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:696:3: lv_subsets_2_0= ruleSubsetsRule - { - - newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); - - pushFollow(FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1442); - lv_subsets_2_0=ruleSubsetsRule(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getModifierSpecificationRule()); - } - set( - current, - "subsets", - lv_subsets_2_0, - "SubsetsRule"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - } + } - } + leaveRule(); + } - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleModifierSpecification" + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleNullValue" - // $ANTLR start "entryRuleRedefinesRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:720:1: entryRuleRedefinesRule returns [EObject current=null] : iv_ruleRedefinesRule= ruleRedefinesRule EOF ; - public final EObject entryRuleRedefinesRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleRedefinesRule = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:721:2: (iv_ruleRedefinesRule= ruleRedefinesRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:722:2: iv_ruleRedefinesRule= ruleRedefinesRule EOF - { - newCompositeNode(grammarAccess.getRedefinesRuleRule()); - pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1478); - iv_ruleRedefinesRule=ruleRedefinesRule(); + // $ANTLR start "entryRuleNoValue" + // InternalUmlProperty.g:1174:1: entryRuleNoValue returns [EObject current=null] : iv_ruleNoValue= ruleNoValue EOF ; + public final EObject entryRuleNoValue() throws RecognitionException { + EObject current = null; - state._fsp--; + EObject iv_ruleNoValue = null; - current =iv_ruleRedefinesRule; - match(input,EOF,FOLLOW_EOF_in_entryRuleRedefinesRule1488); - } + try { + // InternalUmlProperty.g:1175:2: (iv_ruleNoValue= ruleNoValue EOF ) + // InternalUmlProperty.g:1176:2: iv_ruleNoValue= ruleNoValue EOF + { + newCompositeNode(grammarAccess.getNoValueRule()); + pushFollow(FOLLOW_1); + iv_ruleNoValue = ruleNoValue(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleRedefinesRule" + state._fsp--; + current = iv_ruleNoValue; + match(input, EOF, FOLLOW_2); - // $ANTLR start "ruleRedefinesRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:729:1: ruleRedefinesRule returns [EObject current=null] : (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) ; - public final EObject ruleRedefinesRule() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_1=null; - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:732:28: ( (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:733:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:733:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:733:3: otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) - { - otherlv_0=(Token)match(input,23,FOLLOW_23_in_ruleRedefinesRule1525); + } - newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:737:1: ( (otherlv_1= RULE_ID ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:738:1: (otherlv_1= RULE_ID ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:738:1: (otherlv_1= RULE_ID ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:739:3: otherlv_1= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getRedefinesRuleRule()); - } - - otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRedefinesRule1545); - - newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0()); - + } - } + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "entryRuleNoValue" - } + // $ANTLR start "ruleNoValue" + // InternalUmlProperty.g:1183:1: ruleNoValue returns [EObject current=null] : ( () otherlv_1= 'none' ) ; + public final EObject ruleNoValue() throws RecognitionException { + EObject current = null; + Token otherlv_1 = null; - } + enterRule(); + try { + // InternalUmlProperty.g:1186:28: ( ( () otherlv_1= 'none' ) ) + // InternalUmlProperty.g:1187:1: ( () otherlv_1= 'none' ) + { + // InternalUmlProperty.g:1187:1: ( () otherlv_1= 'none' ) + // InternalUmlProperty.g:1187:2: () otherlv_1= 'none' + { + // InternalUmlProperty.g:1187:2: () + // InternalUmlProperty.g:1188:5: + { - } + current = forceCreateModelElement( + grammarAccess.getNoValueAccess().getNoValueAction_0(), + current); - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleRedefinesRule" + } - // $ANTLR start "entryRuleSubsetsRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:758:1: entryRuleSubsetsRule returns [EObject current=null] : iv_ruleSubsetsRule= ruleSubsetsRule EOF ; - public final EObject entryRuleSubsetsRule() throws RecognitionException { - EObject current = null; + otherlv_1 = (Token) match(input, 28, FOLLOW_2); - EObject iv_ruleSubsetsRule = null; + newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1()); - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:759:2: (iv_ruleSubsetsRule= ruleSubsetsRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:760:2: iv_ruleSubsetsRule= ruleSubsetsRule EOF - { - newCompositeNode(grammarAccess.getSubsetsRuleRule()); - pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1581); - iv_ruleSubsetsRule=ruleSubsetsRule(); + } - state._fsp--; - current =iv_ruleSubsetsRule; - match(input,EOF,FOLLOW_EOF_in_entryRuleSubsetsRule1591); + } - } + leaveRule(); + } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleSubsetsRule" + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleNoValue" - // $ANTLR start "ruleSubsetsRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:767:1: ruleSubsetsRule returns [EObject current=null] : (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) ; - public final EObject ruleSubsetsRule() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_1=null; + // $ANTLR start "ruleVisibilityKind" + // InternalUmlProperty.g:1205:1: ruleVisibilityKind returns [Enumerator current=null] : ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ; + public final Enumerator ruleVisibilityKind() throws RecognitionException { + Enumerator current = null; - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:770:28: ( (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:771:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:771:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:771:3: otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) - { - otherlv_0=(Token)match(input,24,FOLLOW_24_in_ruleSubsetsRule1628); + Token enumLiteral_0 = null; + Token enumLiteral_1 = null; + Token enumLiteral_2 = null; + Token enumLiteral_3 = null; - newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:775:1: ( (otherlv_1= RULE_ID ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:776:1: (otherlv_1= RULE_ID ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:776:1: (otherlv_1= RULE_ID ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:777:3: otherlv_1= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getSubsetsRuleRule()); - } - - otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSubsetsRule1648); + enterRule(); + try { + // InternalUmlProperty.g:1207:28: ( ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ) + // InternalUmlProperty.g:1208:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) + { + // InternalUmlProperty.g:1208:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) + int alt18 = 4; + switch (input.LA(1)) { + case 29: { + alt18 = 1; + } + break; + case 30: { + alt18 = 2; + } + break; + case 31: { + alt18 = 3; + } + break; + case 32: { + alt18 = 4; + } + break; + default: + NoViableAltException nvae = new NoViableAltException("", 18, 0, input); - newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0()); - + throw nvae; + } - } + switch (alt18) { + case 1: + // InternalUmlProperty.g:1208:2: (enumLiteral_0= '+' ) + { + // InternalUmlProperty.g:1208:2: (enumLiteral_0= '+' ) + // InternalUmlProperty.g:1208:4: enumLiteral_0= '+' + { + enumLiteral_0 = (Token) match(input, 29, FOLLOW_2); + current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); + + + } + + + } + break; + case 2: + // InternalUmlProperty.g:1214:6: (enumLiteral_1= '-' ) + { + // InternalUmlProperty.g:1214:6: (enumLiteral_1= '-' ) + // InternalUmlProperty.g:1214:8: enumLiteral_1= '-' + { + enumLiteral_1 = (Token) match(input, 30, FOLLOW_2); + + current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); + + + } + + + } + break; + case 3: + // InternalUmlProperty.g:1220:6: (enumLiteral_2= '#' ) + { + // InternalUmlProperty.g:1220:6: (enumLiteral_2= '#' ) + // InternalUmlProperty.g:1220:8: enumLiteral_2= '#' + { + enumLiteral_2 = (Token) match(input, 31, FOLLOW_2); + + current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); + + + } + + + } + break; + case 4: + // InternalUmlProperty.g:1226:6: (enumLiteral_3= '~' ) + { + // InternalUmlProperty.g:1226:6: (enumLiteral_3= '~' ) + // InternalUmlProperty.g:1226:8: enumLiteral_3= '~' + { + enumLiteral_3 = (Token) match(input, 32, FOLLOW_2); + + current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); + + + } + + + } + break; + + } + + + } + + leaveRule(); + } + + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleVisibilityKind" + + + // $ANTLR start "ruleModifierKind" + // InternalUmlProperty.g:1236:1: ruleModifierKind returns [Enumerator current=null] : ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ; + public final Enumerator ruleModifierKind() throws RecognitionException { + Enumerator current = null; - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleSubsetsRule" - + Token enumLiteral_0 = null; + Token enumLiteral_1 = null; + Token enumLiteral_2 = null; + Token enumLiteral_3 = null; - // $ANTLR start "entryRuleDefaultValueRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:796:1: entryRuleDefaultValueRule returns [EObject current=null] : iv_ruleDefaultValueRule= ruleDefaultValueRule EOF ; - public final EObject entryRuleDefaultValueRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleDefaultValueRule = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:797:2: (iv_ruleDefaultValueRule= ruleDefaultValueRule EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:798:2: iv_ruleDefaultValueRule= ruleDefaultValueRule EOF - { - newCompositeNode(grammarAccess.getDefaultValueRuleRule()); - pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1684); - iv_ruleDefaultValueRule=ruleDefaultValueRule(); - - state._fsp--; + enterRule(); + try { + // InternalUmlProperty.g:1238:28: ( ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ) + // InternalUmlProperty.g:1239:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) + { + // InternalUmlProperty.g:1239:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) + int alt19 = 4; + switch (input.LA(1)) { + case 33: { + alt19 = 1; + } + break; + case 34: { + alt19 = 2; + } + break; + case 35: { + alt19 = 3; + } + break; + case 36: { + alt19 = 4; + } + break; + default: + NoViableAltException nvae = new NoViableAltException("", 19, 0, input); - current =iv_ruleDefaultValueRule; - match(input,EOF,FOLLOW_EOF_in_entryRuleDefaultValueRule1694); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleDefaultValueRule" + throw nvae; + } + switch (alt19) { + case 1: + // InternalUmlProperty.g:1239:2: (enumLiteral_0= 'readOnly' ) + { + // InternalUmlProperty.g:1239:2: (enumLiteral_0= 'readOnly' ) + // InternalUmlProperty.g:1239:4: enumLiteral_0= 'readOnly' + { + enumLiteral_0 = (Token) match(input, 33, FOLLOW_2); - // $ANTLR start "ruleDefaultValueRule" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:805:1: ruleDefaultValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) ; - public final EObject ruleDefaultValueRule() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - EObject lv_default_1_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:808:28: ( (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:809:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:809:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:809:3: otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) - { - otherlv_0=(Token)match(input,25,FOLLOW_25_in_ruleDefaultValueRule1731); + current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); - newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:813:1: ( (lv_default_1_0= ruleValue ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:814:1: (lv_default_1_0= ruleValue ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:814:1: (lv_default_1_0= ruleValue ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:815:3: lv_default_1_0= ruleValue - { - - newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); - - pushFollow(FOLLOW_ruleValue_in_ruleDefaultValueRule1752); - lv_default_1_0=ruleValue(); - state._fsp--; + } - if (current==null) { - current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule()); - } - set( - current, - "default", - lv_default_1_0, - "Value"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleDefaultValueRule" - - - // $ANTLR start "entryRuleValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:839:1: entryRuleValue returns [EObject current=null] : iv_ruleValue= ruleValue EOF ; - public final EObject entryRuleValue() throws RecognitionException { - EObject current = null; - - EObject iv_ruleValue = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:840:2: (iv_ruleValue= ruleValue EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:841:2: iv_ruleValue= ruleValue EOF - { - newCompositeNode(grammarAccess.getValueRule()); - pushFollow(FOLLOW_ruleValue_in_entryRuleValue1788); - iv_ruleValue=ruleValue(); - - state._fsp--; - - current =iv_ruleValue; - match(input,EOF,FOLLOW_EOF_in_entryRuleValue1798); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleValue" - - - // $ANTLR start "ruleValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:848:1: ruleValue returns [EObject current=null] : (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) ; - public final EObject ruleValue() throws RecognitionException { - EObject current = null; - - EObject this_IntValue_0 = null; - - EObject this_StringValue_1 = null; - - EObject this_BooleanValue_2 = null; - - EObject this_RealValue_3 = null; - - EObject this_NullValue_4 = null; - - EObject this_NoValue_5 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:851:28: ( (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:852:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:852:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) - int alt16=6; - switch ( input.LA(1) ) { - case RULE_INT: - { - int LA16_1 = input.LA(2); - - if ( (LA16_1==EOF) ) { - alt16=1; - } - else if ( (LA16_1==26) ) { - alt16=4; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 16, 1, input); - - throw nvae; - } - } - break; - case RULE_STRING: - { - alt16=2; - } - break; - case 37: - case 38: - { - alt16=3; - } - break; - case 26: - { - alt16=4; - } - break; - case 27: - { - alt16=5; - } - break; - case 28: - { - alt16=6; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 16, 0, input); - - throw nvae; - } - - switch (alt16) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:853:5: this_IntValue_0= ruleIntValue - { - - newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); - - pushFollow(FOLLOW_ruleIntValue_in_ruleValue1845); - this_IntValue_0=ruleIntValue(); - - state._fsp--; - - - current = this_IntValue_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:863:5: this_StringValue_1= ruleStringValue - { - - newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); - - pushFollow(FOLLOW_ruleStringValue_in_ruleValue1872); - this_StringValue_1=ruleStringValue(); - - state._fsp--; - - - current = this_StringValue_1; - afterParserOrEnumRuleCall(); - - - } - break; - case 3 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:873:5: this_BooleanValue_2= ruleBooleanValue - { - - newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); - - pushFollow(FOLLOW_ruleBooleanValue_in_ruleValue1899); - this_BooleanValue_2=ruleBooleanValue(); - - state._fsp--; - - - current = this_BooleanValue_2; - afterParserOrEnumRuleCall(); - - - } - break; - case 4 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:883:5: this_RealValue_3= ruleRealValue - { - - newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); - - pushFollow(FOLLOW_ruleRealValue_in_ruleValue1926); - this_RealValue_3=ruleRealValue(); - - state._fsp--; - - - current = this_RealValue_3; - afterParserOrEnumRuleCall(); - - - } - break; - case 5 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:893:5: this_NullValue_4= ruleNullValue - { - - newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); - - pushFollow(FOLLOW_ruleNullValue_in_ruleValue1953); - this_NullValue_4=ruleNullValue(); - - state._fsp--; - - - current = this_NullValue_4; - afterParserOrEnumRuleCall(); - - - } - break; - case 6 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:903:5: this_NoValue_5= ruleNoValue - { - - newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); - - pushFollow(FOLLOW_ruleNoValue_in_ruleValue1980); - this_NoValue_5=ruleNoValue(); - - state._fsp--; - - - current = this_NoValue_5; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleValue" - - - // $ANTLR start "entryRuleIntValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:919:1: entryRuleIntValue returns [EObject current=null] : iv_ruleIntValue= ruleIntValue EOF ; - public final EObject entryRuleIntValue() throws RecognitionException { - EObject current = null; - - EObject iv_ruleIntValue = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:920:2: (iv_ruleIntValue= ruleIntValue EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:921:2: iv_ruleIntValue= ruleIntValue EOF - { - newCompositeNode(grammarAccess.getIntValueRule()); - pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue2015); - iv_ruleIntValue=ruleIntValue(); - - state._fsp--; - - current =iv_ruleIntValue; - match(input,EOF,FOLLOW_EOF_in_entryRuleIntValue2025); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleIntValue" - - - // $ANTLR start "ruleIntValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:928:1: ruleIntValue returns [EObject current=null] : ( (lv_literalInteger_0_0= RULE_INT ) ) ; - public final EObject ruleIntValue() throws RecognitionException { - EObject current = null; - - Token lv_literalInteger_0_0=null; - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:931:28: ( ( (lv_literalInteger_0_0= RULE_INT ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:932:1: ( (lv_literalInteger_0_0= RULE_INT ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:932:1: ( (lv_literalInteger_0_0= RULE_INT ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:933:1: (lv_literalInteger_0_0= RULE_INT ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:933:1: (lv_literalInteger_0_0= RULE_INT ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:934:3: lv_literalInteger_0_0= RULE_INT - { - lv_literalInteger_0_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleIntValue2066); - - newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getIntValueRule()); - } - setWithLastConsumed( - current, - "literalInteger", - lv_literalInteger_0_0, - "INT"); - - - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleIntValue" - - - // $ANTLR start "entryRuleStringValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:958:1: entryRuleStringValue returns [EObject current=null] : iv_ruleStringValue= ruleStringValue EOF ; - public final EObject entryRuleStringValue() throws RecognitionException { - EObject current = null; - - EObject iv_ruleStringValue = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:959:2: (iv_ruleStringValue= ruleStringValue EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:960:2: iv_ruleStringValue= ruleStringValue EOF - { - newCompositeNode(grammarAccess.getStringValueRule()); - pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue2106); - iv_ruleStringValue=ruleStringValue(); - - state._fsp--; - - current =iv_ruleStringValue; - match(input,EOF,FOLLOW_EOF_in_entryRuleStringValue2116); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleStringValue" - - - // $ANTLR start "ruleStringValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:967:1: ruleStringValue returns [EObject current=null] : ( (lv_literalString_0_0= RULE_STRING ) ) ; - public final EObject ruleStringValue() throws RecognitionException { - EObject current = null; - - Token lv_literalString_0_0=null; - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:970:28: ( ( (lv_literalString_0_0= RULE_STRING ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:971:1: ( (lv_literalString_0_0= RULE_STRING ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:971:1: ( (lv_literalString_0_0= RULE_STRING ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:972:1: (lv_literalString_0_0= RULE_STRING ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:972:1: (lv_literalString_0_0= RULE_STRING ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:973:3: lv_literalString_0_0= RULE_STRING - { - lv_literalString_0_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringValue2157); - - newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getStringValueRule()); - } - setWithLastConsumed( - current, - "literalString", - lv_literalString_0_0, - "STRING"); - - - } - - - } - + } + break; + case 2: + // InternalUmlProperty.g:1245:6: (enumLiteral_1= 'union' ) + { + // InternalUmlProperty.g:1245:6: (enumLiteral_1= 'union' ) + // InternalUmlProperty.g:1245:8: enumLiteral_1= 'union' + { + enumLiteral_1 = (Token) match(input, 34, FOLLOW_2); + + current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); - } - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleStringValue" - - - // $ANTLR start "entryRuleBooleanValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:997:1: entryRuleBooleanValue returns [EObject current=null] : iv_ruleBooleanValue= ruleBooleanValue EOF ; - public final EObject entryRuleBooleanValue() throws RecognitionException { - EObject current = null; - - EObject iv_ruleBooleanValue = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:998:2: (iv_ruleBooleanValue= ruleBooleanValue EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:999:2: iv_ruleBooleanValue= ruleBooleanValue EOF - { - newCompositeNode(grammarAccess.getBooleanValueRule()); - pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2197); - iv_ruleBooleanValue=ruleBooleanValue(); - - state._fsp--; - - current =iv_ruleBooleanValue; - match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanValue2207); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleBooleanValue" - - - // $ANTLR start "ruleBooleanValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1006:1: ruleBooleanValue returns [EObject current=null] : ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) ; - public final EObject ruleBooleanValue() throws RecognitionException { - EObject current = null; - - Enumerator lv_literalBoolean_0_0 = null; - - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1009:28: ( ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1010:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1010:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1011:1: (lv_literalBoolean_0_0= ruleBooleanLiterals ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1011:1: (lv_literalBoolean_0_0= ruleBooleanLiterals ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1012:3: lv_literalBoolean_0_0= ruleBooleanLiterals - { - - newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); - - pushFollow(FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2252); - lv_literalBoolean_0_0=ruleBooleanLiterals(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getBooleanValueRule()); - } - set( - current, - "literalBoolean", - lv_literalBoolean_0_0, - "BooleanLiterals"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleBooleanValue" - - - // $ANTLR start "entryRuleRealValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1036:1: entryRuleRealValue returns [EObject current=null] : iv_ruleRealValue= ruleRealValue EOF ; - public final EObject entryRuleRealValue() throws RecognitionException { - EObject current = null; - - EObject iv_ruleRealValue = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1037:2: (iv_ruleRealValue= ruleRealValue EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1038:2: iv_ruleRealValue= ruleRealValue EOF - { - newCompositeNode(grammarAccess.getRealValueRule()); - pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue2287); - iv_ruleRealValue=ruleRealValue(); - - state._fsp--; - - current =iv_ruleRealValue; - match(input,EOF,FOLLOW_EOF_in_entryRuleRealValue2297); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleRealValue" - - - // $ANTLR start "ruleRealValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1045:1: ruleRealValue returns [EObject current=null] : ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) ; - public final EObject ruleRealValue() throws RecognitionException { - EObject current = null; - - Token lv_integer_0_0=null; - Token otherlv_1=null; - Token otherlv_2=null; - Token lv_fraction_3_0=null; - Token lv_integer_4_0=null; - Token otherlv_5=null; - Token lv_fraction_6_0=null; - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1048:28: ( ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) - int alt17=3; - int LA17_0 = input.LA(1); - - if ( (LA17_0==RULE_INT) ) { - int LA17_1 = input.LA(2); - - if ( (LA17_1==26) ) { - int LA17_3 = input.LA(3); - - if ( (LA17_3==EOF) ) { - alt17=1; - } - else if ( (LA17_3==RULE_INT) ) { - alt17=3; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 17, 3, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 17, 1, input); - - throw nvae; - } - } - else if ( (LA17_0==26) ) { - alt17=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 17, 0, input); - - throw nvae; - } - switch (alt17) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:3: ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:3: ( (lv_integer_0_0= RULE_INT ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1050:1: (lv_integer_0_0= RULE_INT ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1050:1: (lv_integer_0_0= RULE_INT ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1051:3: lv_integer_0_0= RULE_INT - { - lv_integer_0_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2340); - - newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRealValueRule()); - } - setWithLastConsumed( - current, - "integer", - lv_integer_0_0, - "INT"); - - - } - - - } - - otherlv_1=(Token)match(input,26,FOLLOW_26_in_ruleRealValue2357); - - newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); - - - } - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:8: otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) - { - otherlv_2=(Token)match(input,26,FOLLOW_26_in_ruleRealValue2377); - - newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1076:1: ( (lv_fraction_3_0= RULE_INT ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1077:1: (lv_fraction_3_0= RULE_INT ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1077:1: (lv_fraction_3_0= RULE_INT ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1078:3: lv_fraction_3_0= RULE_INT - { - lv_fraction_3_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2394); - - newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRealValueRule()); - } - setWithLastConsumed( - current, - "fraction", - lv_fraction_3_0, - "INT"); - - - } - - - } - - - } - - - } - break; - case 3 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:7: ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:7: ( (lv_integer_4_0= RULE_INT ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1096:1: (lv_integer_4_0= RULE_INT ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1096:1: (lv_integer_4_0= RULE_INT ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1097:3: lv_integer_4_0= RULE_INT - { - lv_integer_4_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2424); - - newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRealValueRule()); - } - setWithLastConsumed( - current, - "integer", - lv_integer_4_0, - "INT"); - + } - } + } + break; + case 3: + // InternalUmlProperty.g:1251:6: (enumLiteral_2= 'ordered' ) + { + // InternalUmlProperty.g:1251:6: (enumLiteral_2= 'ordered' ) + // InternalUmlProperty.g:1251:8: enumLiteral_2= 'ordered' + { + enumLiteral_2 = (Token) match(input, 35, FOLLOW_2); + + current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); + + + } + + + } + break; + case 4: + // InternalUmlProperty.g:1257:6: (enumLiteral_3= 'unique' ) + { + // InternalUmlProperty.g:1257:6: (enumLiteral_3= 'unique' ) + // InternalUmlProperty.g:1257:8: enumLiteral_3= 'unique' + { + enumLiteral_3 = (Token) match(input, 36, FOLLOW_2); - } + current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); - otherlv_5=(Token)match(input,26,FOLLOW_26_in_ruleRealValue2441); - newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); - - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1117:1: ( (lv_fraction_6_0= RULE_INT ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1118:1: (lv_fraction_6_0= RULE_INT ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1118:1: (lv_fraction_6_0= RULE_INT ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1119:3: lv_fraction_6_0= RULE_INT - { - lv_fraction_6_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2458); + } + - newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRealValueRule()); - } - setWithLastConsumed( - current, - "fraction", - lv_fraction_6_0, - "INT"); - - - } + } + break; + } - } + } - } + leaveRule(); + } + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleModifierKind" - } - break; - } + // $ANTLR start "ruleBooleanLiterals" + // InternalUmlProperty.g:1267:1: ruleBooleanLiterals returns [Enumerator current=null] : ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) ; + public final Enumerator ruleBooleanLiterals() throws RecognitionException { + Enumerator current = null; + Token enumLiteral_0 = null; + Token enumLiteral_1 = null; - } + enterRule(); + try { + // InternalUmlProperty.g:1269:28: ( ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) ) + // InternalUmlProperty.g:1270:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) + { + // InternalUmlProperty.g:1270:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) + int alt20 = 2; + int LA20_0 = input.LA(1); - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleRealValue" + if ((LA20_0 == 37)) { + alt20 = 1; + } else if ((LA20_0 == 38)) { + alt20 = 2; + } else { + NoViableAltException nvae = new NoViableAltException("", 20, 0, input); + throw nvae; + } + switch (alt20) { + case 1: + // InternalUmlProperty.g:1270:2: (enumLiteral_0= 'true' ) + { + // InternalUmlProperty.g:1270:2: (enumLiteral_0= 'true' ) + // InternalUmlProperty.g:1270:4: enumLiteral_0= 'true' + { + enumLiteral_0 = (Token) match(input, 37, FOLLOW_2); - // $ANTLR start "entryRuleNullValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1143:1: entryRuleNullValue returns [EObject current=null] : iv_ruleNullValue= ruleNullValue EOF ; - public final EObject entryRuleNullValue() throws RecognitionException { - EObject current = null; + current = grammarAccess.getBooleanLiteralsAccess().getTRUEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTRUEEnumLiteralDeclaration_0()); - EObject iv_ruleNullValue = null; + } - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1144:2: (iv_ruleNullValue= ruleNullValue EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1145:2: iv_ruleNullValue= ruleNullValue EOF - { - newCompositeNode(grammarAccess.getNullValueRule()); - pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue2500); - iv_ruleNullValue=ruleNullValue(); - state._fsp--; + } + break; + case 2: + // InternalUmlProperty.g:1276:6: (enumLiteral_1= 'false' ) + { + // InternalUmlProperty.g:1276:6: (enumLiteral_1= 'false' ) + // InternalUmlProperty.g:1276:8: enumLiteral_1= 'false' + { + enumLiteral_1 = (Token) match(input, 38, FOLLOW_2); - current =iv_ruleNullValue; - match(input,EOF,FOLLOW_EOF_in_entryRuleNullValue2510); + current = grammarAccess.getBooleanLiteralsAccess().getFALSEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFALSEEnumLiteralDeclaration_1()); - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleNullValue" + } - // $ANTLR start "ruleNullValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1152:1: ruleNullValue returns [EObject current=null] : ( () otherlv_1= 'null' ) ; - public final EObject ruleNullValue() throws RecognitionException { - EObject current = null; + } + break; - Token otherlv_1=null; + } - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1155:28: ( ( () otherlv_1= 'null' ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:1: ( () otherlv_1= 'null' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:1: ( () otherlv_1= 'null' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:2: () otherlv_1= 'null' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:2: () - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1157:5: - { - current = forceCreateModelElement( - grammarAccess.getNullValueAccess().getNullValueAction_0(), - current); - + } - } + leaveRule(); + } - otherlv_1=(Token)match(input,27,FOLLOW_27_in_ruleNullValue2556); + catch (RecognitionException re) { + recover(input, re); + appendSkippedTokens(); + } finally { + } + return current; + } + // $ANTLR end "ruleBooleanLiterals" - newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1()); - + // Delegated rules - } - } - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleNullValue" - - - // $ANTLR start "entryRuleNoValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1174:1: entryRuleNoValue returns [EObject current=null] : iv_ruleNoValue= ruleNoValue EOF ; - public final EObject entryRuleNoValue() throws RecognitionException { - EObject current = null; - - EObject iv_ruleNoValue = null; - - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1175:2: (iv_ruleNoValue= ruleNoValue EOF ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1176:2: iv_ruleNoValue= ruleNoValue EOF - { - newCompositeNode(grammarAccess.getNoValueRule()); - pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue2592); - iv_ruleNoValue=ruleNoValue(); - - state._fsp--; - - current =iv_ruleNoValue; - match(input,EOF,FOLLOW_EOF_in_entryRuleNoValue2602); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleNoValue" - - - // $ANTLR start "ruleNoValue" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1183:1: ruleNoValue returns [EObject current=null] : ( () otherlv_1= 'none' ) ; - public final EObject ruleNoValue() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - - enterRule(); - - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1186:28: ( ( () otherlv_1= 'none' ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:1: ( () otherlv_1= 'none' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:1: ( () otherlv_1= 'none' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:2: () otherlv_1= 'none' - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:2: () - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1188:5: - { - - current = forceCreateModelElement( - grammarAccess.getNoValueAccess().getNoValueAction_0(), - current); - - - } - - otherlv_1=(Token)match(input,28,FOLLOW_28_in_ruleNoValue2648); - - newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1()); - - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleNoValue" - - - // $ANTLR start "ruleVisibilityKind" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1205:1: ruleVisibilityKind returns [Enumerator current=null] : ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ; - public final Enumerator ruleVisibilityKind() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - Token enumLiteral_2=null; - Token enumLiteral_3=null; - - enterRule(); - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1207:28: ( ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) - int alt18=4; - switch ( input.LA(1) ) { - case 29: - { - alt18=1; - } - break; - case 30: - { - alt18=2; - } - break; - case 31: - { - alt18=3; - } - break; - case 32: - { - alt18=4; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 18, 0, input); - - throw nvae; - } - - switch (alt18) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:2: (enumLiteral_0= '+' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:2: (enumLiteral_0= '+' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:4: enumLiteral_0= '+' - { - enumLiteral_0=(Token)match(input,29,FOLLOW_29_in_ruleVisibilityKind2698); - - current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1214:6: (enumLiteral_1= '-' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1214:6: (enumLiteral_1= '-' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1214:8: enumLiteral_1= '-' - { - enumLiteral_1=(Token)match(input,30,FOLLOW_30_in_ruleVisibilityKind2715); - - current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); - - - } - - - } - break; - case 3 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1220:6: (enumLiteral_2= '#' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1220:6: (enumLiteral_2= '#' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1220:8: enumLiteral_2= '#' - { - enumLiteral_2=(Token)match(input,31,FOLLOW_31_in_ruleVisibilityKind2732); - - current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); - - - } - - - } - break; - case 4 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1226:6: (enumLiteral_3= '~' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1226:6: (enumLiteral_3= '~' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1226:8: enumLiteral_3= '~' - { - enumLiteral_3=(Token)match(input,32,FOLLOW_32_in_ruleVisibilityKind2749); - - current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); - - - } - - - } - break; - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleVisibilityKind" - - - // $ANTLR start "ruleModifierKind" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1236:1: ruleModifierKind returns [Enumerator current=null] : ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ; - public final Enumerator ruleModifierKind() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - Token enumLiteral_2=null; - Token enumLiteral_3=null; - - enterRule(); - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1238:28: ( ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) - int alt19=4; - switch ( input.LA(1) ) { - case 33: - { - alt19=1; - } - break; - case 34: - { - alt19=2; - } - break; - case 35: - { - alt19=3; - } - break; - case 36: - { - alt19=4; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 19, 0, input); - - throw nvae; - } - - switch (alt19) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:2: (enumLiteral_0= 'readOnly' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:2: (enumLiteral_0= 'readOnly' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:4: enumLiteral_0= 'readOnly' - { - enumLiteral_0=(Token)match(input,33,FOLLOW_33_in_ruleModifierKind2794); - - current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:6: (enumLiteral_1= 'union' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:6: (enumLiteral_1= 'union' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:8: enumLiteral_1= 'union' - { - enumLiteral_1=(Token)match(input,34,FOLLOW_34_in_ruleModifierKind2811); - - current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); - - - } - - - } - break; - case 3 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:6: (enumLiteral_2= 'ordered' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:6: (enumLiteral_2= 'ordered' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:8: enumLiteral_2= 'ordered' - { - enumLiteral_2=(Token)match(input,35,FOLLOW_35_in_ruleModifierKind2828); - - current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); - - - } - - - } - break; - case 4 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1257:6: (enumLiteral_3= 'unique' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1257:6: (enumLiteral_3= 'unique' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1257:8: enumLiteral_3= 'unique' - { - enumLiteral_3=(Token)match(input,36,FOLLOW_36_in_ruleModifierKind2845); - - current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); - - - } - - - } - break; - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleModifierKind" - - - // $ANTLR start "ruleBooleanLiterals" - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1267:1: ruleBooleanLiterals returns [Enumerator current=null] : ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) ; - public final Enumerator ruleBooleanLiterals() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - - enterRule(); - try { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1269:28: ( ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) - int alt20=2; - int LA20_0 = input.LA(1); - - if ( (LA20_0==37) ) { - alt20=1; - } - else if ( (LA20_0==38) ) { - alt20=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 20, 0, input); - - throw nvae; - } - switch (alt20) { - case 1 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:2: (enumLiteral_0= 'true' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:2: (enumLiteral_0= 'true' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:4: enumLiteral_0= 'true' - { - enumLiteral_0=(Token)match(input,37,FOLLOW_37_in_ruleBooleanLiterals2890); - - current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1276:6: (enumLiteral_1= 'false' ) - { - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1276:6: (enumLiteral_1= 'false' ) - // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1276:8: enumLiteral_1= 'false' - { - enumLiteral_1=(Token)match(input,38,FOLLOW_38_in_ruleBooleanLiterals2907); - - current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); - - - } - - - } - break; - - } - - - } - - leaveRule(); - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleBooleanLiterals" - - // Delegated rules - - - - - public static final BitSet FOLLOW_rulePropertyRule_in_entryRulePropertyRule75 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRulePropertyRule85 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleVisibilityRule_in_rulePropertyRule131 = new BitSet(new long[]{0x0000000000001010L}); - public static final BitSet FOLLOW_12_in_rulePropertyRule150 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_RULE_ID_in_rulePropertyRule181 = new BitSet(new long[]{0x0000000002112002L}); - public static final BitSet FOLLOW_13_in_rulePropertyRule199 = new BitSet(new long[]{0x0000000000004010L}); - public static final BitSet FOLLOW_ruleTypeRule_in_rulePropertyRule221 = new BitSet(new long[]{0x0000000002110002L}); - public static final BitSet FOLLOW_14_in_rulePropertyRule245 = new BitSet(new long[]{0x0000000002110002L}); - public static final BitSet FOLLOW_ruleMultiplicityRule_in_rulePropertyRule282 = new BitSet(new long[]{0x0000000002100002L}); - public static final BitSet FOLLOW_ruleModifiersRule_in_rulePropertyRule304 = new BitSet(new long[]{0x0000000002000002L}); - public static final BitSet FOLLOW_ruleDefaultValueRule_in_rulePropertyRule326 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule363 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule373 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule418 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule453 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule463 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleQualifiedName_in_ruleTypeRule509 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_RULE_ID_in_ruleTypeRule530 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName566 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName576 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_RULE_ID_in_ruleQualifiedName621 = new BitSet(new long[]{0x0000000000008000L}); - public static final BitSet FOLLOW_15_in_ruleQualifiedName633 = new BitSet(new long[]{0x0000000000000012L}); - public static final BitSet FOLLOW_ruleQualifiedName_in_ruleQualifiedName654 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule691 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule701 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_16_in_ruleMultiplicityRule738 = new BitSet(new long[]{0x0000000000080060L}); - public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule759 = new BitSet(new long[]{0x0000000000060000L}); - public static final BitSet FOLLOW_17_in_ruleMultiplicityRule772 = new BitSet(new long[]{0x0000000000080060L}); - public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule793 = new BitSet(new long[]{0x0000000000040000L}); - public static final BitSet FOLLOW_18_in_ruleMultiplicityRule807 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification843 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification853 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification900 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleStringLiteral_in_ruleBoundSpecification919 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral958 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral969 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1009 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_19_in_ruleUnlimitedLiteral1033 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1074 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleStringLiteral1085 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_RULE_STRING_in_ruleStringLiteral1124 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1168 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule1178 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_20_in_ruleModifiersRule1224 = new BitSet(new long[]{0x0000001E01C00000L}); - public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1246 = new BitSet(new long[]{0x0000000000600000L}); - public static final BitSet FOLLOW_21_in_ruleModifiersRule1259 = new BitSet(new long[]{0x0000001E01800000L}); - public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1280 = new BitSet(new long[]{0x0000000000600000L}); - public static final BitSet FOLLOW_22_in_ruleModifiersRule1296 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1332 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification1342 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleModifierKind_in_ruleModifierSpecification1388 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1415 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1442 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1478 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule1488 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_23_in_ruleRedefinesRule1525 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_RULE_ID_in_ruleRedefinesRule1545 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1581 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule1591 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_24_in_ruleSubsetsRule1628 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_RULE_ID_in_ruleSubsetsRule1648 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1684 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule1694 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_25_in_ruleDefaultValueRule1731 = new BitSet(new long[]{0x000000601C000060L}); - public static final BitSet FOLLOW_ruleValue_in_ruleDefaultValueRule1752 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleValue_in_entryRuleValue1788 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleValue1798 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleIntValue_in_ruleValue1845 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleStringValue_in_ruleValue1872 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleBooleanValue_in_ruleValue1899 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleRealValue_in_ruleValue1926 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleNullValue_in_ruleValue1953 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleNoValue_in_ruleValue1980 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue2015 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleIntValue2025 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_RULE_INT_in_ruleIntValue2066 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue2106 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleStringValue2116 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_RULE_STRING_in_ruleStringValue2157 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2197 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue2207 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2252 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue2287 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleRealValue2297 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2340 = new BitSet(new long[]{0x0000000004000000L}); - public static final BitSet FOLLOW_26_in_ruleRealValue2357 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_26_in_ruleRealValue2377 = new BitSet(new long[]{0x0000000000000020L}); - public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2394 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2424 = new BitSet(new long[]{0x0000000004000000L}); - public static final BitSet FOLLOW_26_in_ruleRealValue2441 = new BitSet(new long[]{0x0000000000000020L}); - public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2458 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue2500 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleNullValue2510 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_27_in_ruleNullValue2556 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue2592 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_EOF_in_entryRuleNoValue2602 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_28_in_ruleNoValue2648 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_29_in_ruleVisibilityKind2698 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_30_in_ruleVisibilityKind2715 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_31_in_ruleVisibilityKind2732 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_32_in_ruleVisibilityKind2749 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_33_in_ruleModifierKind2794 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_34_in_ruleModifierKind2811 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_35_in_ruleModifierKind2828 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_36_in_ruleModifierKind2845 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_37_in_ruleBooleanLiterals2890 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_38_in_ruleBooleanLiterals2907 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_1 = new BitSet(new long[] { 0x0000000000000000L }); + public static final BitSet FOLLOW_2 = new BitSet(new long[] { 0x0000000000000002L }); + public static final BitSet FOLLOW_3 = new BitSet(new long[] { 0x0000000000001010L }); + public static final BitSet FOLLOW_4 = new BitSet(new long[] { 0x0000000000000010L }); + public static final BitSet FOLLOW_5 = new BitSet(new long[] { 0x0000000002112002L }); + public static final BitSet FOLLOW_6 = new BitSet(new long[] { 0x0000000000004010L }); + public static final BitSet FOLLOW_7 = new BitSet(new long[] { 0x0000000002110002L }); + public static final BitSet FOLLOW_8 = new BitSet(new long[] { 0x0000000002100002L }); + public static final BitSet FOLLOW_9 = new BitSet(new long[] { 0x0000000002000002L }); + public static final BitSet FOLLOW_10 = new BitSet(new long[] { 0x0000000000008000L }); + public static final BitSet FOLLOW_11 = new BitSet(new long[] { 0x0000000000000012L }); + public static final BitSet FOLLOW_12 = new BitSet(new long[] { 0x0000000000080060L }); + public static final BitSet FOLLOW_13 = new BitSet(new long[] { 0x0000000000060000L }); + public static final BitSet FOLLOW_14 = new BitSet(new long[] { 0x0000000000040000L }); + public static final BitSet FOLLOW_15 = new BitSet(new long[] { 0x0000001E01C00000L }); + public static final BitSet FOLLOW_16 = new BitSet(new long[] { 0x0000000000600000L }); + public static final BitSet FOLLOW_17 = new BitSet(new long[] { 0x0000001E01800000L }); + public static final BitSet FOLLOW_18 = new BitSet(new long[] { 0x000000601C000060L }); + public static final BitSet FOLLOW_19 = new BitSet(new long[] { 0x0000000004000000L }); + public static final BitSet FOLLOW_20 = new BitSet(new long[] { 0x0000000000000020L }); }
\ No newline at end of file diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java index b2f15595b57..65ca806d479 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java @@ -3,9 +3,10 @@ */ package org.eclipse.papyrus.uml.textedit.property.xtext.serializer; -import com.google.inject.Inject; -import com.google.inject.Provider; +import java.util.Set; + import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification; @@ -25,287 +26,344 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule; -import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor; +import org.eclipse.xtext.Action; +import org.eclipse.xtext.Parameter; +import org.eclipse.xtext.ParserRule; +import org.eclipse.xtext.serializer.ISerializationContext; import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; -import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider; -import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor; import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.GenericSequencer; -import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; -import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.ITransientValueService; import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; +import com.google.inject.Inject; + @SuppressWarnings("all") public class UmlPropertySemanticSequencer extends AbstractDelegatingSemanticSequencer { @Inject private UmlPropertyGrammarAccess grammarAccess; - + @Override - public void createSequence(EObject context, EObject semanticObject) { - if(semanticObject.eClass().getEPackage() == UmlPropertyPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) { + public void sequence(ISerializationContext context, EObject semanticObject) { + EPackage epackage = semanticObject.eClass().getEPackage(); + ParserRule rule = context.getParserRule(); + Action action = context.getAssignedAction(); + Set<Parameter> parameters = context.getEnabledBooleanParameters(); + if (epackage == UmlPropertyPackage.eINSTANCE) + switch (semanticObject.eClass().getClassifierID()) { case UmlPropertyPackage.BOOLEAN_VALUE: - sequence_BooleanValue(context, (BooleanValue) semanticObject); - return; + sequence_BooleanValue(context, (BooleanValue) semanticObject); + return; case UmlPropertyPackage.BOUND_SPECIFICATION: - sequence_BoundSpecification(context, (BoundSpecification) semanticObject); - return; + sequence_BoundSpecification(context, (BoundSpecification) semanticObject); + return; case UmlPropertyPackage.DEFAULT_VALUE_RULE: - sequence_DefaultValueRule(context, (DefaultValueRule) semanticObject); - return; + sequence_DefaultValueRule(context, (DefaultValueRule) semanticObject); + return; case UmlPropertyPackage.INT_VALUE: - sequence_IntValue(context, (IntValue) semanticObject); - return; + sequence_IntValue(context, (IntValue) semanticObject); + return; case UmlPropertyPackage.MODIFIER_SPECIFICATION: - sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject); - return; + sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject); + return; case UmlPropertyPackage.MODIFIERS_RULE: - sequence_ModifiersRule(context, (ModifiersRule) semanticObject); - return; + sequence_ModifiersRule(context, (ModifiersRule) semanticObject); + return; case UmlPropertyPackage.MULTIPLICITY_RULE: - sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject); - return; + sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject); + return; case UmlPropertyPackage.NO_VALUE: - sequence_NoValue(context, (NoValue) semanticObject); - return; + sequence_NoValue(context, (NoValue) semanticObject); + return; case UmlPropertyPackage.NULL_VALUE: - sequence_NullValue(context, (NullValue) semanticObject); - return; + sequence_NullValue(context, (NullValue) semanticObject); + return; case UmlPropertyPackage.PROPERTY_RULE: - sequence_PropertyRule(context, (PropertyRule) semanticObject); - return; + sequence_PropertyRule(context, (PropertyRule) semanticObject); + return; case UmlPropertyPackage.QUALIFIED_NAME: - sequence_QualifiedName(context, (QualifiedName) semanticObject); - return; + sequence_QualifiedName(context, (QualifiedName) semanticObject); + return; case UmlPropertyPackage.REAL_VALUE: - sequence_RealValue(context, (RealValue) semanticObject); - return; + sequence_RealValue(context, (RealValue) semanticObject); + return; case UmlPropertyPackage.REDEFINES_RULE: - sequence_RedefinesRule(context, (RedefinesRule) semanticObject); - return; + sequence_RedefinesRule(context, (RedefinesRule) semanticObject); + return; case UmlPropertyPackage.STRING_VALUE: - sequence_StringValue(context, (StringValue) semanticObject); - return; + sequence_StringValue(context, (StringValue) semanticObject); + return; case UmlPropertyPackage.SUBSETS_RULE: - sequence_SubsetsRule(context, (SubsetsRule) semanticObject); - return; + sequence_SubsetsRule(context, (SubsetsRule) semanticObject); + return; case UmlPropertyPackage.TYPE_RULE: - sequence_TypeRule(context, (TypeRule) semanticObject); - return; + sequence_TypeRule(context, (TypeRule) semanticObject); + return; case UmlPropertyPackage.VISIBILITY_RULE: - sequence_VisibilityRule(context, (VisibilityRule) semanticObject); - return; + sequence_VisibilityRule(context, (VisibilityRule) semanticObject); + return; } - if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); + if (errorAcceptor != null) + errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); } - + /** + * Contexts: + * Value returns BooleanValue + * BooleanValue returns BooleanValue + * * Constraint: - * literalBoolean=BooleanLiterals + * literalBoolean=BooleanLiterals */ - protected void sequence_BooleanValue(EObject context, BooleanValue semanticObject) { - if(errorAcceptor != null) { - if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN) == ValueTransient.YES) + protected void sequence_BooleanValue(ISerializationContext context, BooleanValue semanticObject) { + if (errorAcceptor != null) { + if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN)); } - INodesForEObjectProvider nodes = createNodeProvider(semanticObject); - SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0(), semanticObject.getLiteralBoolean()); feeder.finish(); } - - + + /** + * Contexts: + * BoundSpecification returns BoundSpecification + * * Constraint: - * (value=UnlimitedLiteral | value=StringLiteral) + * (value=UnlimitedLiteral | value=StringLiteral) */ - protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) { + protected void sequence_BoundSpecification(ISerializationContext context, BoundSpecification semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * DefaultValueRule returns DefaultValueRule + * * Constraint: - * default=Value + * default=Value */ - protected void sequence_DefaultValueRule(EObject context, DefaultValueRule semanticObject) { - if(errorAcceptor != null) { - if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT) == ValueTransient.YES) + protected void sequence_DefaultValueRule(ISerializationContext context, DefaultValueRule semanticObject) { + if (errorAcceptor != null) { + if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT)); } - INodesForEObjectProvider nodes = createNodeProvider(semanticObject); - SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0(), semanticObject.getDefault()); feeder.finish(); } - - + + /** + * Contexts: + * Value returns IntValue + * IntValue returns IntValue + * * Constraint: - * literalInteger=INT + * literalInteger=INT */ - protected void sequence_IntValue(EObject context, IntValue semanticObject) { - if(errorAcceptor != null) { - if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.INT_VALUE__LITERAL_INTEGER) == ValueTransient.YES) + protected void sequence_IntValue(ISerializationContext context, IntValue semanticObject) { + if (errorAcceptor != null) { + if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.INT_VALUE__LITERAL_INTEGER) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.INT_VALUE__LITERAL_INTEGER)); } - INodesForEObjectProvider nodes = createNodeProvider(semanticObject); - SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0(), semanticObject.getLiteralInteger()); feeder.finish(); } - - + + /** + * Contexts: + * ModifierSpecification returns ModifierSpecification + * * Constraint: - * (value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule) + * (value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule) */ - protected void sequence_ModifierSpecification(EObject context, ModifierSpecification semanticObject) { + protected void sequence_ModifierSpecification(ISerializationContext context, ModifierSpecification semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * ModifiersRule returns ModifiersRule + * * Constraint: - * ((values+=ModifierSpecification values+=ModifierSpecification*)?) + * (values+=ModifierSpecification values+=ModifierSpecification*)? */ - protected void sequence_ModifiersRule(EObject context, ModifiersRule semanticObject) { + protected void sequence_ModifiersRule(ISerializationContext context, ModifiersRule semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * MultiplicityRule returns MultiplicityRule + * * Constraint: - * (bounds+=BoundSpecification bounds+=BoundSpecification?) + * (bounds+=BoundSpecification bounds+=BoundSpecification?) */ - protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) { + protected void sequence_MultiplicityRule(ISerializationContext context, MultiplicityRule semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * Value returns NoValue + * NoValue returns NoValue + * * Constraint: - * {NoValue} + * {NoValue} */ - protected void sequence_NoValue(EObject context, NoValue semanticObject) { + protected void sequence_NoValue(ISerializationContext context, NoValue semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * Value returns NullValue + * NullValue returns NullValue + * * Constraint: - * {NullValue} + * {NullValue} */ - protected void sequence_NullValue(EObject context, NullValue semanticObject) { + protected void sequence_NullValue(ISerializationContext context, NullValue semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * PropertyRule returns PropertyRule + * * Constraint: - * ( - * visibility=VisibilityRule? - * derived?='/'? - * name=ID - * (type=TypeRule | typeUndefined?='<Undefined>')? - * multiplicity=MultiplicityRule? - * modifiers=ModifiersRule? - * default=DefaultValueRule? - * ) + * ( + * visibility=VisibilityRule? + * derived?='/'? + * name=ID + * (type=TypeRule | typeUndefined?='<Undefined>')? + * multiplicity=MultiplicityRule? + * modifiers=ModifiersRule? + * default=DefaultValueRule? + * ) */ - protected void sequence_PropertyRule(EObject context, PropertyRule semanticObject) { + protected void sequence_PropertyRule(ISerializationContext context, PropertyRule semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * QualifiedName returns QualifiedName + * * Constraint: - * (path=[Namespace|ID] remaining=QualifiedName?) + * (path=[Namespace|ID] remaining=QualifiedName?) */ - protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) { + protected void sequence_QualifiedName(ISerializationContext context, QualifiedName semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * Value returns RealValue + * RealValue returns RealValue + * * Constraint: - * (integer=INT | fraction=INT | (integer=INT fraction=INT)) + * (integer=INT | fraction=INT | (integer=INT fraction=INT)) */ - protected void sequence_RealValue(EObject context, RealValue semanticObject) { + protected void sequence_RealValue(ISerializationContext context, RealValue semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * RedefinesRule returns RedefinesRule + * * Constraint: - * property=[Property|ID] + * property=[Property|ID] */ - protected void sequence_RedefinesRule(EObject context, RedefinesRule semanticObject) { - if(errorAcceptor != null) { - if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY) == ValueTransient.YES) + protected void sequence_RedefinesRule(ISerializationContext context, RedefinesRule semanticObject) { + if (errorAcceptor != null) { + if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY)); } - INodesForEObjectProvider nodes = createNodeProvider(semanticObject); - SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); - feeder.accept(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty()); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); + feeder.accept(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.eGet(UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY, false)); feeder.finish(); } - - + + /** + * Contexts: + * Value returns StringValue + * StringValue returns StringValue + * * Constraint: - * literalString=STRING + * literalString=STRING */ - protected void sequence_StringValue(EObject context, StringValue semanticObject) { - if(errorAcceptor != null) { - if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.STRING_VALUE__LITERAL_STRING) == ValueTransient.YES) + protected void sequence_StringValue(ISerializationContext context, StringValue semanticObject) { + if (errorAcceptor != null) { + if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.STRING_VALUE__LITERAL_STRING) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.STRING_VALUE__LITERAL_STRING)); } - INodesForEObjectProvider nodes = createNodeProvider(semanticObject); - SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0(), semanticObject.getLiteralString()); feeder.finish(); } - - + + /** + * Contexts: + * SubsetsRule returns SubsetsRule + * * Constraint: - * property=[Property|ID] + * property=[Property|ID] */ - protected void sequence_SubsetsRule(EObject context, SubsetsRule semanticObject) { - if(errorAcceptor != null) { - if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY) == ValueTransient.YES) + protected void sequence_SubsetsRule(ISerializationContext context, SubsetsRule semanticObject) { + if (errorAcceptor != null) { + if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY)); } - INodesForEObjectProvider nodes = createNodeProvider(semanticObject); - SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); - feeder.accept(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty()); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); + feeder.accept(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.eGet(UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY, false)); feeder.finish(); } - - + + /** + * Contexts: + * TypeRule returns TypeRule + * * Constraint: - * (path=QualifiedName? type=[Classifier|ID]) + * (path=QualifiedName? type=[Classifier|ID]) */ - protected void sequence_TypeRule(EObject context, TypeRule semanticObject) { + protected void sequence_TypeRule(ISerializationContext context, TypeRule semanticObject) { genericSequencer.createSequence(context, semanticObject); } - - + + /** + * Contexts: + * VisibilityRule returns VisibilityRule + * * Constraint: - * visibility=VisibilityKind + * visibility=VisibilityKind */ - protected void sequence_VisibilityRule(EObject context, VisibilityRule semanticObject) { - if(errorAcceptor != null) { - if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.VISIBILITY_RULE__VISIBILITY) == ValueTransient.YES) + protected void sequence_VisibilityRule(ISerializationContext context, VisibilityRule semanticObject) { + if (errorAcceptor != null) { + if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.VISIBILITY_RULE__VISIBILITY) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.VISIBILITY_RULE__VISIBILITY)); } - INodesForEObjectProvider nodes = createNodeProvider(semanticObject); - SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0(), semanticObject.getVisibility()); feeder.finish(); } + + } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java index 0a42f0c1046..9e838c53459 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java @@ -3,8 +3,8 @@ */ package org.eclipse.papyrus.uml.textedit.property.xtext.serializer; -import com.google.inject.Inject; import java.util.List; + import org.eclipse.emf.ecore.EObject; import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess; import org.eclipse.xtext.IGrammarAccess; @@ -14,25 +14,28 @@ import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; +import com.google.inject.Inject; + @SuppressWarnings("all") public class UmlPropertySyntacticSequencer extends AbstractSyntacticSequencer { protected UmlPropertyGrammarAccess grammarAccess; - + @Inject protected void init(IGrammarAccess access) { grammarAccess = (UmlPropertyGrammarAccess) access; } - + @Override protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { return ""; } - - + + @Override protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) return; + if (transition.getAmbiguousSyntaxes().isEmpty()) + return; List<INode> transitionNodes = collectNodes(fromNode, toNode); for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java index cc4ad0e055a..62153ae5f33 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java @@ -3,775 +3,1135 @@ */ package org.eclipse.papyrus.uml.textedit.property.xtext.services; -import com.google.inject.Singleton; -import com.google.inject.Inject; - import java.util.List; -import org.eclipse.xtext.*; +import org.eclipse.papyrus.uml.alf.services.CommonGrammarAccess; +import org.eclipse.xtext.Action; +import org.eclipse.xtext.Alternatives; +import org.eclipse.xtext.Assignment; +import org.eclipse.xtext.CrossReference; +import org.eclipse.xtext.EnumLiteralDeclaration; +import org.eclipse.xtext.EnumRule; +import org.eclipse.xtext.Grammar; +import org.eclipse.xtext.GrammarUtil; +import org.eclipse.xtext.Group; +import org.eclipse.xtext.Keyword; +import org.eclipse.xtext.ParserRule; +import org.eclipse.xtext.RuleCall; +import org.eclipse.xtext.TerminalRule; +import org.eclipse.xtext.common.services.TerminalsGrammarAccess; +import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; import org.eclipse.xtext.service.GrammarProvider; -import org.eclipse.xtext.service.AbstractElementFinder.*; -import org.eclipse.papyrus.uml.alf.services.CommonGrammarAccess; +import com.google.inject.Inject; +import com.google.inject.Singleton; @Singleton public class UmlPropertyGrammarAccess extends AbstractGrammarElementFinder { - - + + public class PropertyRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PropertyRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cVisibilityAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cVisibilityVisibilityRuleParserRuleCall_0_0 = (RuleCall)cVisibilityAssignment_0.eContents().get(0); - private final Assignment cDerivedAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final Keyword cDerivedSolidusKeyword_1_0 = (Keyword)cDerivedAssignment_1.eContents().get(0); - private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); - private final Group cGroup_3 = (Group)cGroup.eContents().get(3); - private final Keyword cColonKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0); - private final Alternatives cAlternatives_3_1 = (Alternatives)cGroup_3.eContents().get(1); - private final Assignment cTypeAssignment_3_1_0 = (Assignment)cAlternatives_3_1.eContents().get(0); - private final RuleCall cTypeTypeRuleParserRuleCall_3_1_0_0 = (RuleCall)cTypeAssignment_3_1_0.eContents().get(0); - private final Assignment cTypeUndefinedAssignment_3_1_1 = (Assignment)cAlternatives_3_1.eContents().get(1); - private final Keyword cTypeUndefinedUndefinedKeyword_3_1_1_0 = (Keyword)cTypeUndefinedAssignment_3_1_1.eContents().get(0); - private final Assignment cMultiplicityAssignment_4 = (Assignment)cGroup.eContents().get(4); - private final RuleCall cMultiplicityMultiplicityRuleParserRuleCall_4_0 = (RuleCall)cMultiplicityAssignment_4.eContents().get(0); - private final Assignment cModifiersAssignment_5 = (Assignment)cGroup.eContents().get(5); - private final RuleCall cModifiersModifiersRuleParserRuleCall_5_0 = (RuleCall)cModifiersAssignment_5.eContents().get(0); - private final Assignment cDefaultAssignment_6 = (Assignment)cGroup.eContents().get(6); - private final RuleCall cDefaultDefaultValueRuleParserRuleCall_6_0 = (RuleCall)cDefaultAssignment_6.eContents().get(0); - - //PropertyRule: - // visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))? - // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.PropertyRule"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Assignment cVisibilityAssignment_0 = (Assignment) cGroup.eContents().get(0); + private final RuleCall cVisibilityVisibilityRuleParserRuleCall_0_0 = (RuleCall) cVisibilityAssignment_0.eContents().get(0); + private final Assignment cDerivedAssignment_1 = (Assignment) cGroup.eContents().get(1); + private final Keyword cDerivedSolidusKeyword_1_0 = (Keyword) cDerivedAssignment_1.eContents().get(0); + private final Assignment cNameAssignment_2 = (Assignment) cGroup.eContents().get(2); + private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall) cNameAssignment_2.eContents().get(0); + private final Group cGroup_3 = (Group) cGroup.eContents().get(3); + private final Keyword cColonKeyword_3_0 = (Keyword) cGroup_3.eContents().get(0); + private final Alternatives cAlternatives_3_1 = (Alternatives) cGroup_3.eContents().get(1); + private final Assignment cTypeAssignment_3_1_0 = (Assignment) cAlternatives_3_1.eContents().get(0); + private final RuleCall cTypeTypeRuleParserRuleCall_3_1_0_0 = (RuleCall) cTypeAssignment_3_1_0.eContents().get(0); + private final Assignment cTypeUndefinedAssignment_3_1_1 = (Assignment) cAlternatives_3_1.eContents().get(1); + private final Keyword cTypeUndefinedUndefinedKeyword_3_1_1_0 = (Keyword) cTypeUndefinedAssignment_3_1_1.eContents().get(0); + private final Assignment cMultiplicityAssignment_4 = (Assignment) cGroup.eContents().get(4); + private final RuleCall cMultiplicityMultiplicityRuleParserRuleCall_4_0 = (RuleCall) cMultiplicityAssignment_4.eContents().get(0); + private final Assignment cModifiersAssignment_5 = (Assignment) cGroup.eContents().get(5); + private final RuleCall cModifiersModifiersRuleParserRuleCall_5_0 = (RuleCall) cModifiersAssignment_5.eContents().get(0); + private final Assignment cDefaultAssignment_6 = (Assignment) cGroup.eContents().get(6); + private final RuleCall cDefaultDefaultValueRuleParserRuleCall_6_0 = (RuleCall) cDefaultAssignment_6.eContents().get(0); + + // PropertyRule: + // visibility=VisibilityRule? derived?="/"? name=ID (':' (type=TypeRule | typeUndefined?="<Undefined>"))? + // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?; + @Override + public ParserRule getRule() { + return rule; + } - //visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))? - //multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule? - public Group getGroup() { return cGroup; } + // visibility=VisibilityRule? derived?="/"? name=ID (':' (type=TypeRule | typeUndefined?="<Undefined>"))? + // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule? + public Group getGroup() { + return cGroup; + } - //visibility=VisibilityRule? - public Assignment getVisibilityAssignment_0() { return cVisibilityAssignment_0; } + // visibility=VisibilityRule? + public Assignment getVisibilityAssignment_0() { + return cVisibilityAssignment_0; + } - //VisibilityRule - public RuleCall getVisibilityVisibilityRuleParserRuleCall_0_0() { return cVisibilityVisibilityRuleParserRuleCall_0_0; } + // VisibilityRule + public RuleCall getVisibilityVisibilityRuleParserRuleCall_0_0() { + return cVisibilityVisibilityRuleParserRuleCall_0_0; + } - //derived?="/"? - public Assignment getDerivedAssignment_1() { return cDerivedAssignment_1; } + // derived?="/"? + public Assignment getDerivedAssignment_1() { + return cDerivedAssignment_1; + } - //"/" - public Keyword getDerivedSolidusKeyword_1_0() { return cDerivedSolidusKeyword_1_0; } + // "/" + public Keyword getDerivedSolidusKeyword_1_0() { + return cDerivedSolidusKeyword_1_0; + } - //name=ID - public Assignment getNameAssignment_2() { return cNameAssignment_2; } + // name=ID + public Assignment getNameAssignment_2() { + return cNameAssignment_2; + } - //ID - public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } + // ID + public RuleCall getNameIDTerminalRuleCall_2_0() { + return cNameIDTerminalRuleCall_2_0; + } - //(":" (type=TypeRule | typeUndefined?="<Undefined>"))? - public Group getGroup_3() { return cGroup_3; } + // (':' (type=TypeRule | typeUndefined?="<Undefined>"))? + public Group getGroup_3() { + return cGroup_3; + } - //":" - public Keyword getColonKeyword_3_0() { return cColonKeyword_3_0; } + // ':' + public Keyword getColonKeyword_3_0() { + return cColonKeyword_3_0; + } - //type=TypeRule | typeUndefined?="<Undefined>" - public Alternatives getAlternatives_3_1() { return cAlternatives_3_1; } + // type=TypeRule | typeUndefined?="<Undefined>" + public Alternatives getAlternatives_3_1() { + return cAlternatives_3_1; + } - //type=TypeRule - public Assignment getTypeAssignment_3_1_0() { return cTypeAssignment_3_1_0; } + // type=TypeRule + public Assignment getTypeAssignment_3_1_0() { + return cTypeAssignment_3_1_0; + } - //TypeRule - public RuleCall getTypeTypeRuleParserRuleCall_3_1_0_0() { return cTypeTypeRuleParserRuleCall_3_1_0_0; } + // TypeRule + public RuleCall getTypeTypeRuleParserRuleCall_3_1_0_0() { + return cTypeTypeRuleParserRuleCall_3_1_0_0; + } - //typeUndefined?="<Undefined>" - public Assignment getTypeUndefinedAssignment_3_1_1() { return cTypeUndefinedAssignment_3_1_1; } + // typeUndefined?="<Undefined>" + public Assignment getTypeUndefinedAssignment_3_1_1() { + return cTypeUndefinedAssignment_3_1_1; + } - //"<Undefined>" - public Keyword getTypeUndefinedUndefinedKeyword_3_1_1_0() { return cTypeUndefinedUndefinedKeyword_3_1_1_0; } + // "<Undefined>" + public Keyword getTypeUndefinedUndefinedKeyword_3_1_1_0() { + return cTypeUndefinedUndefinedKeyword_3_1_1_0; + } - //multiplicity=MultiplicityRule? - public Assignment getMultiplicityAssignment_4() { return cMultiplicityAssignment_4; } + // multiplicity=MultiplicityRule? + public Assignment getMultiplicityAssignment_4() { + return cMultiplicityAssignment_4; + } - //MultiplicityRule - public RuleCall getMultiplicityMultiplicityRuleParserRuleCall_4_0() { return cMultiplicityMultiplicityRuleParserRuleCall_4_0; } + // MultiplicityRule + public RuleCall getMultiplicityMultiplicityRuleParserRuleCall_4_0() { + return cMultiplicityMultiplicityRuleParserRuleCall_4_0; + } - //modifiers=ModifiersRule? - public Assignment getModifiersAssignment_5() { return cModifiersAssignment_5; } + // modifiers=ModifiersRule? + public Assignment getModifiersAssignment_5() { + return cModifiersAssignment_5; + } - //ModifiersRule - public RuleCall getModifiersModifiersRuleParserRuleCall_5_0() { return cModifiersModifiersRuleParserRuleCall_5_0; } + // ModifiersRule + public RuleCall getModifiersModifiersRuleParserRuleCall_5_0() { + return cModifiersModifiersRuleParserRuleCall_5_0; + } - //default=DefaultValueRule? - public Assignment getDefaultAssignment_6() { return cDefaultAssignment_6; } + // default=DefaultValueRule? + public Assignment getDefaultAssignment_6() { + return cDefaultAssignment_6; + } - //DefaultValueRule - public RuleCall getDefaultDefaultValueRuleParserRuleCall_6_0() { return cDefaultDefaultValueRuleParserRuleCall_6_0; } + // DefaultValueRule + public RuleCall getDefaultDefaultValueRuleParserRuleCall_6_0() { + return cDefaultDefaultValueRuleParserRuleCall_6_0; + } } public class VisibilityRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityRule"); - private final Assignment cVisibilityAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cVisibilityVisibilityKindEnumRuleCall_0 = (RuleCall)cVisibilityAssignment.eContents().get(0); - - //VisibilityRule: - // visibility=VisibilityKind; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.VisibilityRule"); + private final Assignment cVisibilityAssignment = (Assignment) rule.eContents().get(1); + private final RuleCall cVisibilityVisibilityKindEnumRuleCall_0 = (RuleCall) cVisibilityAssignment.eContents().get(0); + + // VisibilityRule: + // visibility=VisibilityKind; + @Override + public ParserRule getRule() { + return rule; + } - //visibility=VisibilityKind - public Assignment getVisibilityAssignment() { return cVisibilityAssignment; } + // visibility=VisibilityKind + public Assignment getVisibilityAssignment() { + return cVisibilityAssignment; + } - //VisibilityKind - public RuleCall getVisibilityVisibilityKindEnumRuleCall_0() { return cVisibilityVisibilityKindEnumRuleCall_0; } + // VisibilityKind + public RuleCall getVisibilityVisibilityKindEnumRuleCall_0() { + return cVisibilityVisibilityKindEnumRuleCall_0; + } } public class TypeRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TypeRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cPathAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cPathQualifiedNameParserRuleCall_0_0 = (RuleCall)cPathAssignment_0.eContents().get(0); - private final Assignment cTypeAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final CrossReference cTypeClassifierCrossReference_1_0 = (CrossReference)cTypeAssignment_1.eContents().get(0); - private final RuleCall cTypeClassifierIDTerminalRuleCall_1_0_1 = (RuleCall)cTypeClassifierCrossReference_1_0.eContents().get(1); - - //TypeRule: - // path=QualifiedName? type=[uml::Classifier]; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.TypeRule"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0); + private final RuleCall cPathQualifiedNameParserRuleCall_0_0 = (RuleCall) cPathAssignment_0.eContents().get(0); + private final Assignment cTypeAssignment_1 = (Assignment) cGroup.eContents().get(1); + private final CrossReference cTypeClassifierCrossReference_1_0 = (CrossReference) cTypeAssignment_1.eContents().get(0); + private final RuleCall cTypeClassifierIDTerminalRuleCall_1_0_1 = (RuleCall) cTypeClassifierCrossReference_1_0.eContents().get(1); + + // TypeRule: + // path=QualifiedName? type=[uml::Classifier]; + @Override + public ParserRule getRule() { + return rule; + } - //path=QualifiedName? type=[uml::Classifier] - public Group getGroup() { return cGroup; } + // path=QualifiedName? type=[uml::Classifier] + public Group getGroup() { + return cGroup; + } - //path=QualifiedName? - public Assignment getPathAssignment_0() { return cPathAssignment_0; } + // path=QualifiedName? + public Assignment getPathAssignment_0() { + return cPathAssignment_0; + } - //QualifiedName - public RuleCall getPathQualifiedNameParserRuleCall_0_0() { return cPathQualifiedNameParserRuleCall_0_0; } + // QualifiedName + public RuleCall getPathQualifiedNameParserRuleCall_0_0() { + return cPathQualifiedNameParserRuleCall_0_0; + } - //type=[uml::Classifier] - public Assignment getTypeAssignment_1() { return cTypeAssignment_1; } + // type=[uml::Classifier] + public Assignment getTypeAssignment_1() { + return cTypeAssignment_1; + } - //[uml::Classifier] - public CrossReference getTypeClassifierCrossReference_1_0() { return cTypeClassifierCrossReference_1_0; } + // [uml::Classifier] + public CrossReference getTypeClassifierCrossReference_1_0() { + return cTypeClassifierCrossReference_1_0; + } - //ID - public RuleCall getTypeClassifierIDTerminalRuleCall_1_0_1() { return cTypeClassifierIDTerminalRuleCall_1_0_1; } + // ID + public RuleCall getTypeClassifierIDTerminalRuleCall_1_0_1() { + return cTypeClassifierIDTerminalRuleCall_1_0_1; + } } public class QualifiedNameElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "QualifiedName"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cPathAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cPathNamespaceCrossReference_0_0 = (CrossReference)cPathAssignment_0.eContents().get(0); - private final RuleCall cPathNamespaceIDTerminalRuleCall_0_0_1 = (RuleCall)cPathNamespaceCrossReference_0_0.eContents().get(1); - private final Keyword cColonColonKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cRemainingAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cRemainingQualifiedNameParserRuleCall_2_0 = (RuleCall)cRemainingAssignment_2.eContents().get(0); - - //QualifiedName: - // path=[uml::Namespace] "::" remaining=QualifiedName?; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.QualifiedName"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0); + private final CrossReference cPathNamespaceCrossReference_0_0 = (CrossReference) cPathAssignment_0.eContents().get(0); + private final RuleCall cPathNamespaceIDTerminalRuleCall_0_0_1 = (RuleCall) cPathNamespaceCrossReference_0_0.eContents().get(1); + private final Keyword cColonColonKeyword_1 = (Keyword) cGroup.eContents().get(1); + private final Assignment cRemainingAssignment_2 = (Assignment) cGroup.eContents().get(2); + private final RuleCall cRemainingQualifiedNameParserRuleCall_2_0 = (RuleCall) cRemainingAssignment_2.eContents().get(0); + + // QualifiedName: + // path=[uml::Namespace] '::' remaining=QualifiedName?; + @Override + public ParserRule getRule() { + return rule; + } - //path=[uml::Namespace] "::" remaining=QualifiedName? - public Group getGroup() { return cGroup; } + // path=[uml::Namespace] '::' remaining=QualifiedName? + public Group getGroup() { + return cGroup; + } - //path=[uml::Namespace] - public Assignment getPathAssignment_0() { return cPathAssignment_0; } + // path=[uml::Namespace] + public Assignment getPathAssignment_0() { + return cPathAssignment_0; + } - //[uml::Namespace] - public CrossReference getPathNamespaceCrossReference_0_0() { return cPathNamespaceCrossReference_0_0; } + // [uml::Namespace] + public CrossReference getPathNamespaceCrossReference_0_0() { + return cPathNamespaceCrossReference_0_0; + } - //ID - public RuleCall getPathNamespaceIDTerminalRuleCall_0_0_1() { return cPathNamespaceIDTerminalRuleCall_0_0_1; } + // ID + public RuleCall getPathNamespaceIDTerminalRuleCall_0_0_1() { + return cPathNamespaceIDTerminalRuleCall_0_0_1; + } - //"::" - public Keyword getColonColonKeyword_1() { return cColonColonKeyword_1; } + // '::' + public Keyword getColonColonKeyword_1() { + return cColonColonKeyword_1; + } - //remaining=QualifiedName? - public Assignment getRemainingAssignment_2() { return cRemainingAssignment_2; } + // remaining=QualifiedName? + public Assignment getRemainingAssignment_2() { + return cRemainingAssignment_2; + } - //QualifiedName - public RuleCall getRemainingQualifiedNameParserRuleCall_2_0() { return cRemainingQualifiedNameParserRuleCall_2_0; } + // QualifiedName + public RuleCall getRemainingQualifiedNameParserRuleCall_2_0() { + return cRemainingQualifiedNameParserRuleCall_2_0; + } } public class MultiplicityRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MultiplicityRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cBoundsAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cBoundsBoundSpecificationParserRuleCall_1_0 = (RuleCall)cBoundsAssignment_1.eContents().get(0); - private final Group cGroup_2 = (Group)cGroup.eContents().get(2); - private final Keyword cFullStopFullStopKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); - private final Assignment cBoundsAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); - private final RuleCall cBoundsBoundSpecificationParserRuleCall_2_1_0 = (RuleCall)cBoundsAssignment_2_1.eContents().get(0); - private final Keyword cRightSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3); - - //MultiplicityRule: - // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]"; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.MultiplicityRule"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Keyword cLeftSquareBracketKeyword_0 = (Keyword) cGroup.eContents().get(0); + private final Assignment cBoundsAssignment_1 = (Assignment) cGroup.eContents().get(1); + private final RuleCall cBoundsBoundSpecificationParserRuleCall_1_0 = (RuleCall) cBoundsAssignment_1.eContents().get(0); + private final Group cGroup_2 = (Group) cGroup.eContents().get(2); + private final Keyword cFullStopFullStopKeyword_2_0 = (Keyword) cGroup_2.eContents().get(0); + private final Assignment cBoundsAssignment_2_1 = (Assignment) cGroup_2.eContents().get(1); + private final RuleCall cBoundsBoundSpecificationParserRuleCall_2_1_0 = (RuleCall) cBoundsAssignment_2_1.eContents().get(0); + private final Keyword cRightSquareBracketKeyword_3 = (Keyword) cGroup.eContents().get(3); + + // MultiplicityRule: + // "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]"; + @Override + public ParserRule getRule() { + return rule; + } - //"[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]" - public Group getGroup() { return cGroup; } + // "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]" + public Group getGroup() { + return cGroup; + } - //"[" - public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; } + // "[" + public Keyword getLeftSquareBracketKeyword_0() { + return cLeftSquareBracketKeyword_0; + } - //bounds+=BoundSpecification - public Assignment getBoundsAssignment_1() { return cBoundsAssignment_1; } + // bounds+=BoundSpecification + public Assignment getBoundsAssignment_1() { + return cBoundsAssignment_1; + } - //BoundSpecification - public RuleCall getBoundsBoundSpecificationParserRuleCall_1_0() { return cBoundsBoundSpecificationParserRuleCall_1_0; } + // BoundSpecification + public RuleCall getBoundsBoundSpecificationParserRuleCall_1_0() { + return cBoundsBoundSpecificationParserRuleCall_1_0; + } - //(".." bounds+=BoundSpecification)? - public Group getGroup_2() { return cGroup_2; } + // ('..' bounds+=BoundSpecification)? + public Group getGroup_2() { + return cGroup_2; + } - //".." - public Keyword getFullStopFullStopKeyword_2_0() { return cFullStopFullStopKeyword_2_0; } + // '..' + public Keyword getFullStopFullStopKeyword_2_0() { + return cFullStopFullStopKeyword_2_0; + } - //bounds+=BoundSpecification - public Assignment getBoundsAssignment_2_1() { return cBoundsAssignment_2_1; } + // bounds+=BoundSpecification + public Assignment getBoundsAssignment_2_1() { + return cBoundsAssignment_2_1; + } - //BoundSpecification - public RuleCall getBoundsBoundSpecificationParserRuleCall_2_1_0() { return cBoundsBoundSpecificationParserRuleCall_2_1_0; } + // BoundSpecification + public RuleCall getBoundsBoundSpecificationParserRuleCall_2_1_0() { + return cBoundsBoundSpecificationParserRuleCall_2_1_0; + } - //"]" - public Keyword getRightSquareBracketKeyword_3() { return cRightSquareBracketKeyword_3; } + // "]" + public Keyword getRightSquareBracketKeyword_3() { + return cRightSquareBracketKeyword_3; + } } public class BoundSpecificationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BoundSpecification"); - private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1); - private final Alternatives cValueAlternatives_0 = (Alternatives)cValueAssignment.eContents().get(0); - private final RuleCall cValueUnlimitedLiteralParserRuleCall_0_0 = (RuleCall)cValueAlternatives_0.eContents().get(0); - private final RuleCall cValueStringLiteralParserRuleCall_0_1 = (RuleCall)cValueAlternatives_0.eContents().get(1); - - //BoundSpecification: - // value=(UnlimitedLiteral | StringLiteral); - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BoundSpecification"); + private final Assignment cValueAssignment = (Assignment) rule.eContents().get(1); + private final Alternatives cValueAlternatives_0 = (Alternatives) cValueAssignment.eContents().get(0); + private final RuleCall cValueUnlimitedLiteralParserRuleCall_0_0 = (RuleCall) cValueAlternatives_0.eContents().get(0); + private final RuleCall cValueStringLiteralParserRuleCall_0_1 = (RuleCall) cValueAlternatives_0.eContents().get(1); + + // BoundSpecification: + // value=(UnlimitedLiteral | StringLiteral); + @Override + public ParserRule getRule() { + return rule; + } - //value=(UnlimitedLiteral | StringLiteral) - public Assignment getValueAssignment() { return cValueAssignment; } + // value=(UnlimitedLiteral | StringLiteral) + public Assignment getValueAssignment() { + return cValueAssignment; + } - //UnlimitedLiteral | StringLiteral - public Alternatives getValueAlternatives_0() { return cValueAlternatives_0; } + // (UnlimitedLiteral | StringLiteral) + public Alternatives getValueAlternatives_0() { + return cValueAlternatives_0; + } - //UnlimitedLiteral - public RuleCall getValueUnlimitedLiteralParserRuleCall_0_0() { return cValueUnlimitedLiteralParserRuleCall_0_0; } + // UnlimitedLiteral + public RuleCall getValueUnlimitedLiteralParserRuleCall_0_0() { + return cValueUnlimitedLiteralParserRuleCall_0_0; + } - //StringLiteral - public RuleCall getValueStringLiteralParserRuleCall_0_1() { return cValueStringLiteralParserRuleCall_0_1; } + // StringLiteral + public RuleCall getValueStringLiteralParserRuleCall_0_1() { + return cValueStringLiteralParserRuleCall_0_1; + } } public class UnlimitedLiteralElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "UnlimitedLiteral"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cINTTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final Keyword cAsteriskKeyword_1 = (Keyword)cAlternatives.eContents().get(1); - - //UnlimitedLiteral: - // INT | "*"; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.UnlimitedLiteral"); + private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); + private final RuleCall cINTTerminalRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0); + private final Keyword cAsteriskKeyword_1 = (Keyword) cAlternatives.eContents().get(1); + + // UnlimitedLiteral: + // INT | '*'; + @Override + public ParserRule getRule() { + return rule; + } - //INT | "*" - public Alternatives getAlternatives() { return cAlternatives; } + // INT | '*' + public Alternatives getAlternatives() { + return cAlternatives; + } - //INT - public RuleCall getINTTerminalRuleCall_0() { return cINTTerminalRuleCall_0; } + // INT + public RuleCall getINTTerminalRuleCall_0() { + return cINTTerminalRuleCall_0; + } - //"*" - public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; } + // '*' + public Keyword getAsteriskKeyword_1() { + return cAsteriskKeyword_1; + } } public class StringLiteralElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringLiteral"); - private final RuleCall cSTRINGTerminalRuleCall = (RuleCall)rule.eContents().get(1); - - //StringLiteral: - // STRING; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.StringLiteral"); + private final RuleCall cSTRINGTerminalRuleCall = (RuleCall) rule.eContents().get(1); + + // StringLiteral: + // STRING; + @Override + public ParserRule getRule() { + return rule; + } - //STRING - public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; } + // STRING + public RuleCall getSTRINGTerminalRuleCall() { + return cSTRINGTerminalRuleCall; + } } public class ModifiersRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifiersRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Action cModifiersRuleAction_0 = (Action)cGroup.eContents().get(0); - private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Group cGroup_2 = (Group)cGroup.eContents().get(2); - private final Assignment cValuesAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0); - private final RuleCall cValuesModifierSpecificationParserRuleCall_2_0_0 = (RuleCall)cValuesAssignment_2_0.eContents().get(0); - private final Group cGroup_2_1 = (Group)cGroup_2.eContents().get(1); - private final Keyword cCommaKeyword_2_1_0 = (Keyword)cGroup_2_1.eContents().get(0); - private final Assignment cValuesAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1); - private final RuleCall cValuesModifierSpecificationParserRuleCall_2_1_1_0 = (RuleCall)cValuesAssignment_2_1_1.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3); - - //ModifiersRule: - // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}"; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifiersRule"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Action cModifiersRuleAction_0 = (Action) cGroup.eContents().get(0); + private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) cGroup.eContents().get(1); + private final Group cGroup_2 = (Group) cGroup.eContents().get(2); + private final Assignment cValuesAssignment_2_0 = (Assignment) cGroup_2.eContents().get(0); + private final RuleCall cValuesModifierSpecificationParserRuleCall_2_0_0 = (RuleCall) cValuesAssignment_2_0.eContents().get(0); + private final Group cGroup_2_1 = (Group) cGroup_2.eContents().get(1); + private final Keyword cCommaKeyword_2_1_0 = (Keyword) cGroup_2_1.eContents().get(0); + private final Assignment cValuesAssignment_2_1_1 = (Assignment) cGroup_2_1.eContents().get(1); + private final RuleCall cValuesModifierSpecificationParserRuleCall_2_1_1_0 = (RuleCall) cValuesAssignment_2_1_1.eContents().get(0); + private final Keyword cRightCurlyBracketKeyword_3 = (Keyword) cGroup.eContents().get(3); + + // ModifiersRule: + // {ModifiersRule} '{' (values+=ModifierSpecification (',' values+=ModifierSpecification)*)? '}'; + @Override + public ParserRule getRule() { + return rule; + } - //{ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}" - public Group getGroup() { return cGroup; } + // {ModifiersRule} '{' (values+=ModifierSpecification (',' values+=ModifierSpecification)*)? '}' + public Group getGroup() { + return cGroup; + } - //{ModifiersRule} - public Action getModifiersRuleAction_0() { return cModifiersRuleAction_0; } + // {ModifiersRule} + public Action getModifiersRuleAction_0() { + return cModifiersRuleAction_0; + } - //"{" - public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; } + // '{' + public Keyword getLeftCurlyBracketKeyword_1() { + return cLeftCurlyBracketKeyword_1; + } - //(values+=ModifierSpecification ("," values+=ModifierSpecification)*)? - public Group getGroup_2() { return cGroup_2; } + // (values+=ModifierSpecification (',' values+=ModifierSpecification)*)? + public Group getGroup_2() { + return cGroup_2; + } - //values+=ModifierSpecification - public Assignment getValuesAssignment_2_0() { return cValuesAssignment_2_0; } + // values+=ModifierSpecification + public Assignment getValuesAssignment_2_0() { + return cValuesAssignment_2_0; + } - //ModifierSpecification - public RuleCall getValuesModifierSpecificationParserRuleCall_2_0_0() { return cValuesModifierSpecificationParserRuleCall_2_0_0; } + // ModifierSpecification + public RuleCall getValuesModifierSpecificationParserRuleCall_2_0_0() { + return cValuesModifierSpecificationParserRuleCall_2_0_0; + } - //("," values+=ModifierSpecification)* - public Group getGroup_2_1() { return cGroup_2_1; } + // (',' values+=ModifierSpecification)* + public Group getGroup_2_1() { + return cGroup_2_1; + } - //"," - public Keyword getCommaKeyword_2_1_0() { return cCommaKeyword_2_1_0; } + // ',' + public Keyword getCommaKeyword_2_1_0() { + return cCommaKeyword_2_1_0; + } - //values+=ModifierSpecification - public Assignment getValuesAssignment_2_1_1() { return cValuesAssignment_2_1_1; } + // values+=ModifierSpecification + public Assignment getValuesAssignment_2_1_1() { + return cValuesAssignment_2_1_1; + } - //ModifierSpecification - public RuleCall getValuesModifierSpecificationParserRuleCall_2_1_1_0() { return cValuesModifierSpecificationParserRuleCall_2_1_1_0; } + // ModifierSpecification + public RuleCall getValuesModifierSpecificationParserRuleCall_2_1_1_0() { + return cValuesModifierSpecificationParserRuleCall_2_1_1_0; + } - //"}" - public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; } + // '}' + public Keyword getRightCurlyBracketKeyword_3() { + return cRightCurlyBracketKeyword_3; + } } public class ModifierSpecificationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierSpecification"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final Assignment cValueAssignment_0 = (Assignment)cAlternatives.eContents().get(0); - private final RuleCall cValueModifierKindEnumRuleCall_0_0 = (RuleCall)cValueAssignment_0.eContents().get(0); - private final Assignment cRedefinesAssignment_1 = (Assignment)cAlternatives.eContents().get(1); - private final RuleCall cRedefinesRedefinesRuleParserRuleCall_1_0 = (RuleCall)cRedefinesAssignment_1.eContents().get(0); - private final Assignment cSubsetsAssignment_2 = (Assignment)cAlternatives.eContents().get(2); - private final RuleCall cSubsetsSubsetsRuleParserRuleCall_2_0 = (RuleCall)cSubsetsAssignment_2.eContents().get(0); - - //ModifierSpecification: - // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierSpecification"); + private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); + private final Assignment cValueAssignment_0 = (Assignment) cAlternatives.eContents().get(0); + private final RuleCall cValueModifierKindEnumRuleCall_0_0 = (RuleCall) cValueAssignment_0.eContents().get(0); + private final Assignment cRedefinesAssignment_1 = (Assignment) cAlternatives.eContents().get(1); + private final RuleCall cRedefinesRedefinesRuleParserRuleCall_1_0 = (RuleCall) cRedefinesAssignment_1.eContents().get(0); + private final Assignment cSubsetsAssignment_2 = (Assignment) cAlternatives.eContents().get(2); + private final RuleCall cSubsetsSubsetsRuleParserRuleCall_2_0 = (RuleCall) cSubsetsAssignment_2.eContents().get(0); + + // ModifierSpecification: + // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule; + @Override + public ParserRule getRule() { + return rule; + } - //value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule - public Alternatives getAlternatives() { return cAlternatives; } + // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule + public Alternatives getAlternatives() { + return cAlternatives; + } - //value=ModifierKind - public Assignment getValueAssignment_0() { return cValueAssignment_0; } + // value=ModifierKind + public Assignment getValueAssignment_0() { + return cValueAssignment_0; + } - //ModifierKind - public RuleCall getValueModifierKindEnumRuleCall_0_0() { return cValueModifierKindEnumRuleCall_0_0; } + // ModifierKind + public RuleCall getValueModifierKindEnumRuleCall_0_0() { + return cValueModifierKindEnumRuleCall_0_0; + } - //redefines=RedefinesRule - public Assignment getRedefinesAssignment_1() { return cRedefinesAssignment_1; } + // redefines=RedefinesRule + public Assignment getRedefinesAssignment_1() { + return cRedefinesAssignment_1; + } - //RedefinesRule - public RuleCall getRedefinesRedefinesRuleParserRuleCall_1_0() { return cRedefinesRedefinesRuleParserRuleCall_1_0; } + // RedefinesRule + public RuleCall getRedefinesRedefinesRuleParserRuleCall_1_0() { + return cRedefinesRedefinesRuleParserRuleCall_1_0; + } - //subsets=SubsetsRule - public Assignment getSubsetsAssignment_2() { return cSubsetsAssignment_2; } + // subsets=SubsetsRule + public Assignment getSubsetsAssignment_2() { + return cSubsetsAssignment_2; + } - //SubsetsRule - public RuleCall getSubsetsSubsetsRuleParserRuleCall_2_0() { return cSubsetsSubsetsRuleParserRuleCall_2_0; } + // SubsetsRule + public RuleCall getSubsetsSubsetsRuleParserRuleCall_2_0() { + return cSubsetsSubsetsRuleParserRuleCall_2_0; + } } public class RedefinesRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RedefinesRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cRedefinesKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cPropertyAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference)cPropertyAssignment_1.eContents().get(0); - private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall)cPropertyPropertyCrossReference_1_0.eContents().get(1); - - //RedefinesRule: - // "redefines" property=[uml::Property]; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.RedefinesRule"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Keyword cRedefinesKeyword_0 = (Keyword) cGroup.eContents().get(0); + private final Assignment cPropertyAssignment_1 = (Assignment) cGroup.eContents().get(1); + private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference) cPropertyAssignment_1.eContents().get(0); + private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall) cPropertyPropertyCrossReference_1_0.eContents().get(1); + + // RedefinesRule: + // 'redefines' property=[uml::Property]; + @Override + public ParserRule getRule() { + return rule; + } - //"redefines" property=[uml::Property] - public Group getGroup() { return cGroup; } + // 'redefines' property=[uml::Property] + public Group getGroup() { + return cGroup; + } - //"redefines" - public Keyword getRedefinesKeyword_0() { return cRedefinesKeyword_0; } + // 'redefines' + public Keyword getRedefinesKeyword_0() { + return cRedefinesKeyword_0; + } - //property=[uml::Property] - public Assignment getPropertyAssignment_1() { return cPropertyAssignment_1; } + // property=[uml::Property] + public Assignment getPropertyAssignment_1() { + return cPropertyAssignment_1; + } - //[uml::Property] - public CrossReference getPropertyPropertyCrossReference_1_0() { return cPropertyPropertyCrossReference_1_0; } + // [uml::Property] + public CrossReference getPropertyPropertyCrossReference_1_0() { + return cPropertyPropertyCrossReference_1_0; + } - //ID - public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() { return cPropertyPropertyIDTerminalRuleCall_1_0_1; } + // ID + public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() { + return cPropertyPropertyIDTerminalRuleCall_1_0_1; + } } public class SubsetsRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SubsetsRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cSubsetsKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cPropertyAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference)cPropertyAssignment_1.eContents().get(0); - private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall)cPropertyPropertyCrossReference_1_0.eContents().get(1); - - //SubsetsRule: - // "subsets" property=[uml::Property]; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.SubsetsRule"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Keyword cSubsetsKeyword_0 = (Keyword) cGroup.eContents().get(0); + private final Assignment cPropertyAssignment_1 = (Assignment) cGroup.eContents().get(1); + private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference) cPropertyAssignment_1.eContents().get(0); + private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall) cPropertyPropertyCrossReference_1_0.eContents().get(1); + + // SubsetsRule: + // 'subsets' property=[uml::Property]; + @Override + public ParserRule getRule() { + return rule; + } - //"subsets" property=[uml::Property] - public Group getGroup() { return cGroup; } + // 'subsets' property=[uml::Property] + public Group getGroup() { + return cGroup; + } - //"subsets" - public Keyword getSubsetsKeyword_0() { return cSubsetsKeyword_0; } + // 'subsets' + public Keyword getSubsetsKeyword_0() { + return cSubsetsKeyword_0; + } - //property=[uml::Property] - public Assignment getPropertyAssignment_1() { return cPropertyAssignment_1; } + // property=[uml::Property] + public Assignment getPropertyAssignment_1() { + return cPropertyAssignment_1; + } - //[uml::Property] - public CrossReference getPropertyPropertyCrossReference_1_0() { return cPropertyPropertyCrossReference_1_0; } + // [uml::Property] + public CrossReference getPropertyPropertyCrossReference_1_0() { + return cPropertyPropertyCrossReference_1_0; + } - //ID - public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() { return cPropertyPropertyIDTerminalRuleCall_1_0_1; } + // ID + public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() { + return cPropertyPropertyIDTerminalRuleCall_1_0_1; + } } public class DefaultValueRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DefaultValueRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cEqualsSignKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cDefaultAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cDefaultValueParserRuleCall_1_0 = (RuleCall)cDefaultAssignment_1.eContents().get(0); - - //DefaultValueRule: - // "=" default=Value; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.DefaultValueRule"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Keyword cEqualsSignKeyword_0 = (Keyword) cGroup.eContents().get(0); + private final Assignment cDefaultAssignment_1 = (Assignment) cGroup.eContents().get(1); + private final RuleCall cDefaultValueParserRuleCall_1_0 = (RuleCall) cDefaultAssignment_1.eContents().get(0); + + // DefaultValueRule: + // '=' default=Value; + @Override + public ParserRule getRule() { + return rule; + } - //"=" default=Value - public Group getGroup() { return cGroup; } + // '=' default=Value + public Group getGroup() { + return cGroup; + } - //"=" - public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; } + // '=' + public Keyword getEqualsSignKeyword_0() { + return cEqualsSignKeyword_0; + } - //default=Value - public Assignment getDefaultAssignment_1() { return cDefaultAssignment_1; } + // default=Value + public Assignment getDefaultAssignment_1() { + return cDefaultAssignment_1; + } - //Value - public RuleCall getDefaultValueParserRuleCall_1_0() { return cDefaultValueParserRuleCall_1_0; } + // Value + public RuleCall getDefaultValueParserRuleCall_1_0() { + return cDefaultValueParserRuleCall_1_0; + } } public class ValueElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Value"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cIntValueParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cStringValueParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - private final RuleCall cBooleanValueParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); - private final RuleCall cRealValueParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3); - private final RuleCall cNullValueParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4); - private final RuleCall cNoValueParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5); - - //Value: - // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.Value"); + private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); + private final RuleCall cIntValueParserRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0); + private final RuleCall cStringValueParserRuleCall_1 = (RuleCall) cAlternatives.eContents().get(1); + private final RuleCall cBooleanValueParserRuleCall_2 = (RuleCall) cAlternatives.eContents().get(2); + private final RuleCall cRealValueParserRuleCall_3 = (RuleCall) cAlternatives.eContents().get(3); + private final RuleCall cNullValueParserRuleCall_4 = (RuleCall) cAlternatives.eContents().get(4); + private final RuleCall cNoValueParserRuleCall_5 = (RuleCall) cAlternatives.eContents().get(5); + + // Value: + // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue; + @Override + public ParserRule getRule() { + return rule; + } - //IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue - public Alternatives getAlternatives() { return cAlternatives; } + // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue + public Alternatives getAlternatives() { + return cAlternatives; + } - //IntValue - public RuleCall getIntValueParserRuleCall_0() { return cIntValueParserRuleCall_0; } + // IntValue + public RuleCall getIntValueParserRuleCall_0() { + return cIntValueParserRuleCall_0; + } - //StringValue - public RuleCall getStringValueParserRuleCall_1() { return cStringValueParserRuleCall_1; } + // StringValue + public RuleCall getStringValueParserRuleCall_1() { + return cStringValueParserRuleCall_1; + } - //BooleanValue - public RuleCall getBooleanValueParserRuleCall_2() { return cBooleanValueParserRuleCall_2; } + // BooleanValue + public RuleCall getBooleanValueParserRuleCall_2() { + return cBooleanValueParserRuleCall_2; + } - //RealValue - public RuleCall getRealValueParserRuleCall_3() { return cRealValueParserRuleCall_3; } + // RealValue + public RuleCall getRealValueParserRuleCall_3() { + return cRealValueParserRuleCall_3; + } - //NullValue - public RuleCall getNullValueParserRuleCall_4() { return cNullValueParserRuleCall_4; } + // NullValue + public RuleCall getNullValueParserRuleCall_4() { + return cNullValueParserRuleCall_4; + } - //NoValue - public RuleCall getNoValueParserRuleCall_5() { return cNoValueParserRuleCall_5; } + // NoValue + public RuleCall getNoValueParserRuleCall_5() { + return cNoValueParserRuleCall_5; + } } public class IntValueElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "IntValue"); - private final Assignment cLiteralIntegerAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cLiteralIntegerINTTerminalRuleCall_0 = (RuleCall)cLiteralIntegerAssignment.eContents().get(0); - - //IntValue: - // literalInteger=INT; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.IntValue"); + private final Assignment cLiteralIntegerAssignment = (Assignment) rule.eContents().get(1); + private final RuleCall cLiteralIntegerINTTerminalRuleCall_0 = (RuleCall) cLiteralIntegerAssignment.eContents().get(0); + + // IntValue: + // literalInteger=INT; + @Override + public ParserRule getRule() { + return rule; + } - //literalInteger=INT - public Assignment getLiteralIntegerAssignment() { return cLiteralIntegerAssignment; } + // literalInteger=INT + public Assignment getLiteralIntegerAssignment() { + return cLiteralIntegerAssignment; + } - //INT - public RuleCall getLiteralIntegerINTTerminalRuleCall_0() { return cLiteralIntegerINTTerminalRuleCall_0; } + // INT + public RuleCall getLiteralIntegerINTTerminalRuleCall_0() { + return cLiteralIntegerINTTerminalRuleCall_0; + } } public class StringValueElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringValue"); - private final Assignment cLiteralStringAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cLiteralStringSTRINGTerminalRuleCall_0 = (RuleCall)cLiteralStringAssignment.eContents().get(0); - - //StringValue: - // literalString=STRING; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.StringValue"); + private final Assignment cLiteralStringAssignment = (Assignment) rule.eContents().get(1); + private final RuleCall cLiteralStringSTRINGTerminalRuleCall_0 = (RuleCall) cLiteralStringAssignment.eContents().get(0); + + // StringValue: + // literalString=STRING; + @Override + public ParserRule getRule() { + return rule; + } - //literalString=STRING - public Assignment getLiteralStringAssignment() { return cLiteralStringAssignment; } + // literalString=STRING + public Assignment getLiteralStringAssignment() { + return cLiteralStringAssignment; + } - //STRING - public RuleCall getLiteralStringSTRINGTerminalRuleCall_0() { return cLiteralStringSTRINGTerminalRuleCall_0; } + // STRING + public RuleCall getLiteralStringSTRINGTerminalRuleCall_0() { + return cLiteralStringSTRINGTerminalRuleCall_0; + } } public class BooleanValueElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanValue"); - private final Assignment cLiteralBooleanAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cLiteralBooleanBooleanLiteralsEnumRuleCall_0 = (RuleCall)cLiteralBooleanAssignment.eContents().get(0); - - //BooleanValue: - // literalBoolean=BooleanLiterals; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BooleanValue"); + private final Assignment cLiteralBooleanAssignment = (Assignment) rule.eContents().get(1); + private final RuleCall cLiteralBooleanBooleanLiteralsEnumRuleCall_0 = (RuleCall) cLiteralBooleanAssignment.eContents().get(0); + + // BooleanValue: + // literalBoolean=BooleanLiterals; + @Override + public ParserRule getRule() { + return rule; + } - //literalBoolean=BooleanLiterals - public Assignment getLiteralBooleanAssignment() { return cLiteralBooleanAssignment; } + // literalBoolean=BooleanLiterals + public Assignment getLiteralBooleanAssignment() { + return cLiteralBooleanAssignment; + } - //BooleanLiterals - public RuleCall getLiteralBooleanBooleanLiteralsEnumRuleCall_0() { return cLiteralBooleanBooleanLiteralsEnumRuleCall_0; } + // BooleanLiterals + public RuleCall getLiteralBooleanBooleanLiteralsEnumRuleCall_0() { + return cLiteralBooleanBooleanLiteralsEnumRuleCall_0; + } } public class RealValueElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RealValue"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0); - private final Assignment cIntegerAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0); - private final RuleCall cIntegerINTTerminalRuleCall_0_0_0 = (RuleCall)cIntegerAssignment_0_0.eContents().get(0); - private final Keyword cFullStopKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1); - private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1); - private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); - private final Assignment cFractionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1); - private final RuleCall cFractionINTTerminalRuleCall_1_1_0 = (RuleCall)cFractionAssignment_1_1.eContents().get(0); - private final Group cGroup_2 = (Group)cAlternatives.eContents().get(2); - private final Assignment cIntegerAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0); - private final RuleCall cIntegerINTTerminalRuleCall_2_0_0 = (RuleCall)cIntegerAssignment_2_0.eContents().get(0); - private final Keyword cFullStopKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1); - private final Assignment cFractionAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2); - private final RuleCall cFractionINTTerminalRuleCall_2_2_0 = (RuleCall)cFractionAssignment_2_2.eContents().get(0); - - ////TODO: Support all Java-compliant doubles - //RealValue: - // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.RealValue"); + private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); + private final Group cGroup_0 = (Group) cAlternatives.eContents().get(0); + private final Assignment cIntegerAssignment_0_0 = (Assignment) cGroup_0.eContents().get(0); + private final RuleCall cIntegerINTTerminalRuleCall_0_0_0 = (RuleCall) cIntegerAssignment_0_0.eContents().get(0); + private final Keyword cFullStopKeyword_0_1 = (Keyword) cGroup_0.eContents().get(1); + private final Group cGroup_1 = (Group) cAlternatives.eContents().get(1); + private final Keyword cFullStopKeyword_1_0 = (Keyword) cGroup_1.eContents().get(0); + private final Assignment cFractionAssignment_1_1 = (Assignment) cGroup_1.eContents().get(1); + private final RuleCall cFractionINTTerminalRuleCall_1_1_0 = (RuleCall) cFractionAssignment_1_1.eContents().get(0); + private final Group cGroup_2 = (Group) cAlternatives.eContents().get(2); + private final Assignment cIntegerAssignment_2_0 = (Assignment) cGroup_2.eContents().get(0); + private final RuleCall cIntegerINTTerminalRuleCall_2_0_0 = (RuleCall) cIntegerAssignment_2_0.eContents().get(0); + private final Keyword cFullStopKeyword_2_1 = (Keyword) cGroup_2.eContents().get(1); + private final Assignment cFractionAssignment_2_2 = (Assignment) cGroup_2.eContents().get(2); + private final RuleCall cFractionINTTerminalRuleCall_2_2_0 = (RuleCall) cFractionAssignment_2_2.eContents().get(0); + + //// TODO: Support all Java-compliant doubles + // RealValue: + // integer=INT '.' | '.' fraction=INT | integer=INT "." fraction=INT; + @Override + public ParserRule getRule() { + return rule; + } - //integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT - public Alternatives getAlternatives() { return cAlternatives; } + // integer=INT '.' | '.' fraction=INT | integer=INT "." fraction=INT + public Alternatives getAlternatives() { + return cAlternatives; + } - //integer=INT "." - public Group getGroup_0() { return cGroup_0; } + // integer=INT '.' + public Group getGroup_0() { + return cGroup_0; + } - //integer=INT - public Assignment getIntegerAssignment_0_0() { return cIntegerAssignment_0_0; } + // integer=INT + public Assignment getIntegerAssignment_0_0() { + return cIntegerAssignment_0_0; + } - //INT - public RuleCall getIntegerINTTerminalRuleCall_0_0_0() { return cIntegerINTTerminalRuleCall_0_0_0; } + // INT + public RuleCall getIntegerINTTerminalRuleCall_0_0_0() { + return cIntegerINTTerminalRuleCall_0_0_0; + } - //"." - public Keyword getFullStopKeyword_0_1() { return cFullStopKeyword_0_1; } + // '.' + public Keyword getFullStopKeyword_0_1() { + return cFullStopKeyword_0_1; + } - //"." fraction=INT - public Group getGroup_1() { return cGroup_1; } + // '.' fraction=INT + public Group getGroup_1() { + return cGroup_1; + } - //"." - public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } + // '.' + public Keyword getFullStopKeyword_1_0() { + return cFullStopKeyword_1_0; + } - //fraction=INT - public Assignment getFractionAssignment_1_1() { return cFractionAssignment_1_1; } + // fraction=INT + public Assignment getFractionAssignment_1_1() { + return cFractionAssignment_1_1; + } - //INT - public RuleCall getFractionINTTerminalRuleCall_1_1_0() { return cFractionINTTerminalRuleCall_1_1_0; } + // INT + public RuleCall getFractionINTTerminalRuleCall_1_1_0() { + return cFractionINTTerminalRuleCall_1_1_0; + } - //integer=INT "." fraction=INT - public Group getGroup_2() { return cGroup_2; } + // integer=INT "." fraction=INT + public Group getGroup_2() { + return cGroup_2; + } - //integer=INT - public Assignment getIntegerAssignment_2_0() { return cIntegerAssignment_2_0; } + // integer=INT + public Assignment getIntegerAssignment_2_0() { + return cIntegerAssignment_2_0; + } - //INT - public RuleCall getIntegerINTTerminalRuleCall_2_0_0() { return cIntegerINTTerminalRuleCall_2_0_0; } + // INT + public RuleCall getIntegerINTTerminalRuleCall_2_0_0() { + return cIntegerINTTerminalRuleCall_2_0_0; + } - //"." - public Keyword getFullStopKeyword_2_1() { return cFullStopKeyword_2_1; } + // "." + public Keyword getFullStopKeyword_2_1() { + return cFullStopKeyword_2_1; + } - //fraction=INT - public Assignment getFractionAssignment_2_2() { return cFractionAssignment_2_2; } + // fraction=INT + public Assignment getFractionAssignment_2_2() { + return cFractionAssignment_2_2; + } - //INT - public RuleCall getFractionINTTerminalRuleCall_2_2_0() { return cFractionINTTerminalRuleCall_2_2_0; } + // INT + public RuleCall getFractionINTTerminalRuleCall_2_2_0() { + return cFractionINTTerminalRuleCall_2_2_0; + } } public class NullValueElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NullValue"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Action cNullValueAction_0 = (Action)cGroup.eContents().get(0); - private final Keyword cNullKeyword_1 = (Keyword)cGroup.eContents().get(1); - - //NullValue: - // {NullValue} "null"; - @Override public ParserRule getRule() { return rule; } + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.NullValue"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Action cNullValueAction_0 = (Action) cGroup.eContents().get(0); + private final Keyword cNullKeyword_1 = (Keyword) cGroup.eContents().get(1); + + // NullValue: + // {NullValue} 'null'; + @Override + public ParserRule getRule() { + return rule; + } - //{NullValue} "null" - public Group getGroup() { return cGroup; } + // {NullValue} 'null' + public Group getGroup() { + return cGroup; + } - //{NullValue} - public Action getNullValueAction_0() { return cNullValueAction_0; } + // {NullValue} + public Action getNullValueAction_0() { + return cNullValueAction_0; + } - //"null" - public Keyword getNullKeyword_1() { return cNullKeyword_1; } + // 'null' + public Keyword getNullKeyword_1() { + return cNullKeyword_1; + } } public class NoValueElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NoValue"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Action cNoValueAction_0 = (Action)cGroup.eContents().get(0); - private final Keyword cNoneKeyword_1 = (Keyword)cGroup.eContents().get(1); - - //NoValue: - // {NoValue} "none"; - @Override public ParserRule getRule() { return rule; } - - //{NoValue} "none" - public Group getGroup() { return cGroup; } - - //{NoValue} - public Action getNoValueAction_0() { return cNoValueAction_0; } - - //"none" - public Keyword getNoneKeyword_1() { return cNoneKeyword_1; } - } - - + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.NoValue"); + private final Group cGroup = (Group) rule.eContents().get(1); + private final Action cNoValueAction_0 = (Action) cGroup.eContents().get(0); + private final Keyword cNoneKeyword_1 = (Keyword) cGroup.eContents().get(1); + + // NoValue: + // {NoValue} 'none'; + @Override + public ParserRule getRule() { + return rule; + } + + // {NoValue} 'none' + public Group getGroup() { + return cGroup; + } + + // {NoValue} + public Action getNoValueAction_0() { + return cNoValueAction_0; + } + + // 'none' + public Keyword getNoneKeyword_1() { + return cNoneKeyword_1; + } + } + + public class VisibilityKindElements extends AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityKind"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cPublicEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cPublicPlusSignKeyword_0_0 = (Keyword)cPublicEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cPrivateEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cPrivateHyphenMinusKeyword_1_0 = (Keyword)cPrivateEnumLiteralDeclaration_1.eContents().get(0); - private final EnumLiteralDeclaration cProtectedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2); - private final Keyword cProtectedNumberSignKeyword_2_0 = (Keyword)cProtectedEnumLiteralDeclaration_2.eContents().get(0); - private final EnumLiteralDeclaration cPackageEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3); - private final Keyword cPackageTildeKeyword_3_0 = (Keyword)cPackageEnumLiteralDeclaration_3.eContents().get(0); - - //enum VisibilityKind: - // public="+" | private="-" | protected="#" | package="~"; - public EnumRule getRule() { return rule; } + private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.VisibilityKind"); + private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); + private final EnumLiteralDeclaration cPublicEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0); + private final Keyword cPublicPlusSignKeyword_0_0 = (Keyword) cPublicEnumLiteralDeclaration_0.eContents().get(0); + private final EnumLiteralDeclaration cPrivateEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1); + private final Keyword cPrivateHyphenMinusKeyword_1_0 = (Keyword) cPrivateEnumLiteralDeclaration_1.eContents().get(0); + private final EnumLiteralDeclaration cProtectedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration) cAlternatives.eContents().get(2); + private final Keyword cProtectedNumberSignKeyword_2_0 = (Keyword) cProtectedEnumLiteralDeclaration_2.eContents().get(0); + private final EnumLiteralDeclaration cPackageEnumLiteralDeclaration_3 = (EnumLiteralDeclaration) cAlternatives.eContents().get(3); + private final Keyword cPackageTildeKeyword_3_0 = (Keyword) cPackageEnumLiteralDeclaration_3.eContents().get(0); + + // enum VisibilityKind: + // public="+" | private="-" | protected="#" | package="~"; + public EnumRule getRule() { + return rule; + } - //public="+" | private="-" | protected="#" | package="~" - public Alternatives getAlternatives() { return cAlternatives; } + // public="+" | private="-" | protected="#" | package="~" + public Alternatives getAlternatives() { + return cAlternatives; + } - //public="+" - public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_0() { return cPublicEnumLiteralDeclaration_0; } + // public="+" + public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_0() { + return cPublicEnumLiteralDeclaration_0; + } - //"+" - public Keyword getPublicPlusSignKeyword_0_0() { return cPublicPlusSignKeyword_0_0; } + // "+" + public Keyword getPublicPlusSignKeyword_0_0() { + return cPublicPlusSignKeyword_0_0; + } - //private="-" - public EnumLiteralDeclaration getPrivateEnumLiteralDeclaration_1() { return cPrivateEnumLiteralDeclaration_1; } + // private="-" + public EnumLiteralDeclaration getPrivateEnumLiteralDeclaration_1() { + return cPrivateEnumLiteralDeclaration_1; + } - //"-" - public Keyword getPrivateHyphenMinusKeyword_1_0() { return cPrivateHyphenMinusKeyword_1_0; } + // "-" + public Keyword getPrivateHyphenMinusKeyword_1_0() { + return cPrivateHyphenMinusKeyword_1_0; + } - //protected="#" - public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_2() { return cProtectedEnumLiteralDeclaration_2; } + // protected="#" + public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_2() { + return cProtectedEnumLiteralDeclaration_2; + } - //"#" - public Keyword getProtectedNumberSignKeyword_2_0() { return cProtectedNumberSignKeyword_2_0; } + // "#" + public Keyword getProtectedNumberSignKeyword_2_0() { + return cProtectedNumberSignKeyword_2_0; + } - //package="~" - public EnumLiteralDeclaration getPackageEnumLiteralDeclaration_3() { return cPackageEnumLiteralDeclaration_3; } + // package="~" + public EnumLiteralDeclaration getPackageEnumLiteralDeclaration_3() { + return cPackageEnumLiteralDeclaration_3; + } - //"~" - public Keyword getPackageTildeKeyword_3_0() { return cPackageTildeKeyword_3_0; } + // "~" + public Keyword getPackageTildeKeyword_3_0() { + return cPackageTildeKeyword_3_0; + } } public class ModifierKindElements extends AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierKind"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cReadOnlyEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cReadOnlyReadOnlyKeyword_0_0 = (Keyword)cReadOnlyEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cUnionEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cUnionUnionKeyword_1_0 = (Keyword)cUnionEnumLiteralDeclaration_1.eContents().get(0); - private final EnumLiteralDeclaration cOrderedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2); - private final Keyword cOrderedOrderedKeyword_2_0 = (Keyword)cOrderedEnumLiteralDeclaration_2.eContents().get(0); - private final EnumLiteralDeclaration cUniqueEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3); - private final Keyword cUniqueUniqueKeyword_3_0 = (Keyword)cUniqueEnumLiteralDeclaration_3.eContents().get(0); - - //enum ModifierKind: - // readOnly | union | ordered | unique; - public EnumRule getRule() { return rule; } + private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.ModifierKind"); + private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); + private final EnumLiteralDeclaration cReadOnlyEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0); + private final Keyword cReadOnlyReadOnlyKeyword_0_0 = (Keyword) cReadOnlyEnumLiteralDeclaration_0.eContents().get(0); + private final EnumLiteralDeclaration cUnionEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1); + private final Keyword cUnionUnionKeyword_1_0 = (Keyword) cUnionEnumLiteralDeclaration_1.eContents().get(0); + private final EnumLiteralDeclaration cOrderedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration) cAlternatives.eContents().get(2); + private final Keyword cOrderedOrderedKeyword_2_0 = (Keyword) cOrderedEnumLiteralDeclaration_2.eContents().get(0); + private final EnumLiteralDeclaration cUniqueEnumLiteralDeclaration_3 = (EnumLiteralDeclaration) cAlternatives.eContents().get(3); + private final Keyword cUniqueUniqueKeyword_3_0 = (Keyword) cUniqueEnumLiteralDeclaration_3.eContents().get(0); + + // enum ModifierKind: + // readOnly | union | ordered | unique; + public EnumRule getRule() { + return rule; + } - //readOnly | union | ordered | unique - public Alternatives getAlternatives() { return cAlternatives; } + // readOnly | union | ordered | unique + public Alternatives getAlternatives() { + return cAlternatives; + } - //readOnly - public EnumLiteralDeclaration getReadOnlyEnumLiteralDeclaration_0() { return cReadOnlyEnumLiteralDeclaration_0; } + // readOnly + public EnumLiteralDeclaration getReadOnlyEnumLiteralDeclaration_0() { + return cReadOnlyEnumLiteralDeclaration_0; + } - //"readOnly" - public Keyword getReadOnlyReadOnlyKeyword_0_0() { return cReadOnlyReadOnlyKeyword_0_0; } + // "readOnly" + public Keyword getReadOnlyReadOnlyKeyword_0_0() { + return cReadOnlyReadOnlyKeyword_0_0; + } - //union - public EnumLiteralDeclaration getUnionEnumLiteralDeclaration_1() { return cUnionEnumLiteralDeclaration_1; } + // union + public EnumLiteralDeclaration getUnionEnumLiteralDeclaration_1() { + return cUnionEnumLiteralDeclaration_1; + } - //"union" - public Keyword getUnionUnionKeyword_1_0() { return cUnionUnionKeyword_1_0; } + // "union" + public Keyword getUnionUnionKeyword_1_0() { + return cUnionUnionKeyword_1_0; + } - //ordered - public EnumLiteralDeclaration getOrderedEnumLiteralDeclaration_2() { return cOrderedEnumLiteralDeclaration_2; } + // ordered + public EnumLiteralDeclaration getOrderedEnumLiteralDeclaration_2() { + return cOrderedEnumLiteralDeclaration_2; + } - //"ordered" - public Keyword getOrderedOrderedKeyword_2_0() { return cOrderedOrderedKeyword_2_0; } + // "ordered" + public Keyword getOrderedOrderedKeyword_2_0() { + return cOrderedOrderedKeyword_2_0; + } - //unique - public EnumLiteralDeclaration getUniqueEnumLiteralDeclaration_3() { return cUniqueEnumLiteralDeclaration_3; } + // unique + public EnumLiteralDeclaration getUniqueEnumLiteralDeclaration_3() { + return cUniqueEnumLiteralDeclaration_3; + } - //"unique" - public Keyword getUniqueUniqueKeyword_3_0() { return cUniqueUniqueKeyword_3_0; } + // "unique" + public Keyword getUniqueUniqueKeyword_3_0() { + return cUniqueUniqueKeyword_3_0; + } } public class BooleanLiteralsElements extends AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanLiterals"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cTrueEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cTrueTrueKeyword_0_0 = (Keyword)cTrueEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cFalseEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cFalseFalseKeyword_1_0 = (Keyword)cFalseEnumLiteralDeclaration_1.eContents().get(0); - - //enum BooleanLiterals: - // true | false; - public EnumRule getRule() { return rule; } + private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty.BooleanLiterals"); + private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); + private final EnumLiteralDeclaration cTRUEEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0); + private final Keyword cTRUETrueKeyword_0_0 = (Keyword) cTRUEEnumLiteralDeclaration_0.eContents().get(0); + private final EnumLiteralDeclaration cFALSEEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1); + private final Keyword cFALSEFalseKeyword_1_0 = (Keyword) cFALSEEnumLiteralDeclaration_1.eContents().get(0); + + // enum BooleanLiterals: + // TRUE="true" | FALSE="false"; + public EnumRule getRule() { + return rule; + } - //true | false - public Alternatives getAlternatives() { return cAlternatives; } + // TRUE="true" | FALSE="false" + public Alternatives getAlternatives() { + return cAlternatives; + } - //true - public EnumLiteralDeclaration getTrueEnumLiteralDeclaration_0() { return cTrueEnumLiteralDeclaration_0; } + // TRUE="true" + public EnumLiteralDeclaration getTRUEEnumLiteralDeclaration_0() { + return cTRUEEnumLiteralDeclaration_0; + } - //"true" - public Keyword getTrueTrueKeyword_0_0() { return cTrueTrueKeyword_0_0; } + // "true" + public Keyword getTRUETrueKeyword_0_0() { + return cTRUETrueKeyword_0_0; + } - //false - public EnumLiteralDeclaration getFalseEnumLiteralDeclaration_1() { return cFalseEnumLiteralDeclaration_1; } + // FALSE="false" + public EnumLiteralDeclaration getFALSEEnumLiteralDeclaration_1() { + return cFALSEEnumLiteralDeclaration_1; + } - //"false" - public Keyword getFalseFalseKeyword_1_0() { return cFalseFalseKeyword_1_0; } + // "false" + public Keyword getFALSEFalseKeyword_1_0() { + return cFALSEFalseKeyword_1_0; + } } - + private final PropertyRuleElements pPropertyRule; - private final VisibilityKindElements unknownRuleVisibilityKind; + private final VisibilityKindElements eVisibilityKind; private final VisibilityRuleElements pVisibilityRule; private final TypeRuleElements pTypeRule; private final QualifiedNameElements pQualifiedName; @@ -781,30 +1141,34 @@ public class UmlPropertyGrammarAccess extends AbstractGrammarElementFinder { private final StringLiteralElements pStringLiteral; private final ModifiersRuleElements pModifiersRule; private final ModifierSpecificationElements pModifierSpecification; - private final ModifierKindElements unknownRuleModifierKind; + private final ModifierKindElements eModifierKind; private final RedefinesRuleElements pRedefinesRule; private final SubsetsRuleElements pSubsetsRule; private final DefaultValueRuleElements pDefaultValueRule; private final ValueElements pValue; private final IntValueElements pIntValue; private final StringValueElements pStringValue; - private final BooleanLiteralsElements unknownRuleBooleanLiterals; + private final BooleanLiteralsElements eBooleanLiterals; private final BooleanValueElements pBooleanValue; private final RealValueElements pRealValue; private final NullValueElements pNullValue; private final NoValueElements pNoValue; - + private final Grammar grammar; private final CommonGrammarAccess gaCommon; + private final TerminalsGrammarAccess gaTerminals; + @Inject public UmlPropertyGrammarAccess(GrammarProvider grammarProvider, - CommonGrammarAccess gaCommon) { + CommonGrammarAccess gaCommon, + TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaCommon = gaCommon; + this.gaTerminals = gaTerminals; this.pPropertyRule = new PropertyRuleElements(); - this.unknownRuleVisibilityKind = new VisibilityKindElements(); + this.eVisibilityKind = new VisibilityKindElements(); this.pVisibilityRule = new VisibilityRuleElements(); this.pTypeRule = new TypeRuleElements(); this.pQualifiedName = new QualifiedNameElements(); @@ -814,20 +1178,20 @@ public class UmlPropertyGrammarAccess extends AbstractGrammarElementFinder { this.pStringLiteral = new StringLiteralElements(); this.pModifiersRule = new ModifiersRuleElements(); this.pModifierSpecification = new ModifierSpecificationElements(); - this.unknownRuleModifierKind = new ModifierKindElements(); + this.eModifierKind = new ModifierKindElements(); this.pRedefinesRule = new RedefinesRuleElements(); this.pSubsetsRule = new SubsetsRuleElements(); this.pDefaultValueRule = new DefaultValueRuleElements(); this.pValue = new ValueElements(); this.pIntValue = new IntValueElements(); this.pStringValue = new StringValueElements(); - this.unknownRuleBooleanLiterals = new BooleanLiteralsElements(); + this.eBooleanLiterals = new BooleanLiteralsElements(); this.pBooleanValue = new BooleanValueElements(); this.pRealValue = new RealValueElements(); this.pNullValue = new NullValueElements(); this.pNoValue = new NoValueElements(); } - + protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { @@ -843,306 +1207,300 @@ public class UmlPropertyGrammarAccess extends AbstractGrammarElementFinder { } return grammar; } - + @Override public Grammar getGrammar() { return grammar; } - + public CommonGrammarAccess getCommonGrammarAccess() { return gaCommon; } - - //PropertyRule: - // visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))? - // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?; + public TerminalsGrammarAccess getTerminalsGrammarAccess() { + return gaTerminals; + } + + + // PropertyRule: + // visibility=VisibilityRule? derived?="/"? name=ID (':' (type=TypeRule | typeUndefined?="<Undefined>"))? + // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?; public PropertyRuleElements getPropertyRuleAccess() { return pPropertyRule; } - + public ParserRule getPropertyRuleRule() { return getPropertyRuleAccess().getRule(); } - //enum VisibilityKind: - // public="+" | private="-" | protected="#" | package="~"; + // enum VisibilityKind: + // public="+" | private="-" | protected="#" | package="~"; public VisibilityKindElements getVisibilityKindAccess() { - return unknownRuleVisibilityKind; + return eVisibilityKind; } - + public EnumRule getVisibilityKindRule() { return getVisibilityKindAccess().getRule(); } - //VisibilityRule: - // visibility=VisibilityKind; + // VisibilityRule: + // visibility=VisibilityKind; public VisibilityRuleElements getVisibilityRuleAccess() { return pVisibilityRule; } - + public ParserRule getVisibilityRuleRule() { return getVisibilityRuleAccess().getRule(); } - //TypeRule: - // path=QualifiedName? type=[uml::Classifier]; + // TypeRule: + // path=QualifiedName? type=[uml::Classifier]; public TypeRuleElements getTypeRuleAccess() { return pTypeRule; } - + public ParserRule getTypeRuleRule() { return getTypeRuleAccess().getRule(); } - //QualifiedName: - // path=[uml::Namespace] "::" remaining=QualifiedName?; + // QualifiedName: + // path=[uml::Namespace] '::' remaining=QualifiedName?; public QualifiedNameElements getQualifiedNameAccess() { return pQualifiedName; } - + public ParserRule getQualifiedNameRule() { return getQualifiedNameAccess().getRule(); } - //MultiplicityRule: - // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]"; + // MultiplicityRule: + // "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]"; public MultiplicityRuleElements getMultiplicityRuleAccess() { return pMultiplicityRule; } - + public ParserRule getMultiplicityRuleRule() { return getMultiplicityRuleAccess().getRule(); } - //BoundSpecification: - // value=(UnlimitedLiteral | StringLiteral); + // BoundSpecification: + // value=(UnlimitedLiteral | StringLiteral); public BoundSpecificationElements getBoundSpecificationAccess() { return pBoundSpecification; } - + public ParserRule getBoundSpecificationRule() { return getBoundSpecificationAccess().getRule(); } - //UnlimitedLiteral: - // INT | "*"; + // UnlimitedLiteral: + // INT | '*'; public UnlimitedLiteralElements getUnlimitedLiteralAccess() { return pUnlimitedLiteral; } - + public ParserRule getUnlimitedLiteralRule() { return getUnlimitedLiteralAccess().getRule(); } - //StringLiteral: - // STRING; + // StringLiteral: + // STRING; public StringLiteralElements getStringLiteralAccess() { return pStringLiteral; } - + public ParserRule getStringLiteralRule() { return getStringLiteralAccess().getRule(); } - //ModifiersRule: - // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}"; + // ModifiersRule: + // {ModifiersRule} '{' (values+=ModifierSpecification (',' values+=ModifierSpecification)*)? '}'; public ModifiersRuleElements getModifiersRuleAccess() { return pModifiersRule; } - + public ParserRule getModifiersRuleRule() { return getModifiersRuleAccess().getRule(); } - //ModifierSpecification: - // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule; + // ModifierSpecification: + // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule; public ModifierSpecificationElements getModifierSpecificationAccess() { return pModifierSpecification; } - + public ParserRule getModifierSpecificationRule() { return getModifierSpecificationAccess().getRule(); } - //enum ModifierKind: - // readOnly | union | ordered | unique; + // enum ModifierKind: + // readOnly | union | ordered | unique; public ModifierKindElements getModifierKindAccess() { - return unknownRuleModifierKind; + return eModifierKind; } - + public EnumRule getModifierKindRule() { return getModifierKindAccess().getRule(); } - //RedefinesRule: - // "redefines" property=[uml::Property]; + // RedefinesRule: + // 'redefines' property=[uml::Property]; public RedefinesRuleElements getRedefinesRuleAccess() { return pRedefinesRule; } - + public ParserRule getRedefinesRuleRule() { return getRedefinesRuleAccess().getRule(); } - //SubsetsRule: - // "subsets" property=[uml::Property]; + // SubsetsRule: + // 'subsets' property=[uml::Property]; public SubsetsRuleElements getSubsetsRuleAccess() { return pSubsetsRule; } - + public ParserRule getSubsetsRuleRule() { return getSubsetsRuleAccess().getRule(); } - //DefaultValueRule: - // "=" default=Value; + // DefaultValueRule: + // '=' default=Value; public DefaultValueRuleElements getDefaultValueRuleAccess() { return pDefaultValueRule; } - + public ParserRule getDefaultValueRuleRule() { return getDefaultValueRuleAccess().getRule(); } - //Value: - // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue; + // Value: + // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue; public ValueElements getValueAccess() { return pValue; } - + public ParserRule getValueRule() { return getValueAccess().getRule(); } - //IntValue: - // literalInteger=INT; + // IntValue: + // literalInteger=INT; public IntValueElements getIntValueAccess() { return pIntValue; } - + public ParserRule getIntValueRule() { return getIntValueAccess().getRule(); } - //StringValue: - // literalString=STRING; + // StringValue: + // literalString=STRING; public StringValueElements getStringValueAccess() { return pStringValue; } - + public ParserRule getStringValueRule() { return getStringValueAccess().getRule(); } - //enum BooleanLiterals: - // true | false; + // enum BooleanLiterals: + // TRUE="true" | FALSE="false"; public BooleanLiteralsElements getBooleanLiteralsAccess() { - return unknownRuleBooleanLiterals; + return eBooleanLiterals; } - + public EnumRule getBooleanLiteralsRule() { return getBooleanLiteralsAccess().getRule(); } - //BooleanValue: - // literalBoolean=BooleanLiterals; + // BooleanValue: + // literalBoolean=BooleanLiterals; public BooleanValueElements getBooleanValueAccess() { return pBooleanValue; } - + public ParserRule getBooleanValueRule() { return getBooleanValueAccess().getRule(); } - ////TODO: Support all Java-compliant doubles - //RealValue: - // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT; + //// TODO: Support all Java-compliant doubles + // RealValue: + // integer=INT '.' | '.' fraction=INT | integer=INT "." fraction=INT; public RealValueElements getRealValueAccess() { return pRealValue; } - + public ParserRule getRealValueRule() { return getRealValueAccess().getRule(); } - //NullValue: - // {NullValue} "null"; + // NullValue: + // {NullValue} 'null'; public NullValueElements getNullValueAccess() { return pNullValue; } - + public ParserRule getNullValueRule() { return getNullValueAccess().getRule(); } - //NoValue: - // {NoValue} "none"; + // NoValue: + // {NoValue} 'none'; public NoValueElements getNoValueAccess() { return pNoValue; } - + public ParserRule getNoValueRule() { return getNoValueAccess().getRule(); } - //terminal ID: - // ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")* | "\'"->"\'"; + // terminal ID: + // ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')* | '\''->'\''; public TerminalRule getIDRule() { return gaCommon.getIDRule(); - } + } - //terminal STRING: - // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\""; + // terminal STRING: + // '"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '"'))* '"'; public TerminalRule getSTRINGRule() { return gaCommon.getSTRINGRule(); - } + } - //terminal ML_COMMENT: - // "/ *" !"@"->"* /"; + // terminal ML_COMMENT: + // '/*' !'@'->'*/'; public TerminalRule getML_COMMENTRule() { return gaCommon.getML_COMMENTRule(); - } + } - //terminal SL_COMMENT: - // "//" !("\n" | "\r" | "@")* ("\r"? "\n")?; + // terminal SL_COMMENT: + // '//' !('\n' | '\r' | '@')* ('\r'? '\n')?; public TerminalRule getSL_COMMENTRule() { return gaCommon.getSL_COMMENTRule(); - } + } - //terminal INT returns ecore::EInt: - // "0".."9"+; + // terminal INT returns ecore::EInt: + // '0'..'9'+; public TerminalRule getINTRule() { return gaCommon.getINTRule(); - } - - ////terminal DOUBLE_COLON : '::' ; - ////terminal IDENTIFIER : ID ; - ////terminal IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')* | ('\'' -> '\'') ; - ////terminal DOCUMENTATION_COMMENT : '/ *' -> '* /' ; - ////terminal ML_COMMENT : '/°' -> '°/'; - ////terminal SL_COMMENT : '°°' !('\n'|'\r')* ('\r'? '\n')?; - ////terminal WS : (' '|'\t'|'\r'|'\n')+; terminal INTEGER_VALUE: - // ("0" | "1".."9" ("_"? "0".."9")*) //DECIMAL - // // BINARY - // // HEX - // // OCT - // | ("0b" | "0B") "0".."1" ("_"? "0".."1")* | ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F") ("_"? ("0".."9" | "a".."f" | - // "A".."F"))* | "0" "_"? "0".."7" ("_"? "0".."7")*; + } + + // terminal INTEGER_VALUE: + // ('0' | '1'..'9' ('_'? '0'..'9')*) | ('0b' | '0B') '0'..'1' ('_'? '0'..'1')* | ('0x' | '0X') ('0'..'9' | 'a'..'f' | + // 'A'..'F') ('_'? ('0'..'9' | 'a'..'f' | 'A'..'F'))* | '0' '_'? '0'..'7' ('_'? '0'..'7')*; public TerminalRule getINTEGER_VALUERule() { return gaCommon.getINTEGER_VALUERule(); - } + } - //terminal WS: - // (" " | "\t" | "\r" | "\n")+; + // terminal WS: + // ' ' | '\t' | '\r' | '\n'+; public TerminalRule getWSRule() { - return gaCommon.getWSRule(); - } + return gaTerminals.getWSRule(); + } - //terminal ANY_OTHER: - // .; + // terminal ANY_OTHER: + // .; public TerminalRule getANY_OTHERRule() { - return gaCommon.getANY_OTHERRule(); - } + return gaTerminals.getANY_OTHERRule(); + } } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java index 4f685585f13..b48a586f679 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java @@ -13,217 +13,224 @@ import org.eclipse.emf.common.util.Enumerator; * A representation of the literals of the enumeration '<em><b>Boolean Literals</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanLiterals() * @model * @generated */ -public enum BooleanLiterals implements Enumerator -{ - /** - * The '<em><b>True</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #TRUE_VALUE - * @generated - * @ordered - */ - TRUE(0, "true", "true"), - - /** - * The '<em><b>False</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #FALSE_VALUE - * @generated - * @ordered - */ - FALSE(1, "false", "false"); - - /** - * The '<em><b>True</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>True</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #TRUE - * @model name="true" - * @generated - * @ordered - */ - public static final int TRUE_VALUE = 0; - - /** - * The '<em><b>False</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>False</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #FALSE - * @model name="false" - * @generated - * @ordered - */ - public static final int FALSE_VALUE = 1; - - /** - * An array of all the '<em><b>Boolean Literals</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final BooleanLiterals[] VALUES_ARRAY = - new BooleanLiterals[] - { - TRUE, - FALSE, - }; - - /** - * A public read-only list of all the '<em><b>Boolean Literals</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List<BooleanLiterals> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param literal the literal. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static BooleanLiterals get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - BooleanLiterals result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param name the name. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static BooleanLiterals getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - BooleanLiterals result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified integer value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the integer value. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static BooleanLiterals get(int value) - { - switch (value) - { - case TRUE_VALUE: return TRUE; - case FALSE_VALUE: return FALSE; - } - return null; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final int value; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String name; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private BooleanLiterals(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getValue() - { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLiteral() - { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - return literal; - } - -} //BooleanLiterals +public enum BooleanLiterals implements Enumerator { + /** + * The '<em><b>TRUE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #TRUE_VALUE + * @generated + * @ordered + */ + TRUE(0, "TRUE", "true"), + + /** + * The '<em><b>FALSE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #FALSE_VALUE + * @generated + * @ordered + */ + FALSE(1, "FALSE", "false"); + + /** + * The '<em><b>TRUE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>TRUE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #TRUE + * @model literal="true" + * @generated + * @ordered + */ + public static final int TRUE_VALUE = 0; + + /** + * The '<em><b>FALSE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>FALSE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #FALSE + * @model literal="false" + * @generated + * @ordered + */ + public static final int FALSE_VALUE = 1; + + /** + * An array of all the '<em><b>Boolean Literals</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static final BooleanLiterals[] VALUES_ARRAY = new BooleanLiterals[] { + TRUE, + FALSE, + }; + + /** + * A public read-only list of all the '<em><b>Boolean Literals</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static final List<BooleanLiterals> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param literal + * the literal. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static BooleanLiterals get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + BooleanLiterals result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param name + * the name. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static BooleanLiterals getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + BooleanLiterals result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the integer value. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static BooleanLiterals get(int value) { + switch (value) { + case TRUE_VALUE: + return TRUE; + case FALSE_VALUE: + return FALSE; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private BooleanLiterals(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} // BooleanLiterals diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java index cdb5a3ddad7..eb77781c8ce 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java @@ -12,42 +12,44 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanValue() * @model * @generated */ -public interface BooleanValue extends Value -{ - /** - * Returns the value of the '<em><b>Literal Boolean</b></em>' attribute. - * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Literal Boolean</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Literal Boolean</em>' attribute. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals - * @see #setLiteralBoolean(BooleanLiterals) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanValue_LiteralBoolean() - * @model - * @generated - */ - BooleanLiterals getLiteralBoolean(); +public interface BooleanValue extends Value { + /** + * Returns the value of the '<em><b>Literal Boolean</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Literal Boolean</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Literal Boolean</em>' attribute. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals + * @see #setLiteralBoolean(BooleanLiterals) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanValue_LiteralBoolean() + * @model + * @generated + */ + BooleanLiterals getLiteralBoolean(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Literal Boolean</em>' attribute. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals - * @see #getLiteralBoolean() - * @generated - */ - void setLiteralBoolean(BooleanLiterals value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Literal Boolean</em>' attribute. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals + * @see #getLiteralBoolean() + * @generated + */ + void setLiteralBoolean(BooleanLiterals value); } // BooleanValue diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java index 78221dc4c22..a98b8cc66c5 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java @@ -13,39 +13,41 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBoundSpecification() * @model * @generated */ -public interface BoundSpecification extends EObject -{ - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see #setValue(String) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBoundSpecification_Value() - * @model - * @generated - */ - String getValue(); +public interface BoundSpecification extends EObject { + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Value</em>' attribute. + * @see #setValue(String) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBoundSpecification_Value() + * @model + * @generated + */ + String getValue(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see #getValue() - * @generated - */ - void setValue(String value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); } // BoundSpecification diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java index 51a5ed5119d..a78c98dcfdc 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java @@ -13,39 +13,41 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getDefaultValueRule() * @model * @generated */ -public interface DefaultValueRule extends EObject -{ - /** - * Returns the value of the '<em><b>Default</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Default</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Default</em>' containment reference. - * @see #setDefault(Value) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getDefaultValueRule_Default() - * @model containment="true" - * @generated - */ - Value getDefault(); +public interface DefaultValueRule extends EObject { + /** + * Returns the value of the '<em><b>Default</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Default</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Default</em>' containment reference. + * @see #setDefault(Value) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getDefaultValueRule_Default() + * @model containment="true" + * @generated + */ + Value getDefault(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Default</em>' containment reference. - * @see #getDefault() - * @generated - */ - void setDefault(Value value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Default</em>' containment reference. + * @see #getDefault() + * @generated + */ + void setDefault(Value value); } // DefaultValueRule diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java index 6192cfce097..6d7fd4f5156 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java @@ -12,39 +12,41 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getIntValue() * @model * @generated */ -public interface IntValue extends Value -{ - /** - * Returns the value of the '<em><b>Literal Integer</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Literal Integer</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Literal Integer</em>' attribute. - * @see #setLiteralInteger(int) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getIntValue_LiteralInteger() - * @model - * @generated - */ - int getLiteralInteger(); +public interface IntValue extends Value { + /** + * Returns the value of the '<em><b>Literal Integer</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Literal Integer</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Literal Integer</em>' attribute. + * @see #setLiteralInteger(int) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getIntValue_LiteralInteger() + * @model + * @generated + */ + int getLiteralInteger(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Literal Integer</em>' attribute. - * @see #getLiteralInteger() - * @generated - */ - void setLiteralInteger(int value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Literal Integer</em>' attribute. + * @see #getLiteralInteger() + * @generated + */ + void setLiteralInteger(int value); } // IntValue diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java index 63b98676e86..f4cb84e2972 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java @@ -13,271 +13,284 @@ import org.eclipse.emf.common.util.Enumerator; * A representation of the literals of the enumeration '<em><b>Modifier Kind</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierKind() * @model * @generated */ -public enum ModifierKind implements Enumerator -{ - /** - * The '<em><b>Read Only</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #READ_ONLY_VALUE - * @generated - * @ordered - */ - READ_ONLY(0, "readOnly", "readOnly"), +public enum ModifierKind implements Enumerator { + /** + * The '<em><b>Read Only</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #READ_ONLY_VALUE + * @generated + * @ordered + */ + READ_ONLY(0, "readOnly", "readOnly"), - /** - * The '<em><b>Union</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #UNION_VALUE - * @generated - * @ordered - */ - UNION(1, "union", "union"), + /** + * The '<em><b>Union</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #UNION_VALUE + * @generated + * @ordered + */ + UNION(1, "union", "union"), - /** - * The '<em><b>Ordered</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #ORDERED_VALUE - * @generated - * @ordered - */ - ORDERED(2, "ordered", "ordered"), + /** + * The '<em><b>Ordered</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #ORDERED_VALUE + * @generated + * @ordered + */ + ORDERED(2, "ordered", "ordered"), - /** - * The '<em><b>Unique</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #UNIQUE_VALUE - * @generated - * @ordered - */ - UNIQUE(3, "unique", "unique"); + /** + * The '<em><b>Unique</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #UNIQUE_VALUE + * @generated + * @ordered + */ + UNIQUE(3, "unique", "unique"); - /** - * The '<em><b>Read Only</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #READ_ONLY - * @model name="readOnly" - * @generated - * @ordered - */ - public static final int READ_ONLY_VALUE = 0; + /** + * The '<em><b>Read Only</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #READ_ONLY + * @model name="readOnly" + * @generated + * @ordered + */ + public static final int READ_ONLY_VALUE = 0; - /** - * The '<em><b>Union</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Union</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #UNION - * @model name="union" - * @generated - * @ordered - */ - public static final int UNION_VALUE = 1; + /** + * The '<em><b>Union</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Union</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #UNION + * @model name="union" + * @generated + * @ordered + */ + public static final int UNION_VALUE = 1; - /** - * The '<em><b>Ordered</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #ORDERED - * @model name="ordered" - * @generated - * @ordered - */ - public static final int ORDERED_VALUE = 2; + /** + * The '<em><b>Ordered</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #ORDERED + * @model name="ordered" + * @generated + * @ordered + */ + public static final int ORDERED_VALUE = 2; - /** - * The '<em><b>Unique</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #UNIQUE - * @model name="unique" - * @generated - * @ordered - */ - public static final int UNIQUE_VALUE = 3; + /** + * The '<em><b>Unique</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #UNIQUE + * @model name="unique" + * @generated + * @ordered + */ + public static final int UNIQUE_VALUE = 3; - /** - * An array of all the '<em><b>Modifier Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final ModifierKind[] VALUES_ARRAY = - new ModifierKind[] - { - READ_ONLY, - UNION, - ORDERED, - UNIQUE, - }; + /** + * An array of all the '<em><b>Modifier Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static final ModifierKind[] VALUES_ARRAY = new ModifierKind[] { + READ_ONLY, + UNION, + ORDERED, + UNIQUE, + }; - /** - * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + /** + * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - /** - * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param literal the literal. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static ModifierKind get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - ModifierKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } + /** + * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param literal + * the literal. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static ModifierKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ModifierKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } - /** - * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param name the name. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static ModifierKind getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - ModifierKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } + /** + * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param name + * the name. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static ModifierKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ModifierKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } - /** - * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified integer value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the integer value. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static ModifierKind get(int value) - { - switch (value) - { - case READ_ONLY_VALUE: return READ_ONLY; - case UNION_VALUE: return UNION; - case ORDERED_VALUE: return ORDERED; - case UNIQUE_VALUE: return UNIQUE; - } - return null; - } + /** + * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the integer value. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static ModifierKind get(int value) { + switch (value) { + case READ_ONLY_VALUE: + return READ_ONLY; + case UNION_VALUE: + return UNION; + case ORDERED_VALUE: + return ORDERED; + case UNIQUE_VALUE: + return UNIQUE; + } + return null; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final int value; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final int value; - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String name; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String name; - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String literal; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String literal; - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private ModifierKind(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private ModifierKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getValue() - { - return value; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public int getValue() { + return value; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() - { - return name; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getName() { + return name; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLiteral() - { - return literal; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getLiteral() { + return literal; + } - /** - * Returns the literal value of the enumerator, which is its string representation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - return literal; - } - -} //ModifierKind + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} // ModifierKind diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java index 496cb0e80a4..1877fcd0e08 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java @@ -13,96 +13,104 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification() * @model * @generated */ -public interface ModifierSpecification extends EObject -{ - /** - * Returns the value of the '<em><b>Value</b></em>' attribute. - * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Value</em>' attribute. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind - * @see #setValue(ModifierKind) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Value() - * @model - * @generated - */ - ModifierKind getValue(); +public interface ModifierSpecification extends EObject { + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Value</em>' attribute. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind + * @see #setValue(ModifierKind) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Value() + * @model + * @generated + */ + ModifierKind getValue(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Value</em>' attribute. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind - * @see #getValue() - * @generated - */ - void setValue(ModifierKind value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Value</em>' attribute. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind + * @see #getValue() + * @generated + */ + void setValue(ModifierKind value); - /** - * Returns the value of the '<em><b>Redefines</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Redefines</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Redefines</em>' containment reference. - * @see #setRedefines(RedefinesRule) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Redefines() - * @model containment="true" - * @generated - */ - RedefinesRule getRedefines(); + /** + * Returns the value of the '<em><b>Redefines</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Redefines</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Redefines</em>' containment reference. + * @see #setRedefines(RedefinesRule) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Redefines() + * @model containment="true" + * @generated + */ + RedefinesRule getRedefines(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Redefines</em>' containment reference. - * @see #getRedefines() - * @generated - */ - void setRedefines(RedefinesRule value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Redefines</em>' containment reference. + * @see #getRedefines() + * @generated + */ + void setRedefines(RedefinesRule value); - /** - * Returns the value of the '<em><b>Subsets</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Subsets</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Subsets</em>' containment reference. - * @see #setSubsets(SubsetsRule) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Subsets() - * @model containment="true" - * @generated - */ - SubsetsRule getSubsets(); + /** + * Returns the value of the '<em><b>Subsets</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Subsets</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Subsets</em>' containment reference. + * @see #setSubsets(SubsetsRule) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Subsets() + * @model containment="true" + * @generated + */ + SubsetsRule getSubsets(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Subsets</em>' containment reference. - * @see #getSubsets() - * @generated - */ - void setSubsets(SubsetsRule value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Subsets</em>' containment reference. + * @see #getSubsets() + * @generated + */ + void setSubsets(SubsetsRule value); } // ModifierSpecification diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java index 42156a2b20f..36cfd7c8317 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java @@ -3,7 +3,6 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EObject; /** @@ -15,29 +14,29 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifiersRule() * @model * @generated */ -public interface ModifiersRule extends EObject -{ - /** - * Returns the value of the '<em><b>Values</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Values</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Values</em>' containment reference list. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifiersRule_Values() - * @model containment="true" - * @generated - */ - EList<ModifierSpecification> getValues(); +public interface ModifiersRule extends EObject { + /** + * Returns the value of the '<em><b>Values</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Values</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Values</em>' containment reference list. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifiersRule_Values() + * @model containment="true" + * @generated + */ + EList<ModifierSpecification> getValues(); } // ModifiersRule diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java index 92cfd0b187a..ba1080ab8fe 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java @@ -3,7 +3,6 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EObject; /** @@ -15,29 +14,29 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getMultiplicityRule() * @model * @generated */ -public interface MultiplicityRule extends EObject -{ - /** - * Returns the value of the '<em><b>Bounds</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Bounds</em>' containment reference list. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getMultiplicityRule_Bounds() - * @model containment="true" - * @generated - */ - EList<BoundSpecification> getBounds(); +public interface MultiplicityRule extends EObject { + /** + * Returns the value of the '<em><b>Bounds</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Bounds</em>' containment reference list. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getMultiplicityRule_Bounds() + * @model containment="true" + * @generated + */ + EList<BoundSpecification> getBounds(); } // MultiplicityRule diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NoValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NoValue.java index d15563bb4eb..913a5de03ae 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NoValue.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NoValue.java @@ -13,6 +13,5 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; * @model * @generated */ -public interface NoValue extends Value -{ +public interface NoValue extends Value { } // NoValue diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NullValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NullValue.java index 85f43317e57..f1013dbf17b 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NullValue.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/NullValue.java @@ -13,6 +13,5 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; * @model * @generated */ -public interface NullValue extends Value -{ +public interface NullValue extends Value { } // NullValue diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java index 45444d1938d..835ba09e994 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java @@ -13,228 +13,251 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule() * @model * @generated */ -public interface PropertyRule extends EObject -{ - /** - * Returns the value of the '<em><b>Visibility</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Visibility</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Visibility</em>' containment reference. - * @see #setVisibility(VisibilityRule) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Visibility() - * @model containment="true" - * @generated - */ - VisibilityRule getVisibility(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Visibility</em>' containment reference. - * @see #getVisibility() - * @generated - */ - void setVisibility(VisibilityRule value); - - /** - * Returns the value of the '<em><b>Derived</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Derived</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Derived</em>' attribute. - * @see #setDerived(boolean) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Derived() - * @model - * @generated - */ - boolean isDerived(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Derived</em>' attribute. - * @see #isDerived() - * @generated - */ - void setDerived(boolean value); - - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Type</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Type</em>' containment reference. - * @see #setType(TypeRule) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Type() - * @model containment="true" - * @generated - */ - TypeRule getType(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' containment reference. - * @see #getType() - * @generated - */ - void setType(TypeRule value); - - /** - * Returns the value of the '<em><b>Type Undefined</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Type Undefined</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Type Undefined</em>' attribute. - * @see #setTypeUndefined(boolean) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_TypeUndefined() - * @model - * @generated - */ - boolean isTypeUndefined(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type Undefined</em>' attribute. - * @see #isTypeUndefined() - * @generated - */ - void setTypeUndefined(boolean value); - - /** - * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Multiplicity</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Multiplicity</em>' containment reference. - * @see #setMultiplicity(MultiplicityRule) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Multiplicity() - * @model containment="true" - * @generated - */ - MultiplicityRule getMultiplicity(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Multiplicity</em>' containment reference. - * @see #getMultiplicity() - * @generated - */ - void setMultiplicity(MultiplicityRule value); - - /** - * Returns the value of the '<em><b>Modifiers</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Modifiers</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Modifiers</em>' containment reference. - * @see #setModifiers(ModifiersRule) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Modifiers() - * @model containment="true" - * @generated - */ - ModifiersRule getModifiers(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Modifiers</em>' containment reference. - * @see #getModifiers() - * @generated - */ - void setModifiers(ModifiersRule value); - - /** - * Returns the value of the '<em><b>Default</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Default</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Default</em>' containment reference. - * @see #setDefault(DefaultValueRule) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Default() - * @model containment="true" - * @generated - */ - DefaultValueRule getDefault(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Default</em>' containment reference. - * @see #getDefault() - * @generated - */ - void setDefault(DefaultValueRule value); +public interface PropertyRule extends EObject { + /** + * Returns the value of the '<em><b>Visibility</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Visibility</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Visibility</em>' containment reference. + * @see #setVisibility(VisibilityRule) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Visibility() + * @model containment="true" + * @generated + */ + VisibilityRule getVisibility(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Visibility</em>' containment reference. + * @see #getVisibility() + * @generated + */ + void setVisibility(VisibilityRule value); + + /** + * Returns the value of the '<em><b>Derived</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Derived</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Derived</em>' attribute. + * @see #setDerived(boolean) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Derived() + * @model + * @generated + */ + boolean isDerived(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Derived</em>' attribute. + * @see #isDerived() + * @generated + */ + void setDerived(boolean value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Type</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Type</em>' containment reference. + * @see #setType(TypeRule) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Type() + * @model containment="true" + * @generated + */ + TypeRule getType(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Type</em>' containment reference. + * @see #getType() + * @generated + */ + void setType(TypeRule value); + + /** + * Returns the value of the '<em><b>Type Undefined</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type Undefined</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Type Undefined</em>' attribute. + * @see #setTypeUndefined(boolean) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_TypeUndefined() + * @model + * @generated + */ + boolean isTypeUndefined(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Type Undefined</em>' attribute. + * @see #isTypeUndefined() + * @generated + */ + void setTypeUndefined(boolean value); + + /** + * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Multiplicity</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Multiplicity</em>' containment reference. + * @see #setMultiplicity(MultiplicityRule) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Multiplicity() + * @model containment="true" + * @generated + */ + MultiplicityRule getMultiplicity(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Multiplicity</em>' containment reference. + * @see #getMultiplicity() + * @generated + */ + void setMultiplicity(MultiplicityRule value); + + /** + * Returns the value of the '<em><b>Modifiers</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Modifiers</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Modifiers</em>' containment reference. + * @see #setModifiers(ModifiersRule) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Modifiers() + * @model containment="true" + * @generated + */ + ModifiersRule getModifiers(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Modifiers</em>' containment reference. + * @see #getModifiers() + * @generated + */ + void setModifiers(ModifiersRule value); + + /** + * Returns the value of the '<em><b>Default</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Default</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Default</em>' containment reference. + * @see #setDefault(DefaultValueRule) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Default() + * @model containment="true" + * @generated + */ + DefaultValueRule getDefault(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Default</em>' containment reference. + * @see #getDefault() + * @generated + */ + void setDefault(DefaultValueRule value); } // PropertyRule diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java index 0d21ee97c05..a5bcdc82bdb 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java @@ -3,7 +3,6 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; import org.eclipse.emf.ecore.EObject; - import org.eclipse.uml2.uml.Namespace; /** @@ -15,66 +14,71 @@ import org.eclipse.uml2.uml.Namespace; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName() * @model * @generated */ -public interface QualifiedName extends EObject -{ - /** - * Returns the value of the '<em><b>Path</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Path</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Path</em>' reference. - * @see #setPath(Namespace) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Path() - * @model - * @generated - */ - Namespace getPath(); +public interface QualifiedName extends EObject { + /** + * Returns the value of the '<em><b>Path</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Path</em>' reference. + * @see #setPath(Namespace) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Path() + * @model + * @generated + */ + Namespace getPath(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Path</em>' reference. - * @see #getPath() - * @generated - */ - void setPath(Namespace value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Path</em>' reference. + * @see #getPath() + * @generated + */ + void setPath(Namespace value); - /** - * Returns the value of the '<em><b>Remaining</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Remaining</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Remaining</em>' containment reference. - * @see #setRemaining(QualifiedName) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Remaining() - * @model containment="true" - * @generated - */ - QualifiedName getRemaining(); + /** + * Returns the value of the '<em><b>Remaining</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Remaining</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Remaining</em>' containment reference. + * @see #setRemaining(QualifiedName) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Remaining() + * @model containment="true" + * @generated + */ + QualifiedName getRemaining(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Remaining</em>' containment reference. - * @see #getRemaining() - * @generated - */ - void setRemaining(QualifiedName value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Remaining</em>' containment reference. + * @see #getRemaining() + * @generated + */ + void setRemaining(QualifiedName value); } // QualifiedName diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java index 16a5f83ef2f..b6a5691eb92 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java @@ -12,66 +12,71 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue() * @model * @generated */ -public interface RealValue extends Value -{ - /** - * Returns the value of the '<em><b>Integer</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Integer</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Integer</em>' attribute. - * @see #setInteger(int) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Integer() - * @model - * @generated - */ - int getInteger(); +public interface RealValue extends Value { + /** + * Returns the value of the '<em><b>Integer</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Integer</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Integer</em>' attribute. + * @see #setInteger(int) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Integer() + * @model + * @generated + */ + int getInteger(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Integer</em>' attribute. - * @see #getInteger() - * @generated - */ - void setInteger(int value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Integer</em>' attribute. + * @see #getInteger() + * @generated + */ + void setInteger(int value); - /** - * Returns the value of the '<em><b>Fraction</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Fraction</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Fraction</em>' attribute. - * @see #setFraction(int) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Fraction() - * @model - * @generated - */ - int getFraction(); + /** + * Returns the value of the '<em><b>Fraction</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fraction</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Fraction</em>' attribute. + * @see #setFraction(int) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Fraction() + * @model + * @generated + */ + int getFraction(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Fraction</em>' attribute. - * @see #getFraction() - * @generated - */ - void setFraction(int value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Fraction</em>' attribute. + * @see #getFraction() + * @generated + */ + void setFraction(int value); } // RealValue diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java index 389cb1944f4..456a8af08a0 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java @@ -12,39 +12,41 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getStringValue() * @model * @generated */ -public interface StringValue extends Value -{ - /** - * Returns the value of the '<em><b>Literal String</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Literal String</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Literal String</em>' attribute. - * @see #setLiteralString(String) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getStringValue_LiteralString() - * @model - * @generated - */ - String getLiteralString(); +public interface StringValue extends Value { + /** + * Returns the value of the '<em><b>Literal String</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Literal String</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Literal String</em>' attribute. + * @see #setLiteralString(String) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getStringValue_LiteralString() + * @model + * @generated + */ + String getLiteralString(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Literal String</em>' attribute. - * @see #getLiteralString() - * @generated - */ - void setLiteralString(String value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Literal String</em>' attribute. + * @see #getLiteralString() + * @generated + */ + void setLiteralString(String value); } // StringValue diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java index 50dab572d94..f7f76b66854 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java @@ -3,7 +3,6 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; import org.eclipse.emf.ecore.EObject; - import org.eclipse.uml2.uml.Property; /** @@ -15,39 +14,41 @@ import org.eclipse.uml2.uml.Property; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getSubsetsRule() * @model * @generated */ -public interface SubsetsRule extends EObject -{ - /** - * Returns the value of the '<em><b>Property</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Property</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Property</em>' reference. - * @see #setProperty(Property) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getSubsetsRule_Property() - * @model - * @generated - */ - Property getProperty(); +public interface SubsetsRule extends EObject { + /** + * Returns the value of the '<em><b>Property</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Property</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Property</em>' reference. + * @see #setProperty(Property) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getSubsetsRule_Property() + * @model + * @generated + */ + Property getProperty(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Property</em>' reference. - * @see #getProperty() - * @generated - */ - void setProperty(Property value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Property</em>' reference. + * @see #getProperty() + * @generated + */ + void setProperty(Property value); } // SubsetsRule diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java index a2469a5e050..b05df72622f 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java @@ -3,7 +3,6 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty; import org.eclipse.emf.ecore.EObject; - import org.eclipse.uml2.uml.Classifier; /** @@ -15,66 +14,71 @@ import org.eclipse.uml2.uml.Classifier; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule() * @model * @generated */ -public interface TypeRule extends EObject -{ - /** - * Returns the value of the '<em><b>Path</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Path</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Path</em>' containment reference. - * @see #setPath(QualifiedName) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Path() - * @model containment="true" - * @generated - */ - QualifiedName getPath(); +public interface TypeRule extends EObject { + /** + * Returns the value of the '<em><b>Path</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Path</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Path</em>' containment reference. + * @see #setPath(QualifiedName) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Path() + * @model containment="true" + * @generated + */ + QualifiedName getPath(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Path</em>' containment reference. - * @see #getPath() - * @generated - */ - void setPath(QualifiedName value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Path</em>' containment reference. + * @see #getPath() + * @generated + */ + void setPath(QualifiedName value); - /** - * Returns the value of the '<em><b>Type</b></em>' reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Type</em>' reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Type</em>' reference. - * @see #setType(Classifier) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Type() - * @model - * @generated - */ - Classifier getType(); + /** + * Returns the value of the '<em><b>Type</b></em>' reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Type</em>' reference. + * @see #setType(Classifier) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Type() + * @model + * @generated + */ + Classifier getType(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Type</em>' reference. - * @see #getType() - * @generated - */ - void setType(Classifier value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Type</em>' reference. + * @see #getType() + * @generated + */ + void setType(Classifier value); } // TypeRule diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java index cd3b057cddc..20c88916c9f 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java @@ -9,188 +9,208 @@ import org.eclipse.emf.ecore.EFactory; * The <b>Factory</b> for the model. * It provides a create method for each non-abstract class of the model. * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage * @generated */ -public interface UmlPropertyFactory extends EFactory -{ - /** - * The singleton instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - UmlPropertyFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyFactoryImpl.init(); - - /** - * Returns a new object of class '<em>Property Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Property Rule</em>'. - * @generated - */ - PropertyRule createPropertyRule(); - - /** - * Returns a new object of class '<em>Visibility Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Visibility Rule</em>'. - * @generated - */ - VisibilityRule createVisibilityRule(); - - /** - * Returns a new object of class '<em>Type Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Type Rule</em>'. - * @generated - */ - TypeRule createTypeRule(); - - /** - * Returns a new object of class '<em>Qualified Name</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Qualified Name</em>'. - * @generated - */ - QualifiedName createQualifiedName(); - - /** - * Returns a new object of class '<em>Multiplicity Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Multiplicity Rule</em>'. - * @generated - */ - MultiplicityRule createMultiplicityRule(); - - /** - * Returns a new object of class '<em>Bound Specification</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Bound Specification</em>'. - * @generated - */ - BoundSpecification createBoundSpecification(); - - /** - * Returns a new object of class '<em>Modifiers Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Modifiers Rule</em>'. - * @generated - */ - ModifiersRule createModifiersRule(); - - /** - * Returns a new object of class '<em>Modifier Specification</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Modifier Specification</em>'. - * @generated - */ - ModifierSpecification createModifierSpecification(); - - /** - * Returns a new object of class '<em>Redefines Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Redefines Rule</em>'. - * @generated - */ - RedefinesRule createRedefinesRule(); - - /** - * Returns a new object of class '<em>Subsets Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Subsets Rule</em>'. - * @generated - */ - SubsetsRule createSubsetsRule(); - - /** - * Returns a new object of class '<em>Default Value Rule</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Default Value Rule</em>'. - * @generated - */ - DefaultValueRule createDefaultValueRule(); - - /** - * Returns a new object of class '<em>Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Value</em>'. - * @generated - */ - Value createValue(); - - /** - * Returns a new object of class '<em>Int Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Int Value</em>'. - * @generated - */ - IntValue createIntValue(); - - /** - * Returns a new object of class '<em>String Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>String Value</em>'. - * @generated - */ - StringValue createStringValue(); - - /** - * Returns a new object of class '<em>Boolean Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Boolean Value</em>'. - * @generated - */ - BooleanValue createBooleanValue(); - - /** - * Returns a new object of class '<em>Real Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Real Value</em>'. - * @generated - */ - RealValue createRealValue(); - - /** - * Returns a new object of class '<em>Null Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>Null Value</em>'. - * @generated - */ - NullValue createNullValue(); - - /** - * Returns a new object of class '<em>No Value</em>'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return a new object of class '<em>No Value</em>'. - * @generated - */ - NoValue createNoValue(); - - /** - * Returns the package supported by this factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the package supported by this factory. - * @generated - */ - UmlPropertyPackage getUmlPropertyPackage(); - -} //UmlPropertyFactory +public interface UmlPropertyFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + UmlPropertyFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Property Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Property Rule</em>'. + * @generated + */ + PropertyRule createPropertyRule(); + + /** + * Returns a new object of class '<em>Visibility Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Visibility Rule</em>'. + * @generated + */ + VisibilityRule createVisibilityRule(); + + /** + * Returns a new object of class '<em>Type Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Type Rule</em>'. + * @generated + */ + TypeRule createTypeRule(); + + /** + * Returns a new object of class '<em>Qualified Name</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Qualified Name</em>'. + * @generated + */ + QualifiedName createQualifiedName(); + + /** + * Returns a new object of class '<em>Multiplicity Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Multiplicity Rule</em>'. + * @generated + */ + MultiplicityRule createMultiplicityRule(); + + /** + * Returns a new object of class '<em>Bound Specification</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Bound Specification</em>'. + * @generated + */ + BoundSpecification createBoundSpecification(); + + /** + * Returns a new object of class '<em>Modifiers Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Modifiers Rule</em>'. + * @generated + */ + ModifiersRule createModifiersRule(); + + /** + * Returns a new object of class '<em>Modifier Specification</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Modifier Specification</em>'. + * @generated + */ + ModifierSpecification createModifierSpecification(); + + /** + * Returns a new object of class '<em>Redefines Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Redefines Rule</em>'. + * @generated + */ + RedefinesRule createRedefinesRule(); + + /** + * Returns a new object of class '<em>Subsets Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Subsets Rule</em>'. + * @generated + */ + SubsetsRule createSubsetsRule(); + + /** + * Returns a new object of class '<em>Default Value Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Default Value Rule</em>'. + * @generated + */ + DefaultValueRule createDefaultValueRule(); + + /** + * Returns a new object of class '<em>Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Value</em>'. + * @generated + */ + Value createValue(); + + /** + * Returns a new object of class '<em>Int Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Int Value</em>'. + * @generated + */ + IntValue createIntValue(); + + /** + * Returns a new object of class '<em>String Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>String Value</em>'. + * @generated + */ + StringValue createStringValue(); + + /** + * Returns a new object of class '<em>Boolean Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Boolean Value</em>'. + * @generated + */ + BooleanValue createBooleanValue(); + + /** + * Returns a new object of class '<em>Real Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Real Value</em>'. + * @generated + */ + RealValue createRealValue(); + + /** + * Returns a new object of class '<em>Null Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>Null Value</em>'. + * @generated + */ + NullValue createNullValue(); + + /** + * Returns a new object of class '<em>No Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return a new object of class '<em>No Value</em>'. + * @generated + */ + NoValue createNoValue(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the package supported by this factory. + * @generated + */ + UmlPropertyPackage getUmlPropertyPackage(); + +} // UmlPropertyFactory diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java index 52938114ce5..c22a7815466 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java @@ -13,1622 +13,1789 @@ import org.eclipse.emf.ecore.EReference; * The <b>Package</b> for the model. * It contains accessors for the meta objects to represent * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> * </ul> * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyFactory * @model kind="package" * @generated */ -public interface UmlPropertyPackage extends EPackage -{ - /** - * The package name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNAME = "umlProperty"; - - /** - * The package namespace URI. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty"; - - /** - * The package namespace name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - String eNS_PREFIX = "umlProperty"; - - /** - * The singleton instance of the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - UmlPropertyPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule() - * @generated - */ - int PROPERTY_RULE = 0; - - /** - * The feature id for the '<em><b>Visibility</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__VISIBILITY = 0; - - /** - * The feature id for the '<em><b>Derived</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__DERIVED = 1; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__NAME = 2; - - /** - * The feature id for the '<em><b>Type</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__TYPE = 3; - - /** - * The feature id for the '<em><b>Type Undefined</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__TYPE_UNDEFINED = 4; - - /** - * The feature id for the '<em><b>Multiplicity</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__MULTIPLICITY = 5; - - /** - * The feature id for the '<em><b>Modifiers</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__MODIFIERS = 6; - - /** - * The feature id for the '<em><b>Default</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE__DEFAULT = 7; - - /** - * The number of structural features of the '<em>Property Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int PROPERTY_RULE_FEATURE_COUNT = 8; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule() - * @generated - */ - int VISIBILITY_RULE = 1; - - /** - * The feature id for the '<em><b>Visibility</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VISIBILITY_RULE__VISIBILITY = 0; - - /** - * The number of structural features of the '<em>Visibility Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VISIBILITY_RULE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule() - * @generated - */ - int TYPE_RULE = 2; - - /** - * The feature id for the '<em><b>Path</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TYPE_RULE__PATH = 0; - - /** - * The feature id for the '<em><b>Type</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TYPE_RULE__TYPE = 1; - - /** - * The number of structural features of the '<em>Type Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int TYPE_RULE_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName() - * @generated - */ - int QUALIFIED_NAME = 3; - - /** - * The feature id for the '<em><b>Path</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QUALIFIED_NAME__PATH = 0; - - /** - * The feature id for the '<em><b>Remaining</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QUALIFIED_NAME__REMAINING = 1; - - /** - * The number of structural features of the '<em>Qualified Name</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int QUALIFIED_NAME_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule() - * @generated - */ - int MULTIPLICITY_RULE = 4; - - /** - * The feature id for the '<em><b>Bounds</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MULTIPLICITY_RULE__BOUNDS = 0; - - /** - * The number of structural features of the '<em>Multiplicity Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MULTIPLICITY_RULE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification() - * @generated - */ - int BOUND_SPECIFICATION = 5; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOUND_SPECIFICATION__VALUE = 0; - - /** - * The number of structural features of the '<em>Bound Specification</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOUND_SPECIFICATION_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule() - * @generated - */ - int MODIFIERS_RULE = 6; - - /** - * The feature id for the '<em><b>Values</b></em>' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODIFIERS_RULE__VALUES = 0; - - /** - * The number of structural features of the '<em>Modifiers Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODIFIERS_RULE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification() - * @generated - */ - int MODIFIER_SPECIFICATION = 7; - - /** - * The feature id for the '<em><b>Value</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODIFIER_SPECIFICATION__VALUE = 0; - - /** - * The feature id for the '<em><b>Redefines</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODIFIER_SPECIFICATION__REDEFINES = 1; - - /** - * The feature id for the '<em><b>Subsets</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODIFIER_SPECIFICATION__SUBSETS = 2; - - /** - * The number of structural features of the '<em>Modifier Specification</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int MODIFIER_SPECIFICATION_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule() - * @generated - */ - int REDEFINES_RULE = 8; - - /** - * The feature id for the '<em><b>Property</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REDEFINES_RULE__PROPERTY = 0; - - /** - * The number of structural features of the '<em>Redefines Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REDEFINES_RULE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule() - * @generated - */ - int SUBSETS_RULE = 9; - - /** - * The feature id for the '<em><b>Property</b></em>' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SUBSETS_RULE__PROPERTY = 0; - - /** - * The number of structural features of the '<em>Subsets Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int SUBSETS_RULE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule() - * @generated - */ - int DEFAULT_VALUE_RULE = 10; - - /** - * The feature id for the '<em><b>Default</b></em>' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DEFAULT_VALUE_RULE__DEFAULT = 0; - - /** - * The number of structural features of the '<em>Default Value Rule</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int DEFAULT_VALUE_RULE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue() - * @generated - */ - int VALUE = 11; - - /** - * The number of structural features of the '<em>Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int VALUE_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue() - * @generated - */ - int INT_VALUE = 12; - - /** - * The feature id for the '<em><b>Literal Integer</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INT_VALUE__LITERAL_INTEGER = VALUE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Int Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int INT_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue() - * @generated - */ - int STRING_VALUE = 13; - - /** - * The feature id for the '<em><b>Literal String</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int STRING_VALUE__LITERAL_STRING = VALUE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>String Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int STRING_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue() - * @generated - */ - int BOOLEAN_VALUE = 14; - - /** - * The feature id for the '<em><b>Literal Boolean</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOLEAN_VALUE__LITERAL_BOOLEAN = VALUE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Boolean Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int BOOLEAN_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue() - * @generated - */ - int REAL_VALUE = 15; - - /** - * The feature id for the '<em><b>Integer</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REAL_VALUE__INTEGER = VALUE_FEATURE_COUNT + 0; - - /** - * The feature id for the '<em><b>Fraction</b></em>' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REAL_VALUE__FRACTION = VALUE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the '<em>Real Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int REAL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue() - * @generated - */ - int NULL_VALUE = 16; - - /** - * The number of structural features of the '<em>Null Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int NULL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue() - * @generated - */ - int NO_VALUE = 17; - - /** - * The number of structural features of the '<em>No Value</em>' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - int NO_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind() - * @generated - */ - int VISIBILITY_KIND = 18; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind() - * @generated - */ - int MODIFIER_KIND = 19; - - /** - * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals() - * @generated - */ - int BOOLEAN_LITERALS = 20; - - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Property Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule - * @generated - */ - EClass getPropertyRule(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Visibility</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility() - * @see #getPropertyRule() - * @generated - */ - EReference getPropertyRule_Visibility(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Derived</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived() - * @see #getPropertyRule() - * @generated - */ - EAttribute getPropertyRule_Derived(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName() - * @see #getPropertyRule() - * @generated - */ - EAttribute getPropertyRule_Name(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Type</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType() - * @see #getPropertyRule() - * @generated - */ - EReference getPropertyRule_Type(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Type Undefined</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined() - * @see #getPropertyRule() - * @generated - */ - EAttribute getPropertyRule_TypeUndefined(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Multiplicity</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity() - * @see #getPropertyRule() - * @generated - */ - EReference getPropertyRule_Multiplicity(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Modifiers</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers() - * @see #getPropertyRule() - * @generated - */ - EReference getPropertyRule_Modifiers(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Default</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault() - * @see #getPropertyRule() - * @generated - */ - EReference getPropertyRule_Default(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Visibility Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule - * @generated - */ - EClass getVisibilityRule(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Visibility</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility() - * @see #getVisibilityRule() - * @generated - */ - EAttribute getVisibilityRule_Visibility(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Type Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule - * @generated - */ - EClass getTypeRule(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Path</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath() - * @see #getTypeRule() - * @generated - */ - EReference getTypeRule_Path(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Type</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType() - * @see #getTypeRule() - * @generated - */ - EReference getTypeRule_Type(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Qualified Name</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName - * @generated - */ - EClass getQualifiedName(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Path</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath() - * @see #getQualifiedName() - * @generated - */ - EReference getQualifiedName_Path(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Remaining</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining() - * @see #getQualifiedName() - * @generated - */ - EReference getQualifiedName_Remaining(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Multiplicity Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule - * @generated - */ - EClass getMultiplicityRule(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Bounds</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds() - * @see #getMultiplicityRule() - * @generated - */ - EReference getMultiplicityRule_Bounds(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Bound Specification</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification - * @generated - */ - EClass getBoundSpecification(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue() - * @see #getBoundSpecification() - * @generated - */ - EAttribute getBoundSpecification_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Modifiers Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule - * @generated - */ - EClass getModifiersRule(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference list '<em>Values</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues() - * @see #getModifiersRule() - * @generated - */ - EReference getModifiersRule_Values(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Modifier Specification</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification - * @generated - */ - EClass getModifierSpecification(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue() - * @see #getModifierSpecification() - * @generated - */ - EAttribute getModifierSpecification_Value(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Redefines</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines() - * @see #getModifierSpecification() - * @generated - */ - EReference getModifierSpecification_Redefines(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Subsets</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets() - * @see #getModifierSpecification() - * @generated - */ - EReference getModifierSpecification_Subsets(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Redefines Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule - * @generated - */ - EClass getRedefinesRule(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Property</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty() - * @see #getRedefinesRule() - * @generated - */ - EReference getRedefinesRule_Property(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Subsets Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule - * @generated - */ - EClass getSubsetsRule(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the reference '<em>Property</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty() - * @see #getSubsetsRule() - * @generated - */ - EReference getSubsetsRule_Property(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Default Value Rule</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule - * @generated - */ - EClass getDefaultValueRule(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the containment reference '<em>Default</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault() - * @see #getDefaultValueRule() - * @generated - */ - EReference getDefaultValueRule_Default(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value - * @generated - */ - EClass getValue(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Int Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue - * @generated - */ - EClass getIntValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Literal Integer</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger() - * @see #getIntValue() - * @generated - */ - EAttribute getIntValue_LiteralInteger(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>String Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue - * @generated - */ - EClass getStringValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Literal String</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString() - * @see #getStringValue() - * @generated - */ - EAttribute getStringValue_LiteralString(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Boolean Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue - * @generated - */ - EClass getBooleanValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Literal Boolean</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean() - * @see #getBooleanValue() - * @generated - */ - EAttribute getBooleanValue_LiteralBoolean(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Real Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue - * @generated - */ - EClass getRealValue(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Integer</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger() - * @see #getRealValue() - * @generated - */ - EAttribute getRealValue_Integer(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for the attribute '<em>Fraction</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction() - * @see #getRealValue() - * @generated - */ - EAttribute getRealValue_Fraction(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>Null Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue - * @generated - */ - EClass getNullValue(); - - /** - * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for class '<em>No Value</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue - * @generated - */ - EClass getNoValue(); - - /** - * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Visibility Kind</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind - * @generated - */ - EEnum getVisibilityKind(); - - /** - * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Modifier Kind</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind - * @generated - */ - EEnum getModifierKind(); - - /** - * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}'. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the meta object for enum '<em>Boolean Literals</em>'. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals - * @generated - */ - EEnum getBooleanLiterals(); - - /** - * Returns the factory that creates the instances of the model. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the factory that creates the instances of the model. - * @generated - */ - UmlPropertyFactory getUmlPropertyFactory(); - - /** - * <!-- begin-user-doc --> - * Defines literals for the meta objects that represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * @generated - */ - interface Literals - { - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule() - * @generated - */ - EClass PROPERTY_RULE = eINSTANCE.getPropertyRule(); - - /** - * The meta object literal for the '<em><b>Visibility</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference PROPERTY_RULE__VISIBILITY = eINSTANCE.getPropertyRule_Visibility(); - - /** - * The meta object literal for the '<em><b>Derived</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute PROPERTY_RULE__DERIVED = eINSTANCE.getPropertyRule_Derived(); - - /** - * The meta object literal for the '<em><b>Name</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute PROPERTY_RULE__NAME = eINSTANCE.getPropertyRule_Name(); - - /** - * The meta object literal for the '<em><b>Type</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference PROPERTY_RULE__TYPE = eINSTANCE.getPropertyRule_Type(); - - /** - * The meta object literal for the '<em><b>Type Undefined</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute PROPERTY_RULE__TYPE_UNDEFINED = eINSTANCE.getPropertyRule_TypeUndefined(); - - /** - * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference PROPERTY_RULE__MULTIPLICITY = eINSTANCE.getPropertyRule_Multiplicity(); - - /** - * The meta object literal for the '<em><b>Modifiers</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference PROPERTY_RULE__MODIFIERS = eINSTANCE.getPropertyRule_Modifiers(); - - /** - * The meta object literal for the '<em><b>Default</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference PROPERTY_RULE__DEFAULT = eINSTANCE.getPropertyRule_Default(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule() - * @generated - */ - EClass VISIBILITY_RULE = eINSTANCE.getVisibilityRule(); - - /** - * The meta object literal for the '<em><b>Visibility</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute VISIBILITY_RULE__VISIBILITY = eINSTANCE.getVisibilityRule_Visibility(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule() - * @generated - */ - EClass TYPE_RULE = eINSTANCE.getTypeRule(); - - /** - * The meta object literal for the '<em><b>Path</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference TYPE_RULE__PATH = eINSTANCE.getTypeRule_Path(); - - /** - * The meta object literal for the '<em><b>Type</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference TYPE_RULE__TYPE = eINSTANCE.getTypeRule_Type(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName() - * @generated - */ - EClass QUALIFIED_NAME = eINSTANCE.getQualifiedName(); - - /** - * The meta object literal for the '<em><b>Path</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference QUALIFIED_NAME__PATH = eINSTANCE.getQualifiedName_Path(); - - /** - * The meta object literal for the '<em><b>Remaining</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference QUALIFIED_NAME__REMAINING = eINSTANCE.getQualifiedName_Remaining(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule() - * @generated - */ - EClass MULTIPLICITY_RULE = eINSTANCE.getMultiplicityRule(); - - /** - * The meta object literal for the '<em><b>Bounds</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MULTIPLICITY_RULE__BOUNDS = eINSTANCE.getMultiplicityRule_Bounds(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification() - * @generated - */ - EClass BOUND_SPECIFICATION = eINSTANCE.getBoundSpecification(); - - /** - * The meta object literal for the '<em><b>Value</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute BOUND_SPECIFICATION__VALUE = eINSTANCE.getBoundSpecification_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule() - * @generated - */ - EClass MODIFIERS_RULE = eINSTANCE.getModifiersRule(); - - /** - * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MODIFIERS_RULE__VALUES = eINSTANCE.getModifiersRule_Values(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification() - * @generated - */ - EClass MODIFIER_SPECIFICATION = eINSTANCE.getModifierSpecification(); - - /** - * The meta object literal for the '<em><b>Value</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute MODIFIER_SPECIFICATION__VALUE = eINSTANCE.getModifierSpecification_Value(); - - /** - * The meta object literal for the '<em><b>Redefines</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MODIFIER_SPECIFICATION__REDEFINES = eINSTANCE.getModifierSpecification_Redefines(); - - /** - * The meta object literal for the '<em><b>Subsets</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference MODIFIER_SPECIFICATION__SUBSETS = eINSTANCE.getModifierSpecification_Subsets(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule() - * @generated - */ - EClass REDEFINES_RULE = eINSTANCE.getRedefinesRule(); - - /** - * The meta object literal for the '<em><b>Property</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference REDEFINES_RULE__PROPERTY = eINSTANCE.getRedefinesRule_Property(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule() - * @generated - */ - EClass SUBSETS_RULE = eINSTANCE.getSubsetsRule(); - - /** - * The meta object literal for the '<em><b>Property</b></em>' reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference SUBSETS_RULE__PROPERTY = eINSTANCE.getSubsetsRule_Property(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule() - * @generated - */ - EClass DEFAULT_VALUE_RULE = eINSTANCE.getDefaultValueRule(); - - /** - * The meta object literal for the '<em><b>Default</b></em>' containment reference feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EReference DEFAULT_VALUE_RULE__DEFAULT = eINSTANCE.getDefaultValueRule_Default(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue() - * @generated - */ - EClass VALUE = eINSTANCE.getValue(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue() - * @generated - */ - EClass INT_VALUE = eINSTANCE.getIntValue(); - - /** - * The meta object literal for the '<em><b>Literal Integer</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute INT_VALUE__LITERAL_INTEGER = eINSTANCE.getIntValue_LiteralInteger(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue() - * @generated - */ - EClass STRING_VALUE = eINSTANCE.getStringValue(); - - /** - * The meta object literal for the '<em><b>Literal String</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute STRING_VALUE__LITERAL_STRING = eINSTANCE.getStringValue_LiteralString(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue() - * @generated - */ - EClass BOOLEAN_VALUE = eINSTANCE.getBooleanValue(); - - /** - * The meta object literal for the '<em><b>Literal Boolean</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute BOOLEAN_VALUE__LITERAL_BOOLEAN = eINSTANCE.getBooleanValue_LiteralBoolean(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue() - * @generated - */ - EClass REAL_VALUE = eINSTANCE.getRealValue(); - - /** - * The meta object literal for the '<em><b>Integer</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute REAL_VALUE__INTEGER = eINSTANCE.getRealValue_Integer(); - - /** - * The meta object literal for the '<em><b>Fraction</b></em>' attribute feature. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - EAttribute REAL_VALUE__FRACTION = eINSTANCE.getRealValue_Fraction(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue() - * @generated - */ - EClass NULL_VALUE = eINSTANCE.getNullValue(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue() - * @generated - */ - EClass NO_VALUE = eINSTANCE.getNoValue(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind() - * @generated - */ - EEnum VISIBILITY_KIND = eINSTANCE.getVisibilityKind(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind() - * @generated - */ - EEnum MODIFIER_KIND = eINSTANCE.getModifierKind(); - - /** - * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals() - * @generated - */ - EEnum BOOLEAN_LITERALS = eINSTANCE.getBooleanLiterals(); - - } - -} //UmlPropertyPackage +public interface UmlPropertyPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNAME = "umlProperty"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + String eNS_PREFIX = "umlProperty"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + UmlPropertyPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule() + * @generated + */ + int PROPERTY_RULE = 0; + + /** + * The feature id for the '<em><b>Visibility</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__VISIBILITY = 0; + + /** + * The feature id for the '<em><b>Derived</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__DERIVED = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__NAME = 2; + + /** + * The feature id for the '<em><b>Type</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__TYPE = 3; + + /** + * The feature id for the '<em><b>Type Undefined</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__TYPE_UNDEFINED = 4; + + /** + * The feature id for the '<em><b>Multiplicity</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__MULTIPLICITY = 5; + + /** + * The feature id for the '<em><b>Modifiers</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__MODIFIERS = 6; + + /** + * The feature id for the '<em><b>Default</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE__DEFAULT = 7; + + /** + * The number of structural features of the '<em>Property Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PROPERTY_RULE_FEATURE_COUNT = 8; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule() + * @generated + */ + int VISIBILITY_RULE = 1; + + /** + * The feature id for the '<em><b>Visibility</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VISIBILITY_RULE__VISIBILITY = 0; + + /** + * The number of structural features of the '<em>Visibility Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VISIBILITY_RULE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule() + * @generated + */ + int TYPE_RULE = 2; + + /** + * The feature id for the '<em><b>Path</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TYPE_RULE__PATH = 0; + + /** + * The feature id for the '<em><b>Type</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TYPE_RULE__TYPE = 1; + + /** + * The number of structural features of the '<em>Type Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int TYPE_RULE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName() + * @generated + */ + int QUALIFIED_NAME = 3; + + /** + * The feature id for the '<em><b>Path</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int QUALIFIED_NAME__PATH = 0; + + /** + * The feature id for the '<em><b>Remaining</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int QUALIFIED_NAME__REMAINING = 1; + + /** + * The number of structural features of the '<em>Qualified Name</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int QUALIFIED_NAME_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule() + * @generated + */ + int MULTIPLICITY_RULE = 4; + + /** + * The feature id for the '<em><b>Bounds</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MULTIPLICITY_RULE__BOUNDS = 0; + + /** + * The number of structural features of the '<em>Multiplicity Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MULTIPLICITY_RULE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification() + * @generated + */ + int BOUND_SPECIFICATION = 5; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int BOUND_SPECIFICATION__VALUE = 0; + + /** + * The number of structural features of the '<em>Bound Specification</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int BOUND_SPECIFICATION_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule() + * @generated + */ + int MODIFIERS_RULE = 6; + + /** + * The feature id for the '<em><b>Values</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODIFIERS_RULE__VALUES = 0; + + /** + * The number of structural features of the '<em>Modifiers Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODIFIERS_RULE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification() + * @generated + */ + int MODIFIER_SPECIFICATION = 7; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODIFIER_SPECIFICATION__VALUE = 0; + + /** + * The feature id for the '<em><b>Redefines</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODIFIER_SPECIFICATION__REDEFINES = 1; + + /** + * The feature id for the '<em><b>Subsets</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODIFIER_SPECIFICATION__SUBSETS = 2; + + /** + * The number of structural features of the '<em>Modifier Specification</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int MODIFIER_SPECIFICATION_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule() + * @generated + */ + int REDEFINES_RULE = 8; + + /** + * The feature id for the '<em><b>Property</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REDEFINES_RULE__PROPERTY = 0; + + /** + * The number of structural features of the '<em>Redefines Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REDEFINES_RULE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule() + * @generated + */ + int SUBSETS_RULE = 9; + + /** + * The feature id for the '<em><b>Property</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SUBSETS_RULE__PROPERTY = 0; + + /** + * The number of structural features of the '<em>Subsets Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SUBSETS_RULE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule() + * @generated + */ + int DEFAULT_VALUE_RULE = 10; + + /** + * The feature id for the '<em><b>Default</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DEFAULT_VALUE_RULE__DEFAULT = 0; + + /** + * The number of structural features of the '<em>Default Value Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int DEFAULT_VALUE_RULE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue() + * @generated + */ + int VALUE = 11; + + /** + * The number of structural features of the '<em>Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int VALUE_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue() + * @generated + */ + int INT_VALUE = 12; + + /** + * The feature id for the '<em><b>Literal Integer</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int INT_VALUE__LITERAL_INTEGER = VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Int Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int INT_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue() + * @generated + */ + int STRING_VALUE = 13; + + /** + * The feature id for the '<em><b>Literal String</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STRING_VALUE__LITERAL_STRING = VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>String Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int STRING_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue() + * @generated + */ + int BOOLEAN_VALUE = 14; + + /** + * The feature id for the '<em><b>Literal Boolean</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int BOOLEAN_VALUE__LITERAL_BOOLEAN = VALUE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Boolean Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int BOOLEAN_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue() + * @generated + */ + int REAL_VALUE = 15; + + /** + * The feature id for the '<em><b>Integer</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REAL_VALUE__INTEGER = VALUE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Fraction</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REAL_VALUE__FRACTION = VALUE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Real Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int REAL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue() + * @generated + */ + int NULL_VALUE = 16; + + /** + * The number of structural features of the '<em>Null Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int NULL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue() + * @generated + */ + int NO_VALUE = 17; + + /** + * The number of structural features of the '<em>No Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int NO_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind() + * @generated + */ + int VISIBILITY_KIND = 18; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind() + * @generated + */ + int MODIFIER_KIND = 19; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals() + * @generated + */ + int BOOLEAN_LITERALS = 20; + + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Property Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule + * @generated + */ + EClass getPropertyRule(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Visibility</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility() + * @see #getPropertyRule() + * @generated + */ + EReference getPropertyRule_Visibility(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Derived</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived() + * @see #getPropertyRule() + * @generated + */ + EAttribute getPropertyRule_Derived(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName() + * @see #getPropertyRule() + * @generated + */ + EAttribute getPropertyRule_Name(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Type</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType() + * @see #getPropertyRule() + * @generated + */ + EReference getPropertyRule_Type(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Type Undefined</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined() + * @see #getPropertyRule() + * @generated + */ + EAttribute getPropertyRule_TypeUndefined(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Multiplicity</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity() + * @see #getPropertyRule() + * @generated + */ + EReference getPropertyRule_Multiplicity(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Modifiers</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers() + * @see #getPropertyRule() + * @generated + */ + EReference getPropertyRule_Modifiers(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Default</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault() + * @see #getPropertyRule() + * @generated + */ + EReference getPropertyRule_Default(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Visibility Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule + * @generated + */ + EClass getVisibilityRule(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Visibility</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility() + * @see #getVisibilityRule() + * @generated + */ + EAttribute getVisibilityRule_Visibility(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Type Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule + * @generated + */ + EClass getTypeRule(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Path</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath() + * @see #getTypeRule() + * @generated + */ + EReference getTypeRule_Path(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Type</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType() + * @see #getTypeRule() + * @generated + */ + EReference getTypeRule_Type(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Qualified Name</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName + * @generated + */ + EClass getQualifiedName(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Path</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath() + * @see #getQualifiedName() + * @generated + */ + EReference getQualifiedName_Path(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Remaining</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining() + * @see #getQualifiedName() + * @generated + */ + EReference getQualifiedName_Remaining(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Multiplicity Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule + * @generated + */ + EClass getMultiplicityRule(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Bounds</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds() + * @see #getMultiplicityRule() + * @generated + */ + EReference getMultiplicityRule_Bounds(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Bound Specification</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification + * @generated + */ + EClass getBoundSpecification(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue() + * @see #getBoundSpecification() + * @generated + */ + EAttribute getBoundSpecification_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Modifiers Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule + * @generated + */ + EClass getModifiersRule(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Values</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues() + * @see #getModifiersRule() + * @generated + */ + EReference getModifiersRule_Values(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Modifier Specification</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification + * @generated + */ + EClass getModifierSpecification(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue() + * @see #getModifierSpecification() + * @generated + */ + EAttribute getModifierSpecification_Value(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Redefines</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines() + * @see #getModifierSpecification() + * @generated + */ + EReference getModifierSpecification_Redefines(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Subsets</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets() + * @see #getModifierSpecification() + * @generated + */ + EReference getModifierSpecification_Subsets(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Redefines Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule + * @generated + */ + EClass getRedefinesRule(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Property</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty() + * @see #getRedefinesRule() + * @generated + */ + EReference getRedefinesRule_Property(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Subsets Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule + * @generated + */ + EClass getSubsetsRule(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Property</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty() + * @see #getSubsetsRule() + * @generated + */ + EReference getSubsetsRule_Property(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Default Value Rule</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule + * @generated + */ + EClass getDefaultValueRule(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Default</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault() + * @see #getDefaultValueRule() + * @generated + */ + EReference getDefaultValueRule_Default(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value + * @generated + */ + EClass getValue(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Int Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue + * @generated + */ + EClass getIntValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Literal Integer</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger() + * @see #getIntValue() + * @generated + */ + EAttribute getIntValue_LiteralInteger(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>String Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue + * @generated + */ + EClass getStringValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Literal String</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString() + * @see #getStringValue() + * @generated + */ + EAttribute getStringValue_LiteralString(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Boolean Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue + * @generated + */ + EClass getBooleanValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Literal Boolean</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean() + * @see #getBooleanValue() + * @generated + */ + EAttribute getBooleanValue_LiteralBoolean(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Real Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue + * @generated + */ + EClass getRealValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Integer</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger() + * @see #getRealValue() + * @generated + */ + EAttribute getRealValue_Integer(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Fraction</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction() + * @see #getRealValue() + * @generated + */ + EAttribute getRealValue_Fraction(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>Null Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue + * @generated + */ + EClass getNullValue(); + + /** + * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for class '<em>No Value</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue + * @generated + */ + EClass getNoValue(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for enum '<em>Visibility Kind</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind + * @generated + */ + EEnum getVisibilityKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for enum '<em>Modifier Kind</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind + * @generated + */ + EEnum getModifierKind(); + + /** + * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for enum '<em>Boolean Literals</em>'. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals + * @generated + */ + EEnum getBooleanLiterals(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the factory that creates the instances of the model. + * @generated + */ + UmlPropertyFactory getUmlPropertyFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule() + * @generated + */ + EClass PROPERTY_RULE = eINSTANCE.getPropertyRule(); + + /** + * The meta object literal for the '<em><b>Visibility</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_RULE__VISIBILITY = eINSTANCE.getPropertyRule_Visibility(); + + /** + * The meta object literal for the '<em><b>Derived</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_RULE__DERIVED = eINSTANCE.getPropertyRule_Derived(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_RULE__NAME = eINSTANCE.getPropertyRule_Name(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_RULE__TYPE = eINSTANCE.getPropertyRule_Type(); + + /** + * The meta object literal for the '<em><b>Type Undefined</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute PROPERTY_RULE__TYPE_UNDEFINED = eINSTANCE.getPropertyRule_TypeUndefined(); + + /** + * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_RULE__MULTIPLICITY = eINSTANCE.getPropertyRule_Multiplicity(); + + /** + * The meta object literal for the '<em><b>Modifiers</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_RULE__MODIFIERS = eINSTANCE.getPropertyRule_Modifiers(); + + /** + * The meta object literal for the '<em><b>Default</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PROPERTY_RULE__DEFAULT = eINSTANCE.getPropertyRule_Default(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule() + * @generated + */ + EClass VISIBILITY_RULE = eINSTANCE.getVisibilityRule(); + + /** + * The meta object literal for the '<em><b>Visibility</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute VISIBILITY_RULE__VISIBILITY = eINSTANCE.getVisibilityRule_Visibility(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule() + * @generated + */ + EClass TYPE_RULE = eINSTANCE.getTypeRule(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference TYPE_RULE__PATH = eINSTANCE.getTypeRule_Path(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference TYPE_RULE__TYPE = eINSTANCE.getTypeRule_Type(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName() + * @generated + */ + EClass QUALIFIED_NAME = eINSTANCE.getQualifiedName(); + + /** + * The meta object literal for the '<em><b>Path</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference QUALIFIED_NAME__PATH = eINSTANCE.getQualifiedName_Path(); + + /** + * The meta object literal for the '<em><b>Remaining</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference QUALIFIED_NAME__REMAINING = eINSTANCE.getQualifiedName_Remaining(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule() + * @generated + */ + EClass MULTIPLICITY_RULE = eINSTANCE.getMultiplicityRule(); + + /** + * The meta object literal for the '<em><b>Bounds</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference MULTIPLICITY_RULE__BOUNDS = eINSTANCE.getMultiplicityRule_Bounds(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification() + * @generated + */ + EClass BOUND_SPECIFICATION = eINSTANCE.getBoundSpecification(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute BOUND_SPECIFICATION__VALUE = eINSTANCE.getBoundSpecification_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule() + * @generated + */ + EClass MODIFIERS_RULE = eINSTANCE.getModifiersRule(); + + /** + * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference MODIFIERS_RULE__VALUES = eINSTANCE.getModifiersRule_Values(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification() + * @generated + */ + EClass MODIFIER_SPECIFICATION = eINSTANCE.getModifierSpecification(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute MODIFIER_SPECIFICATION__VALUE = eINSTANCE.getModifierSpecification_Value(); + + /** + * The meta object literal for the '<em><b>Redefines</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference MODIFIER_SPECIFICATION__REDEFINES = eINSTANCE.getModifierSpecification_Redefines(); + + /** + * The meta object literal for the '<em><b>Subsets</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference MODIFIER_SPECIFICATION__SUBSETS = eINSTANCE.getModifierSpecification_Subsets(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule() + * @generated + */ + EClass REDEFINES_RULE = eINSTANCE.getRedefinesRule(); + + /** + * The meta object literal for the '<em><b>Property</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference REDEFINES_RULE__PROPERTY = eINSTANCE.getRedefinesRule_Property(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule() + * @generated + */ + EClass SUBSETS_RULE = eINSTANCE.getSubsetsRule(); + + /** + * The meta object literal for the '<em><b>Property</b></em>' reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference SUBSETS_RULE__PROPERTY = eINSTANCE.getSubsetsRule_Property(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule() + * @generated + */ + EClass DEFAULT_VALUE_RULE = eINSTANCE.getDefaultValueRule(); + + /** + * The meta object literal for the '<em><b>Default</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference DEFAULT_VALUE_RULE__DEFAULT = eINSTANCE.getDefaultValueRule_Default(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue() + * @generated + */ + EClass VALUE = eINSTANCE.getValue(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue() + * @generated + */ + EClass INT_VALUE = eINSTANCE.getIntValue(); + + /** + * The meta object literal for the '<em><b>Literal Integer</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute INT_VALUE__LITERAL_INTEGER = eINSTANCE.getIntValue_LiteralInteger(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue() + * @generated + */ + EClass STRING_VALUE = eINSTANCE.getStringValue(); + + /** + * The meta object literal for the '<em><b>Literal String</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute STRING_VALUE__LITERAL_STRING = eINSTANCE.getStringValue_LiteralString(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue() + * @generated + */ + EClass BOOLEAN_VALUE = eINSTANCE.getBooleanValue(); + + /** + * The meta object literal for the '<em><b>Literal Boolean</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute BOOLEAN_VALUE__LITERAL_BOOLEAN = eINSTANCE.getBooleanValue_LiteralBoolean(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue() + * @generated + */ + EClass REAL_VALUE = eINSTANCE.getRealValue(); + + /** + * The meta object literal for the '<em><b>Integer</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute REAL_VALUE__INTEGER = eINSTANCE.getRealValue_Integer(); + + /** + * The meta object literal for the '<em><b>Fraction</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EAttribute REAL_VALUE__FRACTION = eINSTANCE.getRealValue_Fraction(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue() + * @generated + */ + EClass NULL_VALUE = eINSTANCE.getNullValue(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue() + * @generated + */ + EClass NO_VALUE = eINSTANCE.getNoValue(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind() + * @generated + */ + EEnum VISIBILITY_KIND = eINSTANCE.getVisibilityKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind() + * @generated + */ + EEnum MODIFIER_KIND = eINSTANCE.getModifierKind(); + + /** + * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals() + * @generated + */ + EEnum BOOLEAN_LITERALS = eINSTANCE.getBooleanLiterals(); + + } + +} // UmlPropertyPackage diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/Value.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/Value.java index 0919f5b6123..459a8bbf0ce 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/Value.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/Value.java @@ -14,6 +14,5 @@ import org.eclipse.emf.ecore.EObject; * @model * @generated */ -public interface Value extends EObject -{ +public interface Value extends EObject { } // Value diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java index 6d47ab192d7..18a01e63310 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java @@ -13,271 +13,284 @@ import org.eclipse.emf.common.util.Enumerator; * A representation of the literals of the enumeration '<em><b>Visibility Kind</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityKind() * @model * @generated */ -public enum VisibilityKind implements Enumerator -{ - /** - * The '<em><b>Public</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #PUBLIC_VALUE - * @generated - * @ordered - */ - PUBLIC(0, "public", "+"), +public enum VisibilityKind implements Enumerator { + /** + * The '<em><b>Public</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #PUBLIC_VALUE + * @generated + * @ordered + */ + PUBLIC(0, "public", "+"), - /** - * The '<em><b>Private</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #PRIVATE_VALUE - * @generated - * @ordered - */ - PRIVATE(1, "private", "-"), + /** + * The '<em><b>Private</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #PRIVATE_VALUE + * @generated + * @ordered + */ + PRIVATE(1, "private", "-"), - /** - * The '<em><b>Protected</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #PROTECTED_VALUE - * @generated - * @ordered - */ - PROTECTED(2, "protected", "#"), + /** + * The '<em><b>Protected</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #PROTECTED_VALUE + * @generated + * @ordered + */ + PROTECTED(2, "protected", "#"), - /** - * The '<em><b>Package</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #PACKAGE_VALUE - * @generated - * @ordered - */ - PACKAGE(3, "package", "~"); + /** + * The '<em><b>Package</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #PACKAGE_VALUE + * @generated + * @ordered + */ + PACKAGE(3, "package", "~"); - /** - * The '<em><b>Public</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Public</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #PUBLIC - * @model name="public" literal="+" - * @generated - * @ordered - */ - public static final int PUBLIC_VALUE = 0; + /** + * The '<em><b>Public</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Public</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #PUBLIC + * @model name="public" literal="+" + * @generated + * @ordered + */ + public static final int PUBLIC_VALUE = 0; - /** - * The '<em><b>Private</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Private</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #PRIVATE - * @model name="private" literal="-" - * @generated - * @ordered - */ - public static final int PRIVATE_VALUE = 1; + /** + * The '<em><b>Private</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Private</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #PRIVATE + * @model name="private" literal="-" + * @generated + * @ordered + */ + public static final int PRIVATE_VALUE = 1; - /** - * The '<em><b>Protected</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #PROTECTED - * @model name="protected" literal="#" - * @generated - * @ordered - */ - public static final int PROTECTED_VALUE = 2; + /** + * The '<em><b>Protected</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #PROTECTED + * @model name="protected" literal="#" + * @generated + * @ordered + */ + public static final int PROTECTED_VALUE = 2; - /** - * The '<em><b>Package</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Package</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #PACKAGE - * @model name="package" literal="~" - * @generated - * @ordered - */ - public static final int PACKAGE_VALUE = 3; + /** + * The '<em><b>Package</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Package</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #PACKAGE + * @model name="package" literal="~" + * @generated + * @ordered + */ + public static final int PACKAGE_VALUE = 3; - /** - * An array of all the '<em><b>Visibility Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final VisibilityKind[] VALUES_ARRAY = - new VisibilityKind[] - { - PUBLIC, - PRIVATE, - PROTECTED, - PACKAGE, - }; + /** + * An array of all the '<em><b>Visibility Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static final VisibilityKind[] VALUES_ARRAY = new VisibilityKind[] { + PUBLIC, + PRIVATE, + PROTECTED, + PACKAGE, + }; - /** - * A public read-only list of all the '<em><b>Visibility Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List<VisibilityKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + /** + * A public read-only list of all the '<em><b>Visibility Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static final List<VisibilityKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - /** - * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param literal the literal. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static VisibilityKind get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - VisibilityKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } + /** + * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param literal + * the literal. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static VisibilityKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + VisibilityKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } - /** - * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param name the name. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static VisibilityKind getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - VisibilityKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } + /** + * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param name + * the name. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static VisibilityKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + VisibilityKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } - /** - * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified integer value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the integer value. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static VisibilityKind get(int value) - { - switch (value) - { - case PUBLIC_VALUE: return PUBLIC; - case PRIVATE_VALUE: return PRIVATE; - case PROTECTED_VALUE: return PROTECTED; - case PACKAGE_VALUE: return PACKAGE; - } - return null; - } + /** + * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the integer value. + * @return the matching enumerator or <code>null</code>. + * @generated + */ + public static VisibilityKind get(int value) { + switch (value) { + case PUBLIC_VALUE: + return PUBLIC; + case PRIVATE_VALUE: + return PRIVATE; + case PROTECTED_VALUE: + return PROTECTED; + case PACKAGE_VALUE: + return PACKAGE; + } + return null; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final int value; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final int value; - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String name; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String name; - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String literal; + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private final String literal; - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private VisibilityKind(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private VisibilityKind(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getValue() - { - return value; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public int getValue() { + return value; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() - { - return name; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getName() { + return name; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLiteral() - { - return literal; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getLiteral() { + return literal; + } - /** - * Returns the literal value of the enumerator, which is its string representation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - return literal; - } - -} //VisibilityKind + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} // VisibilityKind diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java index 8bcdad6cd62..4a0d200f516 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java @@ -13,42 +13,44 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}</li> * </ul> * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityRule() * @model * @generated */ -public interface VisibilityRule extends EObject -{ - /** - * Returns the value of the '<em><b>Visibility</b></em>' attribute. - * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Visibility</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Visibility</em>' attribute. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind - * @see #setVisibility(VisibilityKind) - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityRule_Visibility() - * @model - * @generated - */ - VisibilityKind getVisibility(); +public interface VisibilityRule extends EObject { + /** + * Returns the value of the '<em><b>Visibility</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Visibility</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Visibility</em>' attribute. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind + * @see #setVisibility(VisibilityKind) + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityRule_Visibility() + * @model + * @generated + */ + VisibilityKind getVisibility(); - /** - * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Visibility</em>' attribute. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind - * @see #getVisibility() - * @generated - */ - void setVisibility(VisibilityKind value); + /** + * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Visibility</em>' attribute. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind + * @see #getVisibility() + * @generated + */ + void setVisibility(VisibilityKind value); } // VisibilityRule diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java index fc931408f3f..df53bcb04c4 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java @@ -3,11 +3,8 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -20,158 +17,156 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl#getLiteralBoolean <em>Literal Boolean</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl#getLiteralBoolean <em>Literal Boolean</em>}</li> * </ul> * * @generated */ -public class BooleanValueImpl extends ValueImpl implements BooleanValue -{ - /** - * The default value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLiteralBoolean() - * @generated - * @ordered - */ - protected static final BooleanLiterals LITERAL_BOOLEAN_EDEFAULT = BooleanLiterals.TRUE; - - /** - * The cached value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLiteralBoolean() - * @generated - * @ordered - */ - protected BooleanLiterals literalBoolean = LITERAL_BOOLEAN_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BooleanValueImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.BOOLEAN_VALUE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BooleanLiterals getLiteralBoolean() - { - return literalBoolean; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLiteralBoolean(BooleanLiterals newLiteralBoolean) - { - BooleanLiterals oldLiteralBoolean = literalBoolean; - literalBoolean = newLiteralBoolean == null ? LITERAL_BOOLEAN_EDEFAULT : newLiteralBoolean; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN, oldLiteralBoolean, literalBoolean)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: - return getLiteralBoolean(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: - setLiteralBoolean((BooleanLiterals)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: - setLiteralBoolean(LITERAL_BOOLEAN_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: - return literalBoolean != LITERAL_BOOLEAN_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (literalBoolean: "); - result.append(literalBoolean); - result.append(')'); - return result.toString(); - } - -} //BooleanValueImpl +public class BooleanValueImpl extends ValueImpl implements BooleanValue { + /** + * The default value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLiteralBoolean() + * @generated + * @ordered + */ + protected static final BooleanLiterals LITERAL_BOOLEAN_EDEFAULT = BooleanLiterals.TRUE; + + /** + * The cached value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLiteralBoolean() + * @generated + * @ordered + */ + protected BooleanLiterals literalBoolean = LITERAL_BOOLEAN_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected BooleanValueImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.BOOLEAN_VALUE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public BooleanLiterals getLiteralBoolean() { + return literalBoolean; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setLiteralBoolean(BooleanLiterals newLiteralBoolean) { + BooleanLiterals oldLiteralBoolean = literalBoolean; + literalBoolean = newLiteralBoolean == null ? LITERAL_BOOLEAN_EDEFAULT : newLiteralBoolean; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN, oldLiteralBoolean, literalBoolean)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: + return getLiteralBoolean(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: + setLiteralBoolean((BooleanLiterals) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: + setLiteralBoolean(LITERAL_BOOLEAN_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN: + return literalBoolean != LITERAL_BOOLEAN_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (literalBoolean: "); + result.append(literalBoolean); + result.append(')'); + return result.toString(); + } + +} // BooleanValueImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java index 2813f51c874..b5b5591071f 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java @@ -3,12 +3,9 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -20,158 +17,156 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl#getValue <em>Value</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl#getValue <em>Value</em>}</li> * </ul> * * @generated */ -public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification -{ - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected BoundSpecificationImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.BOUND_SPECIFICATION; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getValue() - { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValue(String newValue) - { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOUND_SPECIFICATION__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: - return getValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: - setValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} //BoundSpecificationImpl +public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification { + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected BoundSpecificationImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.BOUND_SPECIFICATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOUND_SPECIFICATION__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: + setValue((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} // BoundSpecificationImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java index 558b94ecb97..39c94cf9294 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java @@ -4,13 +4,10 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; @@ -23,172 +20,168 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li> * </ul> * * @generated */ -public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule -{ - /** - * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDefault() - * @generated - * @ordered - */ - protected Value default_; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected DefaultValueRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Value getDefault() - { - return default_; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs) - { - Value oldDefault = default_; - default_ = newDefault; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDefault(Value newDefault) - { - if (newDefault != default_) - { - NotificationChain msgs = null; - if (default_ != null) - msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); - if (newDefault != null) - msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); - msgs = basicSetDefault(newDefault, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: - return basicSetDefault(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: - return getDefault(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: - setDefault((Value)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: - setDefault((Value)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: - return default_ != null; - } - return super.eIsSet(featureID); - } - -} //DefaultValueRuleImpl +public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule { + /** + * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getDefault() + * @generated + * @ordered + */ + protected Value default_; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected DefaultValueRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Value getDefault() { + return default_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs) { + Value oldDefault = default_; + default_ = newDefault; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setDefault(Value newDefault) { + if (newDefault != default_) { + NotificationChain msgs = null; + if (default_ != null) + msgs = ((InternalEObject) default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); + if (newDefault != null) + msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); + msgs = basicSetDefault(newDefault, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: + return basicSetDefault(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: + return getDefault(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: + setDefault((Value) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: + setDefault((Value) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: + return default_ != null; + } + return super.eIsSet(featureID); + } + +} // DefaultValueRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java index 955329d9cb8..2a29d05b894 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java @@ -3,11 +3,8 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -19,158 +16,156 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl#getLiteralInteger <em>Literal Integer</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl#getLiteralInteger <em>Literal Integer</em>}</li> * </ul> * * @generated */ -public class IntValueImpl extends ValueImpl implements IntValue -{ - /** - * The default value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLiteralInteger() - * @generated - * @ordered - */ - protected static final int LITERAL_INTEGER_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLiteralInteger() - * @generated - * @ordered - */ - protected int literalInteger = LITERAL_INTEGER_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected IntValueImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.INT_VALUE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getLiteralInteger() - { - return literalInteger; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLiteralInteger(int newLiteralInteger) - { - int oldLiteralInteger = literalInteger; - literalInteger = newLiteralInteger; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER, oldLiteralInteger, literalInteger)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: - return getLiteralInteger(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: - setLiteralInteger((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: - setLiteralInteger(LITERAL_INTEGER_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: - return literalInteger != LITERAL_INTEGER_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (literalInteger: "); - result.append(literalInteger); - result.append(')'); - return result.toString(); - } - -} //IntValueImpl +public class IntValueImpl extends ValueImpl implements IntValue { + /** + * The default value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLiteralInteger() + * @generated + * @ordered + */ + protected static final int LITERAL_INTEGER_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLiteralInteger() + * @generated + * @ordered + */ + protected int literalInteger = LITERAL_INTEGER_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected IntValueImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.INT_VALUE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public int getLiteralInteger() { + return literalInteger; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setLiteralInteger(int newLiteralInteger) { + int oldLiteralInteger = literalInteger; + literalInteger = newLiteralInteger; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER, oldLiteralInteger, literalInteger)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: + return getLiteralInteger(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: + setLiteralInteger((Integer) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: + setLiteralInteger(LITERAL_INTEGER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER: + return literalInteger != LITERAL_INTEGER_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (literalInteger: "); + result.append(literalInteger); + result.append(')'); + return result.toString(); + } + +} // IntValueImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java index d7b5604efa1..ade1ed8e33c 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java @@ -4,13 +4,10 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule; @@ -25,314 +22,315 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getValue <em>Value</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getRedefines <em>Redefines</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getSubsets <em>Subsets</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getValue <em>Value</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getRedefines <em>Redefines</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getSubsets <em>Subsets</em>}</li> * </ul> * * @generated */ -public class ModifierSpecificationImpl extends MinimalEObjectImpl.Container implements ModifierSpecification -{ - /** - * The default value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected static final ModifierKind VALUE_EDEFAULT = ModifierKind.READ_ONLY; +public class ModifierSpecificationImpl extends MinimalEObjectImpl.Container implements ModifierSpecification { + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final ModifierKind VALUE_EDEFAULT = ModifierKind.READ_ONLY; - /** - * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValue() - * @generated - * @ordered - */ - protected ModifierKind value = VALUE_EDEFAULT; + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValue() + * @generated + * @ordered + */ + protected ModifierKind value = VALUE_EDEFAULT; - /** - * The cached value of the '{@link #getRedefines() <em>Redefines</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRedefines() - * @generated - * @ordered - */ - protected RedefinesRule redefines; + /** + * The cached value of the '{@link #getRedefines() <em>Redefines</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getRedefines() + * @generated + * @ordered + */ + protected RedefinesRule redefines; - /** - * The cached value of the '{@link #getSubsets() <em>Subsets</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSubsets() - * @generated - * @ordered - */ - protected SubsetsRule subsets; + /** + * The cached value of the '{@link #getSubsets() <em>Subsets</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getSubsets() + * @generated + * @ordered + */ + protected SubsetsRule subsets; - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ModifierSpecificationImpl() - { - super(); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ModifierSpecificationImpl() { + super(); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.MODIFIER_SPECIFICATION; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.MODIFIER_SPECIFICATION; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModifierKind getValue() - { - return value; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ModifierKind getValue() { + return value; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setValue(ModifierKind newValue) - { - ModifierKind oldValue = value; - value = newValue == null ? VALUE_EDEFAULT : newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE, oldValue, value)); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setValue(ModifierKind newValue) { + ModifierKind oldValue = value; + value = newValue == null ? VALUE_EDEFAULT : newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE, oldValue, value)); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RedefinesRule getRedefines() - { - return redefines; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public RedefinesRule getRedefines() { + return redefines; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetRedefines(RedefinesRule newRedefines, NotificationChain msgs) - { - RedefinesRule oldRedefines = redefines; - redefines = newRedefines; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, oldRedefines, newRedefines); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetRedefines(RedefinesRule newRedefines, NotificationChain msgs) { + RedefinesRule oldRedefines = redefines; + redefines = newRedefines; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, oldRedefines, newRedefines); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRedefines(RedefinesRule newRedefines) - { - if (newRedefines != redefines) - { - NotificationChain msgs = null; - if (redefines != null) - msgs = ((InternalEObject)redefines).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs); - if (newRedefines != null) - msgs = ((InternalEObject)newRedefines).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs); - msgs = basicSetRedefines(newRedefines, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, newRedefines, newRedefines)); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setRedefines(RedefinesRule newRedefines) { + if (newRedefines != redefines) { + NotificationChain msgs = null; + if (redefines != null) + msgs = ((InternalEObject) redefines).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs); + if (newRedefines != null) + msgs = ((InternalEObject) newRedefines).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs); + msgs = basicSetRedefines(newRedefines, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, newRedefines, newRedefines)); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SubsetsRule getSubsets() - { - return subsets; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public SubsetsRule getSubsets() { + return subsets; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetSubsets(SubsetsRule newSubsets, NotificationChain msgs) - { - SubsetsRule oldSubsets = subsets; - subsets = newSubsets; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, oldSubsets, newSubsets); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetSubsets(SubsetsRule newSubsets, NotificationChain msgs) { + SubsetsRule oldSubsets = subsets; + subsets = newSubsets; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, oldSubsets, newSubsets); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setSubsets(SubsetsRule newSubsets) - { - if (newSubsets != subsets) - { - NotificationChain msgs = null; - if (subsets != null) - msgs = ((InternalEObject)subsets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs); - if (newSubsets != null) - msgs = ((InternalEObject)newSubsets).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs); - msgs = basicSetSubsets(newSubsets, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, newSubsets, newSubsets)); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setSubsets(SubsetsRule newSubsets) { + if (newSubsets != subsets) { + NotificationChain msgs = null; + if (subsets != null) + msgs = ((InternalEObject) subsets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs); + if (newSubsets != null) + msgs = ((InternalEObject) newSubsets).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs); + msgs = basicSetSubsets(newSubsets, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, newSubsets, newSubsets)); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: - return basicSetRedefines(null, msgs); - case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: - return basicSetSubsets(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: + return basicSetRedefines(null, msgs); + case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: + return basicSetSubsets(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: - return getValue(); - case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: - return getRedefines(); - case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: - return getSubsets(); - } - return super.eGet(featureID, resolve, coreType); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: + return getValue(); + case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: + return getRedefines(); + case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: + return getSubsets(); + } + return super.eGet(featureID, resolve, coreType); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: - setValue((ModifierKind)newValue); - return; - case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: - setRedefines((RedefinesRule)newValue); - return; - case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: - setSubsets((SubsetsRule)newValue); - return; - } - super.eSet(featureID, newValue); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: + setValue((ModifierKind) newValue); + return; + case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: + setRedefines((RedefinesRule) newValue); + return; + case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: + setSubsets((SubsetsRule) newValue); + return; + } + super.eSet(featureID, newValue); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: - setValue(VALUE_EDEFAULT); - return; - case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: - setRedefines((RedefinesRule)null); - return; - case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: - setSubsets((SubsetsRule)null); - return; - } - super.eUnset(featureID); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: + setValue(VALUE_EDEFAULT); + return; + case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: + setRedefines((RedefinesRule) null); + return; + case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: + setSubsets((SubsetsRule) null); + return; + } + super.eUnset(featureID); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: - return value != VALUE_EDEFAULT; - case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: - return redefines != null; - case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: - return subsets != null; - } - return super.eIsSet(featureID); - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE: + return value != VALUE_EDEFAULT; + case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES: + return redefines != null; + case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS: + return subsets != null; + } + return super.eIsSet(featureID); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (value: "); - result.append(value); - result.append(')'); - return result.toString(); - } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } -} //ModifierSpecificationImpl +} // ModifierSpecificationImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java index 50631e6abff..d6cd132b8d7 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java @@ -5,17 +5,12 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -28,140 +23,134 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl#getValues <em>Values</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl#getValues <em>Values</em>}</li> * </ul> * * @generated */ -public class ModifiersRuleImpl extends MinimalEObjectImpl.Container implements ModifiersRule -{ - /** - * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValues() - * @generated - * @ordered - */ - protected EList<ModifierSpecification> values; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ModifiersRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.MODIFIERS_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<ModifierSpecification> getValues() - { - if (values == null) - { - values = new EObjectContainmentEList<ModifierSpecification>(ModifierSpecification.class, this, UmlPropertyPackage.MODIFIERS_RULE__VALUES); - } - return values; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIERS_RULE__VALUES: - return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIERS_RULE__VALUES: - return getValues(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIERS_RULE__VALUES: - getValues().clear(); - getValues().addAll((Collection<? extends ModifierSpecification>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIERS_RULE__VALUES: - getValues().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.MODIFIERS_RULE__VALUES: - return values != null && !values.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ModifiersRuleImpl +public class ModifiersRuleImpl extends MinimalEObjectImpl.Container implements ModifiersRule { + /** + * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getValues() + * @generated + * @ordered + */ + protected EList<ModifierSpecification> values; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ModifiersRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.MODIFIERS_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EList<ModifierSpecification> getValues() { + if (values == null) { + values = new EObjectContainmentEList<ModifierSpecification>(ModifierSpecification.class, this, UmlPropertyPackage.MODIFIERS_RULE__VALUES); + } + return values; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UmlPropertyPackage.MODIFIERS_RULE__VALUES: + return ((InternalEList<?>) getValues()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.MODIFIERS_RULE__VALUES: + return getValues(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.MODIFIERS_RULE__VALUES: + getValues().clear(); + getValues().addAll((Collection<? extends ModifierSpecification>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.MODIFIERS_RULE__VALUES: + getValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.MODIFIERS_RULE__VALUES: + return values != null && !values.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ModifiersRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java index 942a8c5c397..3ff39049703 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java @@ -5,17 +5,12 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -28,140 +23,134 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl#getBounds <em>Bounds</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl#getBounds <em>Bounds</em>}</li> * </ul> * * @generated */ -public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule -{ - /** - * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getBounds() - * @generated - * @ordered - */ - protected EList<BoundSpecification> bounds; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected MultiplicityRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.MULTIPLICITY_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<BoundSpecification> getBounds() - { - if (bounds == null) - { - bounds = new EObjectContainmentEList<BoundSpecification>(BoundSpecification.class, this, UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS); - } - return bounds; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: - return ((InternalEList<?>)getBounds()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: - return getBounds(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: - getBounds().clear(); - getBounds().addAll((Collection<? extends BoundSpecification>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: - getBounds().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: - return bounds != null && !bounds.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //MultiplicityRuleImpl +public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule { + /** + * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getBounds() + * @generated + * @ordered + */ + protected EList<BoundSpecification> bounds; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected MultiplicityRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.MULTIPLICITY_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EList<BoundSpecification> getBounds() { + if (bounds == null) { + bounds = new EObjectContainmentEList<BoundSpecification>(BoundSpecification.class, this, UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS); + } + return bounds; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: + return ((InternalEList<?>) getBounds()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: + return getBounds(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: + getBounds().clear(); + getBounds().addAll((Collection<? extends BoundSpecification>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: + getBounds().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS: + return bounds != null && !bounds.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // MultiplicityRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java index 86c3915e238..1804eb60b27 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java @@ -3,7 +3,6 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.ecore.EClass; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -14,27 +13,26 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * * @generated */ -public class NoValueImpl extends ValueImpl implements NoValue -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected NoValueImpl() - { - super(); - } +public class NoValueImpl extends ValueImpl implements NoValue { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected NoValueImpl() { + super(); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.NO_VALUE; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.NO_VALUE; + } -} //NoValueImpl +} // NoValueImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java index 9442bbf074a..01205187040 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java @@ -3,7 +3,6 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.ecore.EClass; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -14,27 +13,26 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * * @generated */ -public class NullValueImpl extends ValueImpl implements NullValue -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected NullValueImpl() - { - super(); - } +public class NullValueImpl extends ValueImpl implements NullValue { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected NullValueImpl() { + super(); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.NULL_VALUE; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.NULL_VALUE; + } -} //NullValueImpl +} // NullValueImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java index a297a06056f..603249dc5a1 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java @@ -4,13 +4,10 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule; @@ -27,639 +24,650 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRul * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getVisibility <em>Visibility</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isDerived <em>Derived</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getType <em>Type</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isTypeUndefined <em>Type Undefined</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getMultiplicity <em>Multiplicity</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getModifiers <em>Modifiers</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getDefault <em>Default</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getVisibility <em>Visibility</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isDerived <em>Derived</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isTypeUndefined <em>Type Undefined</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getMultiplicity <em>Multiplicity</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getModifiers <em>Modifiers</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getDefault <em>Default</em>}</li> * </ul> * * @generated */ -public class PropertyRuleImpl extends MinimalEObjectImpl.Container implements PropertyRule -{ - /** - * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVisibility() - * @generated - * @ordered - */ - protected VisibilityRule visibility; - - /** - * The default value of the '{@link #isDerived() <em>Derived</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDerived() - * @generated - * @ordered - */ - protected static final boolean DERIVED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDerived() <em>Derived</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isDerived() - * @generated - * @ordered - */ - protected boolean derived = DERIVED_EDEFAULT; - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getType() <em>Type</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected TypeRule type; - - /** - * The default value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isTypeUndefined() - * @generated - * @ordered - */ - protected static final boolean TYPE_UNDEFINED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isTypeUndefined() - * @generated - * @ordered - */ - protected boolean typeUndefined = TYPE_UNDEFINED_EDEFAULT; - - /** - * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMultiplicity() - * @generated - * @ordered - */ - protected MultiplicityRule multiplicity; - - /** - * The cached value of the '{@link #getModifiers() <em>Modifiers</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getModifiers() - * @generated - * @ordered - */ - protected ModifiersRule modifiers; - - /** - * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDefault() - * @generated - * @ordered - */ - protected DefaultValueRule default_; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PropertyRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.PROPERTY_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public VisibilityRule getVisibility() - { - return visibility; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetVisibility(VisibilityRule newVisibility, NotificationChain msgs) - { - VisibilityRule oldVisibility = visibility; - visibility = newVisibility; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, oldVisibility, newVisibility); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVisibility(VisibilityRule newVisibility) - { - if (newVisibility != visibility) - { - NotificationChain msgs = null; - if (visibility != null) - msgs = ((InternalEObject)visibility).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs); - if (newVisibility != null) - msgs = ((InternalEObject)newVisibility).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs); - msgs = basicSetVisibility(newVisibility, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, newVisibility, newVisibility)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isDerived() - { - return derived; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDerived(boolean newDerived) - { - boolean oldDerived = derived; - derived = newDerived; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DERIVED, oldDerived, derived)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TypeRule getType() - { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetType(TypeRule newType, NotificationChain msgs) - { - TypeRule oldType = type; - type = newType; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, oldType, newType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(TypeRule newType) - { - if (newType != type) - { - NotificationChain msgs = null; - if (type != null) - msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs); - if (newType != null) - msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs); - msgs = basicSetType(newType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, newType, newType)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isTypeUndefined() - { - return typeUndefined; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setTypeUndefined(boolean newTypeUndefined) - { - boolean oldTypeUndefined = typeUndefined; - typeUndefined = newTypeUndefined; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED, oldTypeUndefined, typeUndefined)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MultiplicityRule getMultiplicity() - { - return multiplicity; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetMultiplicity(MultiplicityRule newMultiplicity, NotificationChain msgs) - { - MultiplicityRule oldMultiplicity = multiplicity; - multiplicity = newMultiplicity; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, oldMultiplicity, newMultiplicity); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMultiplicity(MultiplicityRule newMultiplicity) - { - if (newMultiplicity != multiplicity) - { - NotificationChain msgs = null; - if (multiplicity != null) - msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs); - if (newMultiplicity != null) - msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs); - msgs = basicSetMultiplicity(newMultiplicity, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, newMultiplicity, newMultiplicity)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModifiersRule getModifiers() - { - return modifiers; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetModifiers(ModifiersRule newModifiers, NotificationChain msgs) - { - ModifiersRule oldModifiers = modifiers; - modifiers = newModifiers; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, oldModifiers, newModifiers); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setModifiers(ModifiersRule newModifiers) - { - if (newModifiers != modifiers) - { - NotificationChain msgs = null; - if (modifiers != null) - msgs = ((InternalEObject)modifiers).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs); - if (newModifiers != null) - msgs = ((InternalEObject)newModifiers).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs); - msgs = basicSetModifiers(newModifiers, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, newModifiers, newModifiers)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DefaultValueRule getDefault() - { - return default_; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetDefault(DefaultValueRule newDefault, NotificationChain msgs) - { - DefaultValueRule oldDefault = default_; - default_ = newDefault; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, oldDefault, newDefault); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setDefault(DefaultValueRule newDefault) - { - if (newDefault != default_) - { - NotificationChain msgs = null; - if (default_ != null) - msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs); - if (newDefault != null) - msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs); - msgs = basicSetDefault(newDefault, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, newDefault, newDefault)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: - return basicSetVisibility(null, msgs); - case UmlPropertyPackage.PROPERTY_RULE__TYPE: - return basicSetType(null, msgs); - case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: - return basicSetMultiplicity(null, msgs); - case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: - return basicSetModifiers(null, msgs); - case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: - return basicSetDefault(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: - return getVisibility(); - case UmlPropertyPackage.PROPERTY_RULE__DERIVED: - return isDerived(); - case UmlPropertyPackage.PROPERTY_RULE__NAME: - return getName(); - case UmlPropertyPackage.PROPERTY_RULE__TYPE: - return getType(); - case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: - return isTypeUndefined(); - case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: - return getMultiplicity(); - case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: - return getModifiers(); - case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: - return getDefault(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: - setVisibility((VisibilityRule)newValue); - return; - case UmlPropertyPackage.PROPERTY_RULE__DERIVED: - setDerived((Boolean)newValue); - return; - case UmlPropertyPackage.PROPERTY_RULE__NAME: - setName((String)newValue); - return; - case UmlPropertyPackage.PROPERTY_RULE__TYPE: - setType((TypeRule)newValue); - return; - case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: - setTypeUndefined((Boolean)newValue); - return; - case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: - setMultiplicity((MultiplicityRule)newValue); - return; - case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: - setModifiers((ModifiersRule)newValue); - return; - case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: - setDefault((DefaultValueRule)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: - setVisibility((VisibilityRule)null); - return; - case UmlPropertyPackage.PROPERTY_RULE__DERIVED: - setDerived(DERIVED_EDEFAULT); - return; - case UmlPropertyPackage.PROPERTY_RULE__NAME: - setName(NAME_EDEFAULT); - return; - case UmlPropertyPackage.PROPERTY_RULE__TYPE: - setType((TypeRule)null); - return; - case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: - setTypeUndefined(TYPE_UNDEFINED_EDEFAULT); - return; - case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: - setMultiplicity((MultiplicityRule)null); - return; - case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: - setModifiers((ModifiersRule)null); - return; - case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: - setDefault((DefaultValueRule)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: - return visibility != null; - case UmlPropertyPackage.PROPERTY_RULE__DERIVED: - return derived != DERIVED_EDEFAULT; - case UmlPropertyPackage.PROPERTY_RULE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case UmlPropertyPackage.PROPERTY_RULE__TYPE: - return type != null; - case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: - return typeUndefined != TYPE_UNDEFINED_EDEFAULT; - case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: - return multiplicity != null; - case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: - return modifiers != null; - case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: - return default_ != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (derived: "); - result.append(derived); - result.append(", name: "); - result.append(name); - result.append(", typeUndefined: "); - result.append(typeUndefined); - result.append(')'); - return result.toString(); - } - -} //PropertyRuleImpl +public class PropertyRuleImpl extends MinimalEObjectImpl.Container implements PropertyRule { + /** + * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getVisibility() + * @generated + * @ordered + */ + protected VisibilityRule visibility; + + /** + * The default value of the '{@link #isDerived() <em>Derived</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isDerived() + * @generated + * @ordered + */ + protected static final boolean DERIVED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isDerived() <em>Derived</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isDerived() + * @generated + * @ordered + */ + protected boolean derived = DERIVED_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getType() + * @generated + * @ordered + */ + protected TypeRule type; + + /** + * The default value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isTypeUndefined() + * @generated + * @ordered + */ + protected static final boolean TYPE_UNDEFINED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #isTypeUndefined() + * @generated + * @ordered + */ + protected boolean typeUndefined = TYPE_UNDEFINED_EDEFAULT; + + /** + * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getMultiplicity() + * @generated + * @ordered + */ + protected MultiplicityRule multiplicity; + + /** + * The cached value of the '{@link #getModifiers() <em>Modifiers</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getModifiers() + * @generated + * @ordered + */ + protected ModifiersRule modifiers; + + /** + * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getDefault() + * @generated + * @ordered + */ + protected DefaultValueRule default_; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected PropertyRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.PROPERTY_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public VisibilityRule getVisibility() { + return visibility; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetVisibility(VisibilityRule newVisibility, NotificationChain msgs) { + VisibilityRule oldVisibility = visibility; + visibility = newVisibility; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, oldVisibility, newVisibility); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setVisibility(VisibilityRule newVisibility) { + if (newVisibility != visibility) { + NotificationChain msgs = null; + if (visibility != null) + msgs = ((InternalEObject) visibility).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs); + if (newVisibility != null) + msgs = ((InternalEObject) newVisibility).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs); + msgs = basicSetVisibility(newVisibility, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, newVisibility, newVisibility)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public boolean isDerived() { + return derived; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setDerived(boolean newDerived) { + boolean oldDerived = derived; + derived = newDerived; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DERIVED, oldDerived, derived)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public TypeRule getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetType(TypeRule newType, NotificationChain msgs) { + TypeRule oldType = type; + type = newType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, oldType, newType); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setType(TypeRule newType) { + if (newType != type) { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject) type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject) newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, newType, newType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public boolean isTypeUndefined() { + return typeUndefined; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setTypeUndefined(boolean newTypeUndefined) { + boolean oldTypeUndefined = typeUndefined; + typeUndefined = newTypeUndefined; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED, oldTypeUndefined, typeUndefined)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public MultiplicityRule getMultiplicity() { + return multiplicity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetMultiplicity(MultiplicityRule newMultiplicity, NotificationChain msgs) { + MultiplicityRule oldMultiplicity = multiplicity; + multiplicity = newMultiplicity; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, oldMultiplicity, newMultiplicity); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setMultiplicity(MultiplicityRule newMultiplicity) { + if (newMultiplicity != multiplicity) { + NotificationChain msgs = null; + if (multiplicity != null) + msgs = ((InternalEObject) multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs); + if (newMultiplicity != null) + msgs = ((InternalEObject) newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs); + msgs = basicSetMultiplicity(newMultiplicity, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, newMultiplicity, newMultiplicity)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ModifiersRule getModifiers() { + return modifiers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetModifiers(ModifiersRule newModifiers, NotificationChain msgs) { + ModifiersRule oldModifiers = modifiers; + modifiers = newModifiers; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, oldModifiers, newModifiers); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setModifiers(ModifiersRule newModifiers) { + if (newModifiers != modifiers) { + NotificationChain msgs = null; + if (modifiers != null) + msgs = ((InternalEObject) modifiers).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs); + if (newModifiers != null) + msgs = ((InternalEObject) newModifiers).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs); + msgs = basicSetModifiers(newModifiers, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, newModifiers, newModifiers)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public DefaultValueRule getDefault() { + return default_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetDefault(DefaultValueRule newDefault, NotificationChain msgs) { + DefaultValueRule oldDefault = default_; + default_ = newDefault; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, oldDefault, newDefault); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setDefault(DefaultValueRule newDefault) { + if (newDefault != default_) { + NotificationChain msgs = null; + if (default_ != null) + msgs = ((InternalEObject) default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs); + if (newDefault != null) + msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs); + msgs = basicSetDefault(newDefault, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, newDefault, newDefault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: + return basicSetVisibility(null, msgs); + case UmlPropertyPackage.PROPERTY_RULE__TYPE: + return basicSetType(null, msgs); + case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: + return basicSetMultiplicity(null, msgs); + case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: + return basicSetModifiers(null, msgs); + case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: + return basicSetDefault(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: + return getVisibility(); + case UmlPropertyPackage.PROPERTY_RULE__DERIVED: + return isDerived(); + case UmlPropertyPackage.PROPERTY_RULE__NAME: + return getName(); + case UmlPropertyPackage.PROPERTY_RULE__TYPE: + return getType(); + case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: + return isTypeUndefined(); + case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: + return getMultiplicity(); + case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: + return getModifiers(); + case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: + return getDefault(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: + setVisibility((VisibilityRule) newValue); + return; + case UmlPropertyPackage.PROPERTY_RULE__DERIVED: + setDerived((Boolean) newValue); + return; + case UmlPropertyPackage.PROPERTY_RULE__NAME: + setName((String) newValue); + return; + case UmlPropertyPackage.PROPERTY_RULE__TYPE: + setType((TypeRule) newValue); + return; + case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: + setTypeUndefined((Boolean) newValue); + return; + case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: + setMultiplicity((MultiplicityRule) newValue); + return; + case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: + setModifiers((ModifiersRule) newValue); + return; + case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: + setDefault((DefaultValueRule) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: + setVisibility((VisibilityRule) null); + return; + case UmlPropertyPackage.PROPERTY_RULE__DERIVED: + setDerived(DERIVED_EDEFAULT); + return; + case UmlPropertyPackage.PROPERTY_RULE__NAME: + setName(NAME_EDEFAULT); + return; + case UmlPropertyPackage.PROPERTY_RULE__TYPE: + setType((TypeRule) null); + return; + case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: + setTypeUndefined(TYPE_UNDEFINED_EDEFAULT); + return; + case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: + setMultiplicity((MultiplicityRule) null); + return; + case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: + setModifiers((ModifiersRule) null); + return; + case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: + setDefault((DefaultValueRule) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY: + return visibility != null; + case UmlPropertyPackage.PROPERTY_RULE__DERIVED: + return derived != DERIVED_EDEFAULT; + case UmlPropertyPackage.PROPERTY_RULE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case UmlPropertyPackage.PROPERTY_RULE__TYPE: + return type != null; + case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED: + return typeUndefined != TYPE_UNDEFINED_EDEFAULT; + case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY: + return multiplicity != null; + case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS: + return modifiers != null; + case UmlPropertyPackage.PROPERTY_RULE__DEFAULT: + return default_ != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (derived: "); + result.append(derived); + result.append(", name: "); + result.append(name); + result.append(", typeUndefined: "); + result.append(typeUndefined); + result.append(')'); + return result.toString(); + } + +} // PropertyRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java index b1314ae7c35..eb2e413c312 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java @@ -4,16 +4,12 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; - import org.eclipse.uml2.uml.Namespace; /** @@ -24,237 +20,233 @@ import org.eclipse.uml2.uml.Namespace; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getPath <em>Path</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getRemaining <em>Remaining</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getPath <em>Path</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getRemaining <em>Remaining</em>}</li> * </ul> * * @generated */ -public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName -{ - /** - * The cached value of the '{@link #getPath() <em>Path</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPath() - * @generated - * @ordered - */ - protected Namespace path; - - /** - * The cached value of the '{@link #getRemaining() <em>Remaining</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRemaining() - * @generated - * @ordered - */ - protected QualifiedName remaining; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected QualifiedNameImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.QUALIFIED_NAME; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Namespace getPath() - { - if (path != null && path.eIsProxy()) - { - InternalEObject oldPath = (InternalEObject)path; - path = (Namespace)eResolveProxy(oldPath); - if (path != oldPath) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path)); - } - } - return path; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Namespace basicGetPath() - { - return path; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPath(Namespace newPath) - { - Namespace oldPath = path; - path = newPath; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public QualifiedName getRemaining() - { - return remaining; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs) - { - QualifiedName oldRemaining = remaining; - remaining = newRemaining; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, oldRemaining, newRemaining); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setRemaining(QualifiedName newRemaining) - { - if (newRemaining != remaining) - { - NotificationChain msgs = null; - if (remaining != null) - msgs = ((InternalEObject)remaining).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs); - if (newRemaining != null) - msgs = ((InternalEObject)newRemaining).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs); - msgs = basicSetRemaining(newRemaining, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, newRemaining, newRemaining)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: - return basicSetRemaining(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.QUALIFIED_NAME__PATH: - if (resolve) return getPath(); - return basicGetPath(); - case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: - return getRemaining(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.QUALIFIED_NAME__PATH: - setPath((Namespace)newValue); - return; - case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: - setRemaining((QualifiedName)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.QUALIFIED_NAME__PATH: - setPath((Namespace)null); - return; - case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: - setRemaining((QualifiedName)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.QUALIFIED_NAME__PATH: - return path != null; - case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: - return remaining != null; - } - return super.eIsSet(featureID); - } - -} //QualifiedNameImpl +public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName { + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPath() + * @generated + * @ordered + */ + protected Namespace path; + + /** + * The cached value of the '{@link #getRemaining() <em>Remaining</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getRemaining() + * @generated + * @ordered + */ + protected QualifiedName remaining; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected QualifiedNameImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.QUALIFIED_NAME; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Namespace getPath() { + if (path != null && path.eIsProxy()) { + InternalEObject oldPath = (InternalEObject) path; + path = (Namespace) eResolveProxy(oldPath); + if (path != oldPath) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path)); + } + } + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Namespace basicGetPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setPath(Namespace newPath) { + Namespace oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public QualifiedName getRemaining() { + return remaining; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs) { + QualifiedName oldRemaining = remaining; + remaining = newRemaining; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, oldRemaining, newRemaining); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setRemaining(QualifiedName newRemaining) { + if (newRemaining != remaining) { + NotificationChain msgs = null; + if (remaining != null) + msgs = ((InternalEObject) remaining).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs); + if (newRemaining != null) + msgs = ((InternalEObject) newRemaining).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs); + msgs = basicSetRemaining(newRemaining, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, newRemaining, newRemaining)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: + return basicSetRemaining(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.QUALIFIED_NAME__PATH: + if (resolve) + return getPath(); + return basicGetPath(); + case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: + return getRemaining(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.QUALIFIED_NAME__PATH: + setPath((Namespace) newValue); + return; + case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: + setRemaining((QualifiedName) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.QUALIFIED_NAME__PATH: + setPath((Namespace) null); + return; + case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: + setRemaining((QualifiedName) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.QUALIFIED_NAME__PATH: + return path != null; + case UmlPropertyPackage.QUALIFIED_NAME__REMAINING: + return remaining != null; + } + return super.eIsSet(featureID); + } + +} // QualifiedNameImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java index 030020aea26..5cf411709a9 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java @@ -3,11 +3,8 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -19,214 +16,214 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getInteger <em>Integer</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getFraction <em>Fraction</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getInteger <em>Integer</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getFraction <em>Fraction</em>}</li> * </ul> * * @generated */ -public class RealValueImpl extends ValueImpl implements RealValue -{ - /** - * The default value of the '{@link #getInteger() <em>Integer</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInteger() - * @generated - * @ordered - */ - protected static final int INTEGER_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getInteger() <em>Integer</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getInteger() - * @generated - * @ordered - */ - protected int integer = INTEGER_EDEFAULT; - - /** - * The default value of the '{@link #getFraction() <em>Fraction</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFraction() - * @generated - * @ordered - */ - protected static final int FRACTION_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getFraction() <em>Fraction</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFraction() - * @generated - * @ordered - */ - protected int fraction = FRACTION_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected RealValueImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.REAL_VALUE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getInteger() - { - return integer; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setInteger(int newInteger) - { - int oldInteger = integer; - integer = newInteger; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__INTEGER, oldInteger, integer)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getFraction() - { - return fraction; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setFraction(int newFraction) - { - int oldFraction = fraction; - fraction = newFraction; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__FRACTION, oldFraction, fraction)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.REAL_VALUE__INTEGER: - return getInteger(); - case UmlPropertyPackage.REAL_VALUE__FRACTION: - return getFraction(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.REAL_VALUE__INTEGER: - setInteger((Integer)newValue); - return; - case UmlPropertyPackage.REAL_VALUE__FRACTION: - setFraction((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.REAL_VALUE__INTEGER: - setInteger(INTEGER_EDEFAULT); - return; - case UmlPropertyPackage.REAL_VALUE__FRACTION: - setFraction(FRACTION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.REAL_VALUE__INTEGER: - return integer != INTEGER_EDEFAULT; - case UmlPropertyPackage.REAL_VALUE__FRACTION: - return fraction != FRACTION_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (integer: "); - result.append(integer); - result.append(", fraction: "); - result.append(fraction); - result.append(')'); - return result.toString(); - } - -} //RealValueImpl +public class RealValueImpl extends ValueImpl implements RealValue { + /** + * The default value of the '{@link #getInteger() <em>Integer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getInteger() + * @generated + * @ordered + */ + protected static final int INTEGER_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getInteger() <em>Integer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getInteger() + * @generated + * @ordered + */ + protected int integer = INTEGER_EDEFAULT; + + /** + * The default value of the '{@link #getFraction() <em>Fraction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getFraction() + * @generated + * @ordered + */ + protected static final int FRACTION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getFraction() <em>Fraction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getFraction() + * @generated + * @ordered + */ + protected int fraction = FRACTION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected RealValueImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.REAL_VALUE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public int getInteger() { + return integer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setInteger(int newInteger) { + int oldInteger = integer; + integer = newInteger; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__INTEGER, oldInteger, integer)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public int getFraction() { + return fraction; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setFraction(int newFraction) { + int oldFraction = fraction; + fraction = newFraction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__FRACTION, oldFraction, fraction)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.REAL_VALUE__INTEGER: + return getInteger(); + case UmlPropertyPackage.REAL_VALUE__FRACTION: + return getFraction(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.REAL_VALUE__INTEGER: + setInteger((Integer) newValue); + return; + case UmlPropertyPackage.REAL_VALUE__FRACTION: + setFraction((Integer) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.REAL_VALUE__INTEGER: + setInteger(INTEGER_EDEFAULT); + return; + case UmlPropertyPackage.REAL_VALUE__FRACTION: + setFraction(FRACTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.REAL_VALUE__INTEGER: + return integer != INTEGER_EDEFAULT; + case UmlPropertyPackage.REAL_VALUE__FRACTION: + return fraction != FRACTION_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (integer: "); + result.append(integer); + result.append(", fraction: "); + result.append(fraction); + result.append(')'); + return result.toString(); + } + +} // RealValueImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java index ed32773582a..145ca061bb6 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java @@ -3,16 +3,12 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; - import org.eclipse.uml2.uml.Property; /** @@ -23,152 +19,147 @@ import org.eclipse.uml2.uml.Property; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl#getProperty <em>Property</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl#getProperty <em>Property</em>}</li> * </ul> * * @generated */ -public class RedefinesRuleImpl extends MinimalEObjectImpl.Container implements RedefinesRule -{ - /** - * The cached value of the '{@link #getProperty() <em>Property</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getProperty() - * @generated - * @ordered - */ - protected Property property; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected RedefinesRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.REDEFINES_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Property getProperty() - { - if (property != null && property.eIsProxy()) - { - InternalEObject oldProperty = (InternalEObject)property; - property = (Property)eResolveProxy(oldProperty); - if (property != oldProperty) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property)); - } - } - return property; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Property basicGetProperty() - { - return property; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setProperty(Property newProperty) - { - Property oldProperty = property; - property = newProperty; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: - if (resolve) return getProperty(); - return basicGetProperty(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: - setProperty((Property)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: - setProperty((Property)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: - return property != null; - } - return super.eIsSet(featureID); - } - -} //RedefinesRuleImpl +public class RedefinesRuleImpl extends MinimalEObjectImpl.Container implements RedefinesRule { + /** + * The cached value of the '{@link #getProperty() <em>Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getProperty() + * @generated + * @ordered + */ + protected Property property; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected RedefinesRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.REDEFINES_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Property getProperty() { + if (property != null && property.eIsProxy()) { + InternalEObject oldProperty = (InternalEObject) property; + property = (Property) eResolveProxy(oldProperty); + if (property != oldProperty) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property)); + } + } + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Property basicGetProperty() { + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setProperty(Property newProperty) { + Property oldProperty = property; + property = newProperty; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: + if (resolve) + return getProperty(); + return basicGetProperty(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: + setProperty((Property) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: + setProperty((Property) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.REDEFINES_RULE__PROPERTY: + return property != null; + } + return super.eIsSet(featureID); + } + +} // RedefinesRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java index 5c4df834ebd..8bc0bf80f02 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java @@ -3,11 +3,8 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; @@ -19,158 +16,156 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl#getLiteralString <em>Literal String</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl#getLiteralString <em>Literal String</em>}</li> * </ul> * * @generated */ -public class StringValueImpl extends ValueImpl implements StringValue -{ - /** - * The default value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLiteralString() - * @generated - * @ordered - */ - protected static final String LITERAL_STRING_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getLiteralString() - * @generated - * @ordered - */ - protected String literalString = LITERAL_STRING_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected StringValueImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.STRING_VALUE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLiteralString() - { - return literalString; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setLiteralString(String newLiteralString) - { - String oldLiteralString = literalString; - literalString = newLiteralString; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.STRING_VALUE__LITERAL_STRING, oldLiteralString, literalString)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: - return getLiteralString(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: - setLiteralString((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: - setLiteralString(LITERAL_STRING_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: - return LITERAL_STRING_EDEFAULT == null ? literalString != null : !LITERAL_STRING_EDEFAULT.equals(literalString); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (literalString: "); - result.append(literalString); - result.append(')'); - return result.toString(); - } - -} //StringValueImpl +public class StringValueImpl extends ValueImpl implements StringValue { + /** + * The default value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLiteralString() + * @generated + * @ordered + */ + protected static final String LITERAL_STRING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getLiteralString() + * @generated + * @ordered + */ + protected String literalString = LITERAL_STRING_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected StringValueImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.STRING_VALUE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String getLiteralString() { + return literalString; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setLiteralString(String newLiteralString) { + String oldLiteralString = literalString; + literalString = newLiteralString; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.STRING_VALUE__LITERAL_STRING, oldLiteralString, literalString)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: + return getLiteralString(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: + setLiteralString((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: + setLiteralString(LITERAL_STRING_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING: + return LITERAL_STRING_EDEFAULT == null ? literalString != null : !LITERAL_STRING_EDEFAULT.equals(literalString); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (literalString: "); + result.append(literalString); + result.append(')'); + return result.toString(); + } + +} // StringValueImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java index 7048f9c5dd3..5f10f3c5985 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java @@ -3,16 +3,12 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; - import org.eclipse.uml2.uml.Property; /** @@ -23,152 +19,147 @@ import org.eclipse.uml2.uml.Property; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl#getProperty <em>Property</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl#getProperty <em>Property</em>}</li> * </ul> * * @generated */ -public class SubsetsRuleImpl extends MinimalEObjectImpl.Container implements SubsetsRule -{ - /** - * The cached value of the '{@link #getProperty() <em>Property</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getProperty() - * @generated - * @ordered - */ - protected Property property; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected SubsetsRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.SUBSETS_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Property getProperty() - { - if (property != null && property.eIsProxy()) - { - InternalEObject oldProperty = (InternalEObject)property; - property = (Property)eResolveProxy(oldProperty); - if (property != oldProperty) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property)); - } - } - return property; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Property basicGetProperty() - { - return property; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setProperty(Property newProperty) - { - Property oldProperty = property; - property = newProperty; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: - if (resolve) return getProperty(); - return basicGetProperty(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: - setProperty((Property)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: - setProperty((Property)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: - return property != null; - } - return super.eIsSet(featureID); - } - -} //SubsetsRuleImpl +public class SubsetsRuleImpl extends MinimalEObjectImpl.Container implements SubsetsRule { + /** + * The cached value of the '{@link #getProperty() <em>Property</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getProperty() + * @generated + * @ordered + */ + protected Property property; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected SubsetsRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.SUBSETS_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Property getProperty() { + if (property != null && property.eIsProxy()) { + InternalEObject oldProperty = (InternalEObject) property; + property = (Property) eResolveProxy(oldProperty); + if (property != oldProperty) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property)); + } + } + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Property basicGetProperty() { + return property; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setProperty(Property newProperty) { + Property oldProperty = property; + property = newProperty; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: + if (resolve) + return getProperty(); + return basicGetProperty(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: + setProperty((Property) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: + setProperty((Property) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.SUBSETS_RULE__PROPERTY: + return property != null; + } + return super.eIsSet(featureID); + } + +} // SubsetsRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java index 25392823729..384427ea0eb 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java @@ -4,17 +4,13 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; - import org.eclipse.uml2.uml.Classifier; /** @@ -25,237 +21,233 @@ import org.eclipse.uml2.uml.Classifier; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getPath <em>Path</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getType <em>Type</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getPath <em>Path</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getType <em>Type</em>}</li> * </ul> * * @generated */ -public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule -{ - /** - * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPath() - * @generated - * @ordered - */ - protected QualifiedName path; - - /** - * The cached value of the '{@link #getType() <em>Type</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getType() - * @generated - * @ordered - */ - protected Classifier type; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected TypeRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.TYPE_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public QualifiedName getPath() - { - return path; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs) - { - QualifiedName oldPath = path; - path = newPath; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, oldPath, newPath); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setPath(QualifiedName newPath) - { - if (newPath != path) - { - NotificationChain msgs = null; - if (path != null) - msgs = ((InternalEObject)path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs); - if (newPath != null) - msgs = ((InternalEObject)newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs); - msgs = basicSetPath(newPath, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, newPath, newPath)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Classifier getType() - { - if (type != null && type.eIsProxy()) - { - InternalEObject oldType = (InternalEObject)type; - type = (Classifier)eResolveProxy(oldType); - if (type != oldType) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type)); - } - } - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Classifier basicGetType() - { - return type; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setType(Classifier newType) - { - Classifier oldType = type; - type = newType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case UmlPropertyPackage.TYPE_RULE__PATH: - return basicSetPath(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.TYPE_RULE__PATH: - return getPath(); - case UmlPropertyPackage.TYPE_RULE__TYPE: - if (resolve) return getType(); - return basicGetType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.TYPE_RULE__PATH: - setPath((QualifiedName)newValue); - return; - case UmlPropertyPackage.TYPE_RULE__TYPE: - setType((Classifier)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.TYPE_RULE__PATH: - setPath((QualifiedName)null); - return; - case UmlPropertyPackage.TYPE_RULE__TYPE: - setType((Classifier)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.TYPE_RULE__PATH: - return path != null; - case UmlPropertyPackage.TYPE_RULE__TYPE: - return type != null; - } - return super.eIsSet(featureID); - } - -} //TypeRuleImpl +public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule { + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getPath() + * @generated + * @ordered + */ + protected QualifiedName path; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getType() + * @generated + * @ordered + */ + protected Classifier type; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected TypeRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.TYPE_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public QualifiedName getPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs) { + QualifiedName oldPath = path; + path = newPath; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, oldPath, newPath); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setPath(QualifiedName newPath) { + if (newPath != path) { + NotificationChain msgs = null; + if (path != null) + msgs = ((InternalEObject) path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs); + if (newPath != null) + msgs = ((InternalEObject) newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs); + msgs = basicSetPath(newPath, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, newPath, newPath)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Classifier getType() { + if (type != null && type.eIsProxy()) { + InternalEObject oldType = (InternalEObject) type; + type = (Classifier) eResolveProxy(oldType); + if (type != oldType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type)); + } + } + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Classifier basicGetType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setType(Classifier newType) { + Classifier oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UmlPropertyPackage.TYPE_RULE__PATH: + return basicSetPath(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.TYPE_RULE__PATH: + return getPath(); + case UmlPropertyPackage.TYPE_RULE__TYPE: + if (resolve) + return getType(); + return basicGetType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.TYPE_RULE__PATH: + setPath((QualifiedName) newValue); + return; + case UmlPropertyPackage.TYPE_RULE__TYPE: + setType((Classifier) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.TYPE_RULE__PATH: + setPath((QualifiedName) null); + return; + case UmlPropertyPackage.TYPE_RULE__TYPE: + setType((Classifier) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.TYPE_RULE__PATH: + return path != null; + case UmlPropertyPackage.TYPE_RULE__TYPE: + return type != null; + } + return super.eIsSet(featureID); + } + +} // TypeRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java index dbc76e179d6..9e84898e75e 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java @@ -6,414 +6,447 @@ 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.papyrus.uml.textedit.property.xtext.umlProperty.*; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyFactory; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> + * * @generated */ -public class UmlPropertyFactoryImpl extends EFactoryImpl implements UmlPropertyFactory -{ - /** - * Creates the default factory implementation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static UmlPropertyFactory init() - { - try - { - UmlPropertyFactory theUmlPropertyFactory = (UmlPropertyFactory)EPackage.Registry.INSTANCE.getEFactory(UmlPropertyPackage.eNS_URI); - if (theUmlPropertyFactory != null) - { - return theUmlPropertyFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new UmlPropertyFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UmlPropertyFactoryImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case UmlPropertyPackage.PROPERTY_RULE: return createPropertyRule(); - case UmlPropertyPackage.VISIBILITY_RULE: return createVisibilityRule(); - case UmlPropertyPackage.TYPE_RULE: return createTypeRule(); - case UmlPropertyPackage.QUALIFIED_NAME: return createQualifiedName(); - case UmlPropertyPackage.MULTIPLICITY_RULE: return createMultiplicityRule(); - case UmlPropertyPackage.BOUND_SPECIFICATION: return createBoundSpecification(); - case UmlPropertyPackage.MODIFIERS_RULE: return createModifiersRule(); - case UmlPropertyPackage.MODIFIER_SPECIFICATION: return createModifierSpecification(); - case UmlPropertyPackage.REDEFINES_RULE: return createRedefinesRule(); - case UmlPropertyPackage.SUBSETS_RULE: return createSubsetsRule(); - case UmlPropertyPackage.DEFAULT_VALUE_RULE: return createDefaultValueRule(); - case UmlPropertyPackage.VALUE: return createValue(); - case UmlPropertyPackage.INT_VALUE: return createIntValue(); - case UmlPropertyPackage.STRING_VALUE: return createStringValue(); - case UmlPropertyPackage.BOOLEAN_VALUE: return createBooleanValue(); - case UmlPropertyPackage.REAL_VALUE: return createRealValue(); - case UmlPropertyPackage.NULL_VALUE: return createNullValue(); - case UmlPropertyPackage.NO_VALUE: return createNoValue(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case UmlPropertyPackage.VISIBILITY_KIND: - return createVisibilityKindFromString(eDataType, initialValue); - case UmlPropertyPackage.MODIFIER_KIND: - return createModifierKindFromString(eDataType, initialValue); - case UmlPropertyPackage.BOOLEAN_LITERALS: - return createBooleanLiteralsFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case UmlPropertyPackage.VISIBILITY_KIND: - return convertVisibilityKindToString(eDataType, instanceValue); - case UmlPropertyPackage.MODIFIER_KIND: - return convertModifierKindToString(eDataType, instanceValue); - case UmlPropertyPackage.BOOLEAN_LITERALS: - return convertBooleanLiteralsToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public PropertyRule createPropertyRule() - { - PropertyRuleImpl propertyRule = new PropertyRuleImpl(); - return propertyRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public VisibilityRule createVisibilityRule() - { - VisibilityRuleImpl visibilityRule = new VisibilityRuleImpl(); - return visibilityRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public TypeRule createTypeRule() - { - TypeRuleImpl typeRule = new TypeRuleImpl(); - return typeRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public QualifiedName createQualifiedName() - { - QualifiedNameImpl qualifiedName = new QualifiedNameImpl(); - return qualifiedName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public MultiplicityRule createMultiplicityRule() - { - MultiplicityRuleImpl multiplicityRule = new MultiplicityRuleImpl(); - return multiplicityRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BoundSpecification createBoundSpecification() - { - BoundSpecificationImpl boundSpecification = new BoundSpecificationImpl(); - return boundSpecification; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModifiersRule createModifiersRule() - { - ModifiersRuleImpl modifiersRule = new ModifiersRuleImpl(); - return modifiersRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModifierSpecification createModifierSpecification() - { - ModifierSpecificationImpl modifierSpecification = new ModifierSpecificationImpl(); - return modifierSpecification; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RedefinesRule createRedefinesRule() - { - RedefinesRuleImpl redefinesRule = new RedefinesRuleImpl(); - return redefinesRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public SubsetsRule createSubsetsRule() - { - SubsetsRuleImpl subsetsRule = new SubsetsRuleImpl(); - return subsetsRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public DefaultValueRule createDefaultValueRule() - { - DefaultValueRuleImpl defaultValueRule = new DefaultValueRuleImpl(); - return defaultValueRule; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Value createValue() - { - ValueImpl value = new ValueImpl(); - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public IntValue createIntValue() - { - IntValueImpl intValue = new IntValueImpl(); - return intValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public StringValue createStringValue() - { - StringValueImpl stringValue = new StringValueImpl(); - return stringValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BooleanValue createBooleanValue() - { - BooleanValueImpl booleanValue = new BooleanValueImpl(); - return booleanValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public RealValue createRealValue() - { - RealValueImpl realValue = new RealValueImpl(); - return realValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NullValue createNullValue() - { - NullValueImpl nullValue = new NullValueImpl(); - return nullValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NoValue createNoValue() - { - NoValueImpl noValue = new NoValueImpl(); - return noValue; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue) - { - VisibilityKind result = VisibilityKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public ModifierKind createModifierKindFromString(EDataType eDataType, String initialValue) - { - ModifierKind result = ModifierKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertModifierKindToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public BooleanLiterals createBooleanLiteralsFromString(EDataType eDataType, String initialValue) - { - BooleanLiterals result = BooleanLiterals.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String convertBooleanLiteralsToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UmlPropertyPackage getUmlPropertyPackage() - { - return (UmlPropertyPackage)getEPackage(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @deprecated - * @generated - */ - @Deprecated - public static UmlPropertyPackage getPackage() - { - return UmlPropertyPackage.eINSTANCE; - } - -} //UmlPropertyFactoryImpl +public class UmlPropertyFactoryImpl extends EFactoryImpl implements UmlPropertyFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static UmlPropertyFactory init() { + try { + UmlPropertyFactory theUmlPropertyFactory = (UmlPropertyFactory) EPackage.Registry.INSTANCE.getEFactory(UmlPropertyPackage.eNS_URI); + if (theUmlPropertyFactory != null) { + return theUmlPropertyFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new UmlPropertyFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UmlPropertyFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case UmlPropertyPackage.PROPERTY_RULE: + return createPropertyRule(); + case UmlPropertyPackage.VISIBILITY_RULE: + return createVisibilityRule(); + case UmlPropertyPackage.TYPE_RULE: + return createTypeRule(); + case UmlPropertyPackage.QUALIFIED_NAME: + return createQualifiedName(); + case UmlPropertyPackage.MULTIPLICITY_RULE: + return createMultiplicityRule(); + case UmlPropertyPackage.BOUND_SPECIFICATION: + return createBoundSpecification(); + case UmlPropertyPackage.MODIFIERS_RULE: + return createModifiersRule(); + case UmlPropertyPackage.MODIFIER_SPECIFICATION: + return createModifierSpecification(); + case UmlPropertyPackage.REDEFINES_RULE: + return createRedefinesRule(); + case UmlPropertyPackage.SUBSETS_RULE: + return createSubsetsRule(); + case UmlPropertyPackage.DEFAULT_VALUE_RULE: + return createDefaultValueRule(); + case UmlPropertyPackage.VALUE: + return createValue(); + case UmlPropertyPackage.INT_VALUE: + return createIntValue(); + case UmlPropertyPackage.STRING_VALUE: + return createStringValue(); + case UmlPropertyPackage.BOOLEAN_VALUE: + return createBooleanValue(); + case UmlPropertyPackage.REAL_VALUE: + return createRealValue(); + case UmlPropertyPackage.NULL_VALUE: + return createNullValue(); + case UmlPropertyPackage.NO_VALUE: + return createNoValue(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case UmlPropertyPackage.VISIBILITY_KIND: + return createVisibilityKindFromString(eDataType, initialValue); + case UmlPropertyPackage.MODIFIER_KIND: + return createModifierKindFromString(eDataType, initialValue); + case UmlPropertyPackage.BOOLEAN_LITERALS: + return createBooleanLiteralsFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case UmlPropertyPackage.VISIBILITY_KIND: + return convertVisibilityKindToString(eDataType, instanceValue); + case UmlPropertyPackage.MODIFIER_KIND: + return convertModifierKindToString(eDataType, instanceValue); + case UmlPropertyPackage.BOOLEAN_LITERALS: + return convertBooleanLiteralsToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public PropertyRule createPropertyRule() { + PropertyRuleImpl propertyRule = new PropertyRuleImpl(); + return propertyRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public VisibilityRule createVisibilityRule() { + VisibilityRuleImpl visibilityRule = new VisibilityRuleImpl(); + return visibilityRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public TypeRule createTypeRule() { + TypeRuleImpl typeRule = new TypeRuleImpl(); + return typeRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public QualifiedName createQualifiedName() { + QualifiedNameImpl qualifiedName = new QualifiedNameImpl(); + return qualifiedName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public MultiplicityRule createMultiplicityRule() { + MultiplicityRuleImpl multiplicityRule = new MultiplicityRuleImpl(); + return multiplicityRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public BoundSpecification createBoundSpecification() { + BoundSpecificationImpl boundSpecification = new BoundSpecificationImpl(); + return boundSpecification; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ModifiersRule createModifiersRule() { + ModifiersRuleImpl modifiersRule = new ModifiersRuleImpl(); + return modifiersRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ModifierSpecification createModifierSpecification() { + ModifierSpecificationImpl modifierSpecification = new ModifierSpecificationImpl(); + return modifierSpecification; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public RedefinesRule createRedefinesRule() { + RedefinesRuleImpl redefinesRule = new RedefinesRuleImpl(); + return redefinesRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public SubsetsRule createSubsetsRule() { + SubsetsRuleImpl subsetsRule = new SubsetsRuleImpl(); + return subsetsRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public DefaultValueRule createDefaultValueRule() { + DefaultValueRuleImpl defaultValueRule = new DefaultValueRuleImpl(); + return defaultValueRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public Value createValue() { + ValueImpl value = new ValueImpl(); + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public IntValue createIntValue() { + IntValueImpl intValue = new IntValueImpl(); + return intValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public StringValue createStringValue() { + StringValueImpl stringValue = new StringValueImpl(); + return stringValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public BooleanValue createBooleanValue() { + BooleanValueImpl booleanValue = new BooleanValueImpl(); + return booleanValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public RealValue createRealValue() { + RealValueImpl realValue = new RealValueImpl(); + return realValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NullValue createNullValue() { + NullValueImpl nullValue = new NullValueImpl(); + return nullValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public NoValue createNoValue() { + NoValueImpl noValue = new NoValueImpl(); + return noValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue) { + VisibilityKind result = VisibilityKind.get(initialValue); + if (result == null) + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public ModifierKind createModifierKindFromString(EDataType eDataType, String initialValue) { + ModifierKind result = ModifierKind.get(initialValue); + if (result == null) + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String convertModifierKindToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public BooleanLiterals createBooleanLiteralsFromString(EDataType eDataType, String initialValue) { + BooleanLiterals result = BooleanLiterals.get(initialValue); + if (result == null) + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public String convertBooleanLiteralsToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UmlPropertyPackage getUmlPropertyPackage() { + return (UmlPropertyPackage) getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @deprecated + * @generated + */ + @Deprecated + public static UmlPropertyPackage getPackage() { + return UmlPropertyPackage.eINSTANCE; + } + +} // UmlPropertyFactoryImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java index 3af3d3a76e9..181f97b74e2 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java @@ -8,9 +8,7 @@ import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.EcorePackage; - import org.eclipse.emf.ecore.impl.EPackageImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification; @@ -34,932 +32,971 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPa import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule; - +import org.eclipse.uml2.types.TypesPackage; import org.eclipse.uml2.uml.UMLPackage; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> + * * @generated */ -public class UmlPropertyPackageImpl extends EPackageImpl implements UmlPropertyPackage -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass propertyRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass visibilityRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass typeRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass qualifiedNameEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass multiplicityRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass boundSpecificationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass modifiersRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass modifierSpecificationEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass redefinesRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass subsetsRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass defaultValueRuleEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass valueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass intValueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass stringValueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass booleanValueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass realValueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass nullValueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EClass noValueEClass = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum visibilityKindEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum modifierKindEEnum = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private EEnum booleanLiteralsEEnum = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - * <p>Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#eNS_URI - * @see #init() - * @generated - */ - private UmlPropertyPackageImpl() - { - super(eNS_URI, UmlPropertyFactory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. - * - * <p>This method is used to initialize {@link UmlPropertyPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static UmlPropertyPackage init() - { - if (isInited) return (UmlPropertyPackage)EPackage.Registry.INSTANCE.getEPackage(UmlPropertyPackage.eNS_URI); - - // Obtain or create and register package - UmlPropertyPackageImpl theUmlPropertyPackage = (UmlPropertyPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UmlPropertyPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UmlPropertyPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - UMLPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theUmlPropertyPackage.createPackageContents(); - - // Initialize created meta-data - theUmlPropertyPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theUmlPropertyPackage.freeze(); - - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(UmlPropertyPackage.eNS_URI, theUmlPropertyPackage); - return theUmlPropertyPackage; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getPropertyRule() - { - return propertyRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPropertyRule_Visibility() - { - return (EReference)propertyRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPropertyRule_Derived() - { - return (EAttribute)propertyRuleEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPropertyRule_Name() - { - return (EAttribute)propertyRuleEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPropertyRule_Type() - { - return (EReference)propertyRuleEClass.getEStructuralFeatures().get(3); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getPropertyRule_TypeUndefined() - { - return (EAttribute)propertyRuleEClass.getEStructuralFeatures().get(4); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPropertyRule_Multiplicity() - { - return (EReference)propertyRuleEClass.getEStructuralFeatures().get(5); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPropertyRule_Modifiers() - { - return (EReference)propertyRuleEClass.getEStructuralFeatures().get(6); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getPropertyRule_Default() - { - return (EReference)propertyRuleEClass.getEStructuralFeatures().get(7); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getVisibilityRule() - { - return visibilityRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getVisibilityRule_Visibility() - { - return (EAttribute)visibilityRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getTypeRule() - { - return typeRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getTypeRule_Path() - { - return (EReference)typeRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getTypeRule_Type() - { - return (EReference)typeRuleEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getQualifiedName() - { - return qualifiedNameEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getQualifiedName_Path() - { - return (EReference)qualifiedNameEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getQualifiedName_Remaining() - { - return (EReference)qualifiedNameEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getMultiplicityRule() - { - return multiplicityRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getMultiplicityRule_Bounds() - { - return (EReference)multiplicityRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getBoundSpecification() - { - return boundSpecificationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getBoundSpecification_Value() - { - return (EAttribute)boundSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getModifiersRule() - { - return modifiersRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getModifiersRule_Values() - { - return (EReference)modifiersRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getModifierSpecification() - { - return modifierSpecificationEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getModifierSpecification_Value() - { - return (EAttribute)modifierSpecificationEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getModifierSpecification_Redefines() - { - return (EReference)modifierSpecificationEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getModifierSpecification_Subsets() - { - return (EReference)modifierSpecificationEClass.getEStructuralFeatures().get(2); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getRedefinesRule() - { - return redefinesRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getRedefinesRule_Property() - { - return (EReference)redefinesRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getSubsetsRule() - { - return subsetsRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getSubsetsRule_Property() - { - return (EReference)subsetsRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getDefaultValueRule() - { - return defaultValueRuleEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EReference getDefaultValueRule_Default() - { - return (EReference)defaultValueRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getValue() - { - return valueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getIntValue() - { - return intValueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getIntValue_LiteralInteger() - { - return (EAttribute)intValueEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getStringValue() - { - return stringValueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getStringValue_LiteralString() - { - return (EAttribute)stringValueEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getBooleanValue() - { - return booleanValueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getBooleanValue_LiteralBoolean() - { - return (EAttribute)booleanValueEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getRealValue() - { - return realValueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getRealValue_Integer() - { - return (EAttribute)realValueEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EAttribute getRealValue_Fraction() - { - return (EAttribute)realValueEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getNullValue() - { - return nullValueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EClass getNoValue() - { - return noValueEClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getVisibilityKind() - { - return visibilityKindEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getModifierKind() - { - return modifierKindEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEnum getBooleanLiterals() - { - return booleanLiteralsEEnum; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UmlPropertyFactory getUmlPropertyFactory() - { - return (UmlPropertyFactory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void createPackageContents() - { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - propertyRuleEClass = createEClass(PROPERTY_RULE); - createEReference(propertyRuleEClass, PROPERTY_RULE__VISIBILITY); - createEAttribute(propertyRuleEClass, PROPERTY_RULE__DERIVED); - createEAttribute(propertyRuleEClass, PROPERTY_RULE__NAME); - createEReference(propertyRuleEClass, PROPERTY_RULE__TYPE); - createEAttribute(propertyRuleEClass, PROPERTY_RULE__TYPE_UNDEFINED); - createEReference(propertyRuleEClass, PROPERTY_RULE__MULTIPLICITY); - createEReference(propertyRuleEClass, PROPERTY_RULE__MODIFIERS); - createEReference(propertyRuleEClass, PROPERTY_RULE__DEFAULT); - - visibilityRuleEClass = createEClass(VISIBILITY_RULE); - createEAttribute(visibilityRuleEClass, VISIBILITY_RULE__VISIBILITY); - - typeRuleEClass = createEClass(TYPE_RULE); - createEReference(typeRuleEClass, TYPE_RULE__PATH); - createEReference(typeRuleEClass, TYPE_RULE__TYPE); - - qualifiedNameEClass = createEClass(QUALIFIED_NAME); - createEReference(qualifiedNameEClass, QUALIFIED_NAME__PATH); - createEReference(qualifiedNameEClass, QUALIFIED_NAME__REMAINING); - - multiplicityRuleEClass = createEClass(MULTIPLICITY_RULE); - createEReference(multiplicityRuleEClass, MULTIPLICITY_RULE__BOUNDS); - - boundSpecificationEClass = createEClass(BOUND_SPECIFICATION); - createEAttribute(boundSpecificationEClass, BOUND_SPECIFICATION__VALUE); - - modifiersRuleEClass = createEClass(MODIFIERS_RULE); - createEReference(modifiersRuleEClass, MODIFIERS_RULE__VALUES); - - modifierSpecificationEClass = createEClass(MODIFIER_SPECIFICATION); - createEAttribute(modifierSpecificationEClass, MODIFIER_SPECIFICATION__VALUE); - createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__REDEFINES); - createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__SUBSETS); - - redefinesRuleEClass = createEClass(REDEFINES_RULE); - createEReference(redefinesRuleEClass, REDEFINES_RULE__PROPERTY); - - subsetsRuleEClass = createEClass(SUBSETS_RULE); - createEReference(subsetsRuleEClass, SUBSETS_RULE__PROPERTY); - - defaultValueRuleEClass = createEClass(DEFAULT_VALUE_RULE); - createEReference(defaultValueRuleEClass, DEFAULT_VALUE_RULE__DEFAULT); - - valueEClass = createEClass(VALUE); - - intValueEClass = createEClass(INT_VALUE); - createEAttribute(intValueEClass, INT_VALUE__LITERAL_INTEGER); - - stringValueEClass = createEClass(STRING_VALUE); - createEAttribute(stringValueEClass, STRING_VALUE__LITERAL_STRING); - - booleanValueEClass = createEClass(BOOLEAN_VALUE); - createEAttribute(booleanValueEClass, BOOLEAN_VALUE__LITERAL_BOOLEAN); - - realValueEClass = createEClass(REAL_VALUE); - createEAttribute(realValueEClass, REAL_VALUE__INTEGER); - createEAttribute(realValueEClass, REAL_VALUE__FRACTION); - - nullValueEClass = createEClass(NULL_VALUE); - - noValueEClass = createEClass(NO_VALUE); - - // Create enums - visibilityKindEEnum = createEEnum(VISIBILITY_KIND); - modifierKindEEnum = createEEnum(MODIFIER_KIND); - booleanLiteralsEEnum = createEEnum(BOOLEAN_LITERALS); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - intValueEClass.getESuperTypes().add(this.getValue()); - stringValueEClass.getESuperTypes().add(this.getValue()); - booleanValueEClass.getESuperTypes().add(this.getValue()); - realValueEClass.getESuperTypes().add(this.getValue()); - nullValueEClass.getESuperTypes().add(this.getValue()); - noValueEClass.getESuperTypes().add(this.getValue()); - - // Initialize classes and features; add operations and parameters - initEClass(propertyRuleEClass, PropertyRule.class, "PropertyRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPropertyRule_Visibility(), this.getVisibilityRule(), null, "visibility", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPropertyRule_Derived(), theEcorePackage.getEBoolean(), "derived", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPropertyRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertyRule_Type(), this.getTypeRule(), null, "type", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getPropertyRule_TypeUndefined(), theEcorePackage.getEBoolean(), "typeUndefined", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertyRule_Multiplicity(), this.getMultiplicityRule(), null, "multiplicity", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertyRule_Modifiers(), this.getModifiersRule(), null, "modifiers", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertyRule_Default(), this.getDefaultValueRule(), null, "default", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(visibilityRuleEClass, VisibilityRule.class, "VisibilityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getVisibilityRule_Visibility(), this.getVisibilityKind(), "visibility", null, 0, 1, VisibilityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(typeRuleEClass, TypeRule.class, "TypeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getTypeRule_Path(), this.getQualifiedName(), null, "path", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTypeRule_Type(), theUMLPackage.getClassifier(), null, "type", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(qualifiedNameEClass, QualifiedName.class, "QualifiedName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getQualifiedName_Path(), theUMLPackage.getNamespace(), null, "path", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(multiplicityRuleEClass, MultiplicityRule.class, "MultiplicityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMultiplicityRule_Bounds(), this.getBoundSpecification(), null, "bounds", null, 0, -1, MultiplicityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(boundSpecificationEClass, BoundSpecification.class, "BoundSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getBoundSpecification_Value(), theEcorePackage.getEString(), "value", null, 0, 1, BoundSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(modifiersRuleEClass, ModifiersRule.class, "ModifiersRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getModifiersRule_Values(), this.getModifierSpecification(), null, "values", null, 0, -1, ModifiersRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(modifierSpecificationEClass, ModifierSpecification.class, "ModifierSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getModifierSpecification_Value(), this.getModifierKind(), "value", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getModifierSpecification_Redefines(), this.getRedefinesRule(), null, "redefines", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getModifierSpecification_Subsets(), this.getSubsetsRule(), null, "subsets", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(redefinesRuleEClass, RedefinesRule.class, "RedefinesRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRedefinesRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, RedefinesRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(subsetsRuleEClass, SubsetsRule.class, "SubsetsRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getSubsetsRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, SubsetsRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(defaultValueRuleEClass, DefaultValueRule.class, "DefaultValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getDefaultValueRule_Default(), this.getValue(), null, "default", null, 0, 1, DefaultValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(intValueEClass, IntValue.class, "IntValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIntValue_LiteralInteger(), theEcorePackage.getEInt(), "literalInteger", null, 0, 1, IntValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringValueEClass, StringValue.class, "StringValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringValue_LiteralString(), theEcorePackage.getEString(), "literalString", null, 0, 1, StringValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(booleanValueEClass, BooleanValue.class, "BooleanValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getBooleanValue_LiteralBoolean(), this.getBooleanLiterals(), "literalBoolean", null, 0, 1, BooleanValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(realValueEClass, RealValue.class, "RealValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRealValue_Integer(), theEcorePackage.getEInt(), "integer", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRealValue_Fraction(), theEcorePackage.getEInt(), "fraction", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(nullValueEClass, NullValue.class, "NullValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(noValueEClass, NoValue.class, "NoValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - // Initialize enums and add enum literals - initEEnum(visibilityKindEEnum, VisibilityKind.class, "VisibilityKind"); - addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PUBLIC); - addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PRIVATE); - addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PROTECTED); - addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PACKAGE); - - initEEnum(modifierKindEEnum, ModifierKind.class, "ModifierKind"); - addEEnumLiteral(modifierKindEEnum, ModifierKind.READ_ONLY); - addEEnumLiteral(modifierKindEEnum, ModifierKind.UNION); - addEEnumLiteral(modifierKindEEnum, ModifierKind.ORDERED); - addEEnumLiteral(modifierKindEEnum, ModifierKind.UNIQUE); - - initEEnum(booleanLiteralsEEnum, BooleanLiterals.class, "BooleanLiterals"); - addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.TRUE); - addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.FALSE); - - // Create resource - createResource(eNS_URI); - } - -} //UmlPropertyPackageImpl +public class UmlPropertyPackageImpl extends EPackageImpl implements UmlPropertyPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass propertyRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass visibilityRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass typeRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass qualifiedNameEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass multiplicityRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass boundSpecificationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass modifiersRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass modifierSpecificationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass redefinesRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass subsetsRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass defaultValueRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass valueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass intValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass stringValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass booleanValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass realValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass nullValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EClass noValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EEnum visibilityKindEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EEnum modifierKindEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private EEnum booleanLiteralsEEnum = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p> + * Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#eNS_URI + * @see #init() + * @generated + */ + private UmlPropertyPackageImpl() { + super(eNS_URI, UmlPropertyFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p> + * This method is used to initialize {@link UmlPropertyPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static UmlPropertyPackage init() { + if (isInited) + return (UmlPropertyPackage) EPackage.Registry.INSTANCE.getEPackage(UmlPropertyPackage.eNS_URI); + + // Obtain or create and register package + Object registeredUmlPropertyPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + UmlPropertyPackageImpl theUmlPropertyPackage = registeredUmlPropertyPackage instanceof UmlPropertyPackageImpl ? (UmlPropertyPackageImpl) registeredUmlPropertyPackage : new UmlPropertyPackageImpl(); + + isInited = true; + + // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); + UMLPackage.eINSTANCE.eClass(); + TypesPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theUmlPropertyPackage.createPackageContents(); + + // Initialize created meta-data + theUmlPropertyPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theUmlPropertyPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(UmlPropertyPackage.eNS_URI, theUmlPropertyPackage); + return theUmlPropertyPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getPropertyRule() { + return propertyRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getPropertyRule_Visibility() { + return (EReference) propertyRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getPropertyRule_Derived() { + return (EAttribute) propertyRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getPropertyRule_Name() { + return (EAttribute) propertyRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getPropertyRule_Type() { + return (EReference) propertyRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getPropertyRule_TypeUndefined() { + return (EAttribute) propertyRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getPropertyRule_Multiplicity() { + return (EReference) propertyRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getPropertyRule_Modifiers() { + return (EReference) propertyRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getPropertyRule_Default() { + return (EReference) propertyRuleEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getVisibilityRule() { + return visibilityRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getVisibilityRule_Visibility() { + return (EAttribute) visibilityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getTypeRule() { + return typeRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getTypeRule_Path() { + return (EReference) typeRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getTypeRule_Type() { + return (EReference) typeRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getQualifiedName() { + return qualifiedNameEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getQualifiedName_Path() { + return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getQualifiedName_Remaining() { + return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getMultiplicityRule() { + return multiplicityRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getMultiplicityRule_Bounds() { + return (EReference) multiplicityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getBoundSpecification() { + return boundSpecificationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getBoundSpecification_Value() { + return (EAttribute) boundSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getModifiersRule() { + return modifiersRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getModifiersRule_Values() { + return (EReference) modifiersRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getModifierSpecification() { + return modifierSpecificationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getModifierSpecification_Value() { + return (EAttribute) modifierSpecificationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getModifierSpecification_Redefines() { + return (EReference) modifierSpecificationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getModifierSpecification_Subsets() { + return (EReference) modifierSpecificationEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getRedefinesRule() { + return redefinesRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getRedefinesRule_Property() { + return (EReference) redefinesRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getSubsetsRule() { + return subsetsRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getSubsetsRule_Property() { + return (EReference) subsetsRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getDefaultValueRule() { + return defaultValueRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EReference getDefaultValueRule_Default() { + return (EReference) defaultValueRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getValue() { + return valueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getIntValue() { + return intValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getIntValue_LiteralInteger() { + return (EAttribute) intValueEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getStringValue() { + return stringValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getStringValue_LiteralString() { + return (EAttribute) stringValueEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getBooleanValue() { + return booleanValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getBooleanValue_LiteralBoolean() { + return (EAttribute) booleanValueEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getRealValue() { + return realValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getRealValue_Integer() { + return (EAttribute) realValueEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getRealValue_Fraction() { + return (EAttribute) realValueEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getNullValue() { + return nullValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EClass getNoValue() { + return noValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EEnum getVisibilityKind() { + return visibilityKindEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EEnum getModifierKind() { + return modifierKindEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public EEnum getBooleanLiterals() { + return booleanLiteralsEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UmlPropertyFactory getUmlPropertyFactory() { + return (UmlPropertyFactory) getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void createPackageContents() { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + propertyRuleEClass = createEClass(PROPERTY_RULE); + createEReference(propertyRuleEClass, PROPERTY_RULE__VISIBILITY); + createEAttribute(propertyRuleEClass, PROPERTY_RULE__DERIVED); + createEAttribute(propertyRuleEClass, PROPERTY_RULE__NAME); + createEReference(propertyRuleEClass, PROPERTY_RULE__TYPE); + createEAttribute(propertyRuleEClass, PROPERTY_RULE__TYPE_UNDEFINED); + createEReference(propertyRuleEClass, PROPERTY_RULE__MULTIPLICITY); + createEReference(propertyRuleEClass, PROPERTY_RULE__MODIFIERS); + createEReference(propertyRuleEClass, PROPERTY_RULE__DEFAULT); + + visibilityRuleEClass = createEClass(VISIBILITY_RULE); + createEAttribute(visibilityRuleEClass, VISIBILITY_RULE__VISIBILITY); + + typeRuleEClass = createEClass(TYPE_RULE); + createEReference(typeRuleEClass, TYPE_RULE__PATH); + createEReference(typeRuleEClass, TYPE_RULE__TYPE); + + qualifiedNameEClass = createEClass(QUALIFIED_NAME); + createEReference(qualifiedNameEClass, QUALIFIED_NAME__PATH); + createEReference(qualifiedNameEClass, QUALIFIED_NAME__REMAINING); + + multiplicityRuleEClass = createEClass(MULTIPLICITY_RULE); + createEReference(multiplicityRuleEClass, MULTIPLICITY_RULE__BOUNDS); + + boundSpecificationEClass = createEClass(BOUND_SPECIFICATION); + createEAttribute(boundSpecificationEClass, BOUND_SPECIFICATION__VALUE); + + modifiersRuleEClass = createEClass(MODIFIERS_RULE); + createEReference(modifiersRuleEClass, MODIFIERS_RULE__VALUES); + + modifierSpecificationEClass = createEClass(MODIFIER_SPECIFICATION); + createEAttribute(modifierSpecificationEClass, MODIFIER_SPECIFICATION__VALUE); + createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__REDEFINES); + createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__SUBSETS); + + redefinesRuleEClass = createEClass(REDEFINES_RULE); + createEReference(redefinesRuleEClass, REDEFINES_RULE__PROPERTY); + + subsetsRuleEClass = createEClass(SUBSETS_RULE); + createEReference(subsetsRuleEClass, SUBSETS_RULE__PROPERTY); + + defaultValueRuleEClass = createEClass(DEFAULT_VALUE_RULE); + createEReference(defaultValueRuleEClass, DEFAULT_VALUE_RULE__DEFAULT); + + valueEClass = createEClass(VALUE); + + intValueEClass = createEClass(INT_VALUE); + createEAttribute(intValueEClass, INT_VALUE__LITERAL_INTEGER); + + stringValueEClass = createEClass(STRING_VALUE); + createEAttribute(stringValueEClass, STRING_VALUE__LITERAL_STRING); + + booleanValueEClass = createEClass(BOOLEAN_VALUE); + createEAttribute(booleanValueEClass, BOOLEAN_VALUE__LITERAL_BOOLEAN); + + realValueEClass = createEClass(REAL_VALUE); + createEAttribute(realValueEClass, REAL_VALUE__INTEGER); + createEAttribute(realValueEClass, REAL_VALUE__FRACTION); + + nullValueEClass = createEClass(NULL_VALUE); + + noValueEClass = createEClass(NO_VALUE); + + // Create enums + visibilityKindEEnum = createEEnum(VISIBILITY_KIND); + modifierKindEEnum = createEEnum(MODIFIER_KIND); + booleanLiteralsEEnum = createEEnum(BOOLEAN_LITERALS); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + UMLPackage theUMLPackage = (UMLPackage) EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + intValueEClass.getESuperTypes().add(this.getValue()); + stringValueEClass.getESuperTypes().add(this.getValue()); + booleanValueEClass.getESuperTypes().add(this.getValue()); + realValueEClass.getESuperTypes().add(this.getValue()); + nullValueEClass.getESuperTypes().add(this.getValue()); + noValueEClass.getESuperTypes().add(this.getValue()); + + // Initialize classes and features; add operations and parameters + initEClass(propertyRuleEClass, PropertyRule.class, "PropertyRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPropertyRule_Visibility(), this.getVisibilityRule(), null, "visibility", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getPropertyRule_Derived(), theEcorePackage.getEBoolean(), "derived", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPropertyRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertyRule_Type(), this.getTypeRule(), null, "type", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPropertyRule_TypeUndefined(), theEcorePackage.getEBoolean(), "typeUndefined", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertyRule_Multiplicity(), this.getMultiplicityRule(), null, "multiplicity", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getPropertyRule_Modifiers(), this.getModifiersRule(), null, "modifiers", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertyRule_Default(), this.getDefaultValueRule(), null, "default", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(visibilityRuleEClass, VisibilityRule.class, "VisibilityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVisibilityRule_Visibility(), this.getVisibilityKind(), "visibility", null, 0, 1, VisibilityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(typeRuleEClass, TypeRule.class, "TypeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTypeRule_Path(), this.getQualifiedName(), null, "path", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTypeRule_Type(), theUMLPackage.getClassifier(), null, "type", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(qualifiedNameEClass, QualifiedName.class, "QualifiedName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getQualifiedName_Path(), theUMLPackage.getNamespace(), null, "path", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(multiplicityRuleEClass, MultiplicityRule.class, "MultiplicityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMultiplicityRule_Bounds(), this.getBoundSpecification(), null, "bounds", null, 0, -1, MultiplicityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(boundSpecificationEClass, BoundSpecification.class, "BoundSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBoundSpecification_Value(), theEcorePackage.getEString(), "value", null, 0, 1, BoundSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(modifiersRuleEClass, ModifiersRule.class, "ModifiersRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getModifiersRule_Values(), this.getModifierSpecification(), null, "values", null, 0, -1, ModifiersRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(modifierSpecificationEClass, ModifierSpecification.class, "ModifierSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getModifierSpecification_Value(), this.getModifierKind(), "value", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getModifierSpecification_Redefines(), this.getRedefinesRule(), null, "redefines", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getModifierSpecification_Subsets(), this.getSubsetsRule(), null, "subsets", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(redefinesRuleEClass, RedefinesRule.class, "RedefinesRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRedefinesRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, RedefinesRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(subsetsRuleEClass, SubsetsRule.class, "SubsetsRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSubsetsRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, SubsetsRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(defaultValueRuleEClass, DefaultValueRule.class, "DefaultValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDefaultValueRule_Default(), this.getValue(), null, "default", null, 0, 1, DefaultValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(intValueEClass, IntValue.class, "IntValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIntValue_LiteralInteger(), theEcorePackage.getEInt(), "literalInteger", null, 0, 1, IntValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringValueEClass, StringValue.class, "StringValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringValue_LiteralString(), theEcorePackage.getEString(), "literalString", null, 0, 1, StringValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(booleanValueEClass, BooleanValue.class, "BooleanValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBooleanValue_LiteralBoolean(), this.getBooleanLiterals(), "literalBoolean", null, 0, 1, BooleanValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(realValueEClass, RealValue.class, "RealValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRealValue_Integer(), theEcorePackage.getEInt(), "integer", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRealValue_Fraction(), theEcorePackage.getEInt(), "fraction", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(nullValueEClass, NullValue.class, "NullValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(noValueEClass, NoValue.class, "NoValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Initialize enums and add enum literals + initEEnum(visibilityKindEEnum, VisibilityKind.class, "VisibilityKind"); + addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PUBLIC); + addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PRIVATE); + addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PROTECTED); + addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PACKAGE); + + initEEnum(modifierKindEEnum, ModifierKind.class, "ModifierKind"); + addEEnumLiteral(modifierKindEEnum, ModifierKind.READ_ONLY); + addEEnumLiteral(modifierKindEEnum, ModifierKind.UNION); + addEEnumLiteral(modifierKindEEnum, ModifierKind.ORDERED); + addEEnumLiteral(modifierKindEEnum, ModifierKind.UNIQUE); + + initEEnum(booleanLiteralsEEnum, BooleanLiterals.class, "BooleanLiterals"); + addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.TRUE); + addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.FALSE); + + // Create resource + createResource(eNS_URI); + } + +} // UmlPropertyPackageImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java index d5db6058160..a37fe3dc710 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java @@ -3,9 +3,7 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; @@ -16,27 +14,26 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; * * @generated */ -public class ValueImpl extends MinimalEObjectImpl.Container implements Value -{ - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected ValueImpl() - { - super(); - } +public class ValueImpl extends MinimalEObjectImpl.Container implements Value { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected ValueImpl() { + super(); + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.VALUE; - } + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.VALUE; + } -} //ValueImpl +} // ValueImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java index a896967bb29..73e21952e36 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java @@ -3,12 +3,9 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule; @@ -21,158 +18,156 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRul * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl#getVisibility <em>Visibility</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl#getVisibility <em>Visibility</em>}</li> * </ul> * * @generated */ -public class VisibilityRuleImpl extends MinimalEObjectImpl.Container implements VisibilityRule -{ - /** - * The default value of the '{@link #getVisibility() <em>Visibility</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVisibility() - * @generated - * @ordered - */ - protected static final VisibilityKind VISIBILITY_EDEFAULT = VisibilityKind.PUBLIC; - - /** - * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVisibility() - * @generated - * @ordered - */ - protected VisibilityKind visibility = VISIBILITY_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected VisibilityRuleImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return UmlPropertyPackage.Literals.VISIBILITY_RULE; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public VisibilityKind getVisibility() - { - return visibility; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setVisibility(VisibilityKind newVisibility) - { - VisibilityKind oldVisibility = visibility; - visibility = newVisibility == null ? VISIBILITY_EDEFAULT : newVisibility; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY, oldVisibility, visibility)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: - return getVisibility(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: - setVisibility((VisibilityKind)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: - setVisibility(VISIBILITY_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: - return visibility != VISIBILITY_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (visibility: "); - result.append(visibility); - result.append(')'); - return result.toString(); - } - -} //VisibilityRuleImpl +public class VisibilityRuleImpl extends MinimalEObjectImpl.Container implements VisibilityRule { + /** + * The default value of the '{@link #getVisibility() <em>Visibility</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getVisibility() + * @generated + * @ordered + */ + protected static final VisibilityKind VISIBILITY_EDEFAULT = VisibilityKind.PUBLIC; + + /** + * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #getVisibility() + * @generated + * @ordered + */ + protected VisibilityKind visibility = VISIBILITY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected VisibilityRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return UmlPropertyPackage.Literals.VISIBILITY_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public VisibilityKind getVisibility() { + return visibility; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public void setVisibility(VisibilityKind newVisibility) { + VisibilityKind oldVisibility = visibility; + visibility = newVisibility == null ? VISIBILITY_EDEFAULT : newVisibility; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY, oldVisibility, visibility)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: + return getVisibility(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: + setVisibility((VisibilityKind) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: + setVisibility(VISIBILITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY: + return visibility != VISIBILITY_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (visibility: "); + result.append(visibility); + result.append(')'); + return result.toString(); + } + +} // VisibilityRuleImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java index 81c371a4a9b..98ddb2afa76 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java @@ -4,469 +4,481 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; - import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - import org.eclipse.emf.ecore.EObject; - -import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule; /** * <!-- begin-user-doc --> * The <b>Adapter Factory</b> for the model. * It provides an adapter <code>createXXX</code> method for each class of the model. * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage * @generated */ -public class UmlPropertyAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static UmlPropertyPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UmlPropertyAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = UmlPropertyPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) - { - if (object == modelPackage) - { - return true; - } - if (object instanceof EObject) - { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected UmlPropertySwitch<Adapter> modelSwitch = - new UmlPropertySwitch<Adapter>() - { - @Override - public Adapter casePropertyRule(PropertyRule object) - { - return createPropertyRuleAdapter(); - } - @Override - public Adapter caseVisibilityRule(VisibilityRule object) - { - return createVisibilityRuleAdapter(); - } - @Override - public Adapter caseTypeRule(TypeRule object) - { - return createTypeRuleAdapter(); - } - @Override - public Adapter caseQualifiedName(QualifiedName object) - { - return createQualifiedNameAdapter(); - } - @Override - public Adapter caseMultiplicityRule(MultiplicityRule object) - { - return createMultiplicityRuleAdapter(); - } - @Override - public Adapter caseBoundSpecification(BoundSpecification object) - { - return createBoundSpecificationAdapter(); - } - @Override - public Adapter caseModifiersRule(ModifiersRule object) - { - return createModifiersRuleAdapter(); - } - @Override - public Adapter caseModifierSpecification(ModifierSpecification object) - { - return createModifierSpecificationAdapter(); - } - @Override - public Adapter caseRedefinesRule(RedefinesRule object) - { - return createRedefinesRuleAdapter(); - } - @Override - public Adapter caseSubsetsRule(SubsetsRule object) - { - return createSubsetsRuleAdapter(); - } - @Override - public Adapter caseDefaultValueRule(DefaultValueRule object) - { - return createDefaultValueRuleAdapter(); - } - @Override - public Adapter caseValue(Value object) - { - return createValueAdapter(); - } - @Override - public Adapter caseIntValue(IntValue object) - { - return createIntValueAdapter(); - } - @Override - public Adapter caseStringValue(StringValue object) - { - return createStringValueAdapter(); - } - @Override - public Adapter caseBooleanValue(BooleanValue object) - { - return createBooleanValueAdapter(); - } - @Override - public Adapter caseRealValue(RealValue object) - { - return createRealValueAdapter(); - } - @Override - public Adapter caseNullValue(NullValue object) - { - return createNullValueAdapter(); - } - @Override - public Adapter caseNoValue(NoValue object) - { - return createNoValueAdapter(); - } - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) - { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule - * @generated - */ - public Adapter createPropertyRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule - * @generated - */ - public Adapter createVisibilityRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule - * @generated - */ - public Adapter createTypeRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName - * @generated - */ - public Adapter createQualifiedNameAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule - * @generated - */ - public Adapter createMultiplicityRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification - * @generated - */ - public Adapter createBoundSpecificationAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule - * @generated - */ - public Adapter createModifiersRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification - * @generated - */ - public Adapter createModifierSpecificationAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule - * @generated - */ - public Adapter createRedefinesRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule - * @generated - */ - public Adapter createSubsetsRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule - * @generated - */ - public Adapter createDefaultValueRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value - * @generated - */ - public Adapter createValueAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue - * @generated - */ - public Adapter createIntValueAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue - * @generated - */ - public Adapter createStringValueAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue - * @generated - */ - public Adapter createBooleanValueAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue - * @generated - */ - public Adapter createRealValueAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue - * @generated - */ - public Adapter createNullValueAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue - * @generated - */ - public Adapter createNoValueAdapter() - { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() - { - return null; - } - -} //UmlPropertyAdapterFactory +public class UmlPropertyAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static UmlPropertyPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UmlPropertyAdapterFactory() { + if (modelPackage == null) { + modelPackage = UmlPropertyPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected UmlPropertySwitch<Adapter> modelSwitch = new UmlPropertySwitch<Adapter>() { + @Override + public Adapter casePropertyRule(PropertyRule object) { + return createPropertyRuleAdapter(); + } + + @Override + public Adapter caseVisibilityRule(VisibilityRule object) { + return createVisibilityRuleAdapter(); + } + + @Override + public Adapter caseTypeRule(TypeRule object) { + return createTypeRuleAdapter(); + } + + @Override + public Adapter caseQualifiedName(QualifiedName object) { + return createQualifiedNameAdapter(); + } + + @Override + public Adapter caseMultiplicityRule(MultiplicityRule object) { + return createMultiplicityRuleAdapter(); + } + + @Override + public Adapter caseBoundSpecification(BoundSpecification object) { + return createBoundSpecificationAdapter(); + } + + @Override + public Adapter caseModifiersRule(ModifiersRule object) { + return createModifiersRuleAdapter(); + } + + @Override + public Adapter caseModifierSpecification(ModifierSpecification object) { + return createModifierSpecificationAdapter(); + } + + @Override + public Adapter caseRedefinesRule(RedefinesRule object) { + return createRedefinesRuleAdapter(); + } + + @Override + public Adapter caseSubsetsRule(SubsetsRule object) { + return createSubsetsRuleAdapter(); + } + + @Override + public Adapter caseDefaultValueRule(DefaultValueRule object) { + return createDefaultValueRuleAdapter(); + } + + @Override + public Adapter caseValue(Value object) { + return createValueAdapter(); + } + + @Override + public Adapter caseIntValue(IntValue object) { + return createIntValueAdapter(); + } + + @Override + public Adapter caseStringValue(StringValue object) { + return createStringValueAdapter(); + } + + @Override + public Adapter caseBooleanValue(BooleanValue object) { + return createBooleanValueAdapter(); + } + + @Override + public Adapter caseRealValue(RealValue object) { + return createRealValueAdapter(); + } + + @Override + public Adapter caseNullValue(NullValue object) { + return createNullValueAdapter(); + } + + @Override + public Adapter caseNoValue(NoValue object) { + return createNoValueAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param target + * the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule + * @generated + */ + public Adapter createPropertyRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule + * @generated + */ + public Adapter createVisibilityRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule + * @generated + */ + public Adapter createTypeRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName + * @generated + */ + public Adapter createQualifiedNameAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule + * @generated + */ + public Adapter createMultiplicityRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification + * @generated + */ + public Adapter createBoundSpecificationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule + * @generated + */ + public Adapter createModifiersRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification + * @generated + */ + public Adapter createModifierSpecificationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule + * @generated + */ + public Adapter createRedefinesRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule + * @generated + */ + public Adapter createSubsetsRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule + * @generated + */ + public Adapter createDefaultValueRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value + * @generated + */ + public Adapter createValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue + * @generated + */ + public Adapter createIntValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue + * @generated + */ + public Adapter createStringValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue + * @generated + */ + public Adapter createBooleanValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue + * @generated + */ + public Adapter createRealValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue + * @generated + */ + public Adapter createNullValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue + * @generated + */ + public Adapter createNoValueAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // UmlPropertyAdapterFactory diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java index a9f7639cfcc..1c533d6b1fb 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java @@ -4,10 +4,26 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; - import org.eclipse.emf.ecore.util.Switch; - -import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; +import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule; /** * <!-- begin-user-doc --> @@ -19,498 +35,524 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*; * until a non-null result is returned, * which is the result of the switch. * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage * @generated */ -public class UmlPropertySwitch<T> extends Switch<T> -{ - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static UmlPropertyPackage modelPackage; +public class UmlPropertySwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + protected static UmlPropertyPackage modelPackage; - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public UmlPropertySwitch() - { - if (modelPackage == null) - { - modelPackage = UmlPropertyPackage.eINSTANCE; - } - } + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public UmlPropertySwitch() { + if (modelPackage == null) { + modelPackage = UmlPropertyPackage.eINSTANCE; + } + } - /** - * Checks whether this is a switch for the given package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) - { - return ePackage == modelPackage; - } + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @param ePackage + * the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case UmlPropertyPackage.PROPERTY_RULE: - { - PropertyRule propertyRule = (PropertyRule)theEObject; - T result = casePropertyRule(propertyRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.VISIBILITY_RULE: - { - VisibilityRule visibilityRule = (VisibilityRule)theEObject; - T result = caseVisibilityRule(visibilityRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.TYPE_RULE: - { - TypeRule typeRule = (TypeRule)theEObject; - T result = caseTypeRule(typeRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.QUALIFIED_NAME: - { - QualifiedName qualifiedName = (QualifiedName)theEObject; - T result = caseQualifiedName(qualifiedName); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.MULTIPLICITY_RULE: - { - MultiplicityRule multiplicityRule = (MultiplicityRule)theEObject; - T result = caseMultiplicityRule(multiplicityRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.BOUND_SPECIFICATION: - { - BoundSpecification boundSpecification = (BoundSpecification)theEObject; - T result = caseBoundSpecification(boundSpecification); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.MODIFIERS_RULE: - { - ModifiersRule modifiersRule = (ModifiersRule)theEObject; - T result = caseModifiersRule(modifiersRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.MODIFIER_SPECIFICATION: - { - ModifierSpecification modifierSpecification = (ModifierSpecification)theEObject; - T result = caseModifierSpecification(modifierSpecification); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.REDEFINES_RULE: - { - RedefinesRule redefinesRule = (RedefinesRule)theEObject; - T result = caseRedefinesRule(redefinesRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.SUBSETS_RULE: - { - SubsetsRule subsetsRule = (SubsetsRule)theEObject; - T result = caseSubsetsRule(subsetsRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.DEFAULT_VALUE_RULE: - { - DefaultValueRule defaultValueRule = (DefaultValueRule)theEObject; - T result = caseDefaultValueRule(defaultValueRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.VALUE: - { - Value value = (Value)theEObject; - T result = caseValue(value); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.INT_VALUE: - { - IntValue intValue = (IntValue)theEObject; - T result = caseIntValue(intValue); - if (result == null) result = caseValue(intValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.STRING_VALUE: - { - StringValue stringValue = (StringValue)theEObject; - T result = caseStringValue(stringValue); - if (result == null) result = caseValue(stringValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.BOOLEAN_VALUE: - { - BooleanValue booleanValue = (BooleanValue)theEObject; - T result = caseBooleanValue(booleanValue); - if (result == null) result = caseValue(booleanValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.REAL_VALUE: - { - RealValue realValue = (RealValue)theEObject; - T result = caseRealValue(realValue); - if (result == null) result = caseValue(realValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.NULL_VALUE: - { - NullValue nullValue = (NullValue)theEObject; - T result = caseNullValue(nullValue); - if (result == null) result = caseValue(nullValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - case UmlPropertyPackage.NO_VALUE: - { - NoValue noValue = (NoValue)theEObject; - T result = caseNoValue(noValue); - if (result == null) result = caseValue(noValue); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case UmlPropertyPackage.PROPERTY_RULE: { + PropertyRule propertyRule = (PropertyRule) theEObject; + T result = casePropertyRule(propertyRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.VISIBILITY_RULE: { + VisibilityRule visibilityRule = (VisibilityRule) theEObject; + T result = caseVisibilityRule(visibilityRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.TYPE_RULE: { + TypeRule typeRule = (TypeRule) theEObject; + T result = caseTypeRule(typeRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.QUALIFIED_NAME: { + QualifiedName qualifiedName = (QualifiedName) theEObject; + T result = caseQualifiedName(qualifiedName); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.MULTIPLICITY_RULE: { + MultiplicityRule multiplicityRule = (MultiplicityRule) theEObject; + T result = caseMultiplicityRule(multiplicityRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.BOUND_SPECIFICATION: { + BoundSpecification boundSpecification = (BoundSpecification) theEObject; + T result = caseBoundSpecification(boundSpecification); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.MODIFIERS_RULE: { + ModifiersRule modifiersRule = (ModifiersRule) theEObject; + T result = caseModifiersRule(modifiersRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.MODIFIER_SPECIFICATION: { + ModifierSpecification modifierSpecification = (ModifierSpecification) theEObject; + T result = caseModifierSpecification(modifierSpecification); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.REDEFINES_RULE: { + RedefinesRule redefinesRule = (RedefinesRule) theEObject; + T result = caseRedefinesRule(redefinesRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.SUBSETS_RULE: { + SubsetsRule subsetsRule = (SubsetsRule) theEObject; + T result = caseSubsetsRule(subsetsRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.DEFAULT_VALUE_RULE: { + DefaultValueRule defaultValueRule = (DefaultValueRule) theEObject; + T result = caseDefaultValueRule(defaultValueRule); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.VALUE: { + Value value = (Value) theEObject; + T result = caseValue(value); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.INT_VALUE: { + IntValue intValue = (IntValue) theEObject; + T result = caseIntValue(intValue); + if (result == null) + result = caseValue(intValue); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.STRING_VALUE: { + StringValue stringValue = (StringValue) theEObject; + T result = caseStringValue(stringValue); + if (result == null) + result = caseValue(stringValue); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.BOOLEAN_VALUE: { + BooleanValue booleanValue = (BooleanValue) theEObject; + T result = caseBooleanValue(booleanValue); + if (result == null) + result = caseValue(booleanValue); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.REAL_VALUE: { + RealValue realValue = (RealValue) theEObject; + T result = caseRealValue(realValue); + if (result == null) + result = caseValue(realValue); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.NULL_VALUE: { + NullValue nullValue = (NullValue) theEObject; + T result = caseNullValue(nullValue); + if (result == null) + result = caseValue(nullValue); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case UmlPropertyPackage.NO_VALUE: { + NoValue noValue = (NoValue) theEObject; + T result = caseNoValue(noValue); + if (result == null) + result = caseValue(noValue); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } - /** - * Returns the result of interpreting the object as an instance of '<em>Property Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Property Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T casePropertyRule(PropertyRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Property Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Property Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePropertyRule(PropertyRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Visibility Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Visibility Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseVisibilityRule(VisibilityRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Visibility Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Visibility Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVisibilityRule(VisibilityRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Type Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Type Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseTypeRule(TypeRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Type Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Type Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTypeRule(TypeRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Qualified Name</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Qualified Name</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseQualifiedName(QualifiedName object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Qualified Name</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Qualified Name</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseQualifiedName(QualifiedName object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultiplicityRule(MultiplicityRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMultiplicityRule(MultiplicityRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Bound Specification</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Bound Specification</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseBoundSpecification(BoundSpecification object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Bound Specification</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Bound Specification</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBoundSpecification(BoundSpecification object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseModifiersRule(ModifiersRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModifiersRule(ModifiersRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Modifier Specification</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Modifier Specification</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseModifierSpecification(ModifierSpecification object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Modifier Specification</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Modifier Specification</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModifierSpecification(ModifierSpecification object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Redefines Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Redefines Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRedefinesRule(RedefinesRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Redefines Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Redefines Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRedefinesRule(RedefinesRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Subsets Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Subsets Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSubsetsRule(SubsetsRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Subsets Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Subsets Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSubsetsRule(SubsetsRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Default Value Rule</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Default Value Rule</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDefaultValueRule(DefaultValueRule object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Default Value Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Default Value Rule</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDefaultValueRule(DefaultValueRule object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseValue(Value object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseValue(Value object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Int Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIntValue(IntValue object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Int Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIntValue(IntValue object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>String Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>String Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStringValue(StringValue object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>String Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>String Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringValue(StringValue object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Boolean Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Boolean Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseBooleanValue(BooleanValue object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Boolean Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Boolean Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBooleanValue(BooleanValue object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Real Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Real Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRealValue(RealValue object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Real Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Real Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRealValue(RealValue object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>Null Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Null Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNullValue(NullValue object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>Null Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Null Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNullValue(NullValue object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>No Value</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>No Value</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNoValue(NoValue object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>No Value</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>No Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNoValue(NoValue object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } -} //UmlPropertySwitch +} // UmlPropertySwitch diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java index fef7c6bcb12..ed456180604 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java @@ -2,20 +2,20 @@ * generated by Xtext */ package org.eclipse.papyrus.uml.textedit.property.xtext.validation; - + import java.util.ArrayList; import java.util.List; import org.eclipse.emf.ecore.EPackage; import org.eclipse.xtext.validation.ComposedChecks; -@ComposedChecks(validators= {org.eclipse.xtext.validation.ImportUriValidator.class, org.eclipse.xtext.validation.NamesAreUniqueValidator.class}) +@ComposedChecks(validators = { org.eclipse.xtext.validation.ImportUriValidator.class, org.eclipse.xtext.validation.NamesAreUniqueValidator.class }) public class AbstractUmlPropertyJavaValidator extends org.eclipse.papyrus.uml.alf.validation.CommonJavaValidator { @Override protected List<EPackage> getEPackages() { - List<EPackage> result = new ArrayList<EPackage>(); - result.add(org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE); + List<EPackage> result = new ArrayList<EPackage>(); + result.add(org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE); return result; } |