Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext')
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext198
1 files changed, 99 insertions, 99 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext
index 93beefd0c71..fd016b11906 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext
@@ -1,99 +1,99 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-
-grammar org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty with org.eclipse.papyrus.uml.alf.Common
-
-import "http://www.eclipse.org/uml2/5.0.0/UML" as uml
-import "http://www.eclipse.org/emf/2002/Ecore" as ecore
-
-
-generate umlProperty "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty"
-
-PropertyRule:
- (visibility = VisibilityRule)?
- (derived ?= "/")?
- name=ID (':' (type=TypeRule | typeUndefined?="<Undefined>"))?
- (multiplicity = MultiplicityRule) ?
- (modifiers = ModifiersRule) ?
- (default = DefaultValueRule) ? ;
-
-enum VisibilityKind:
- public = "+"
- | private = "-"
- | protected = "#"
- | package = "~"
-;
-
-VisibilityRule:
- visibility = VisibilityKind
-;
-
-TypeRule :
- (path=QualifiedName)? type=[uml::Classifier] ;
-
-QualifiedName :
- path=[uml::Namespace]'::' (remaining=QualifiedName)? ;
-
-MultiplicityRule:
- "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]" ;
-
-BoundSpecification:
- value = (UnlimitedLiteral | StringLiteral) ;
-
-UnlimitedLiteral : INT |'*';
-
-StringLiteral : STRING;
-
-ModifiersRule:
- {ModifiersRule}'{' (values += ModifierSpecification (',' values += ModifierSpecification)*)? '}';
-
-ModifierSpecification:
- value = ModifierKind
- | redefines = RedefinesRule
- | subsets = SubsetsRule ;
-
-enum ModifierKind:
- readOnly = "readOnly"
- | union = "union"
- | ordered = "ordered"
- | unique = "unique" ;
-
-RedefinesRule :
- 'redefines' property = [uml::Property] ;
-
-SubsetsRule :
- 'subsets' property = [uml::Property] ;
-
-DefaultValueRule :
- '=' default = Value ;
-
-Value : IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
-
-IntValue : literalInteger = INT;
-
-StringValue : literalString = STRING;
-
-enum BooleanLiterals:
- true = "true" |
- false = "false"
-;
-
-BooleanValue : literalBoolean = BooleanLiterals;
-
-//TODO: Support all Java-compliant doubles
-RealValue : integer = INT '.' | '.' fraction = INT | integer = INT "." fraction = INT;
-
-NullValue : {NullValue}'null';
-
-NoValue : {NoValue}'none';
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+
+grammar org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty with org.eclipse.papyrus.uml.alf.Common
+
+import "http://www.eclipse.org/uml2/5.0.0/UML" as uml
+import "http://www.eclipse.org/emf/2002/Ecore" as ecore
+
+
+generate umlProperty "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty"
+
+PropertyRule:
+ (visibility = VisibilityRule)?
+ (derived ?= "/")?
+ name=ID (':' (type=TypeRule | typeUndefined?="<Undefined>"))?
+ (multiplicity = MultiplicityRule) ?
+ (modifiers = ModifiersRule) ?
+ (default = DefaultValueRule) ? ;
+
+enum VisibilityKind:
+ public = "+"
+ | private = "-"
+ | protected = "#"
+ | package = "~"
+;
+
+VisibilityRule:
+ visibility = VisibilityKind
+;
+
+TypeRule :
+ (path=QualifiedName)? type=[uml::Classifier] ;
+
+QualifiedName :
+ path=[uml::Namespace]'::' (remaining=QualifiedName)? ;
+
+MultiplicityRule:
+ "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]" ;
+
+BoundSpecification:
+ value = (UnlimitedLiteral | StringLiteral) ;
+
+UnlimitedLiteral : INT |'*';
+
+StringLiteral : STRING;
+
+ModifiersRule:
+ {ModifiersRule}'{' (values += ModifierSpecification (',' values += ModifierSpecification)*)? '}';
+
+ModifierSpecification:
+ value = ModifierKind
+ | redefines = RedefinesRule
+ | subsets = SubsetsRule ;
+
+enum ModifierKind:
+ readOnly = "readOnly"
+ | union = "union"
+ | ordered = "ordered"
+ | unique = "unique" ;
+
+RedefinesRule :
+ 'redefines' property = [uml::Property] ;
+
+SubsetsRule :
+ 'subsets' property = [uml::Property] ;
+
+DefaultValueRule :
+ '=' default = Value ;
+
+Value : IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
+
+IntValue : literalInteger = INT;
+
+StringValue : literalString = STRING;
+
+enum BooleanLiterals:
+ TRUE = "true" |
+ FALSE = "false"
+;
+
+BooleanValue : literalBoolean = BooleanLiterals;
+
+//TODO: Support all Java-compliant doubles
+RealValue : integer = INT '.' | '.' fraction = INT | integer = INT "." fraction = INT;
+
+NullValue : {NullValue}'null';
+
+NoValue : {NoValue}'none';

Back to the top