eclipse plugin: Add the rest of old Tag and TagKey classes attributes...

...to the Grammar ones
This commit is contained in:
Timotei Dolean 2011-07-26 15:34:21 +00:00
parent 06ae888c4f
commit bff4e240b2
13 changed files with 639 additions and 387 deletions

View file

@ -1,83 +1,84 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Wesnoth UMC Plugin
Bundle-Vendor: www.wesnoth.org
Bundle-Version: 1.0.3
Bundle-SymbolicName: org.wesnoth;singleton:=true
Bundle-Activator: org.wesnoth.WesnothPlugin
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.xtext,
com.ibm.icu;resolution:=optional,
org.apache.ant;bundle-version="1.7.1",
org.apache.commons.logging;resolution:=optional,
org.antlr.runtime;bundle-version="3.2.0",
org.eclipse.core.expressions;bundle-version="3.4.200",
org.eclipse.core.filesystem;bundle-version="1.2.1",
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.emf.ecore,
org.eclipse.emf.common,
org.eclipse.emf.codegen.ecore;resolution:=optional,
org.eclipse.emf.mwe.utils;resolution:=optional,
org.eclipse.emf.mwe2.launch;resolution:=optional,
org.eclipse.equinox.http.jetty;bundle-version="2.0.0",
org.eclipse.osgi.util;bundle-version="3.2.100",
org.eclipse.osgi;bundle-version="3.6.0",
org.eclipse.ui,
org.eclipse.ui.console;bundle-version="3.4.0",
org.eclipse.ui.editors;bundle-version="3.3.0",
org.eclipse.ui.ide,
org.eclipse.ui.intro,
org.eclipse.ui.intro.universal,
org.eclipse.ui.navigator;bundle-version="3.5.0",
org.eclipse.ui.navigator.resources,
org.eclipse.ui.views.log;bundle-version="1.0.100",
org.eclipse.xtext.builder;bundle-version="2.0.0",
org.eclipse.xtext.generator;bundle-version="2.0.0";resolution:=optional,
org.eclipse.xtext.ui;bundle-version="2.0.0",
org.eclipse.xtext.util;bundle-version="2.0.0",
org.eclipse.xtext.junit;bundle-version="2.0.0",
org.eclipse.jface.text;bundle-version="3.3.0",
org.eclipse.help;bundle-version="3.5.0",
org.eclipse.help.ui;bundle-version="3.5.3",
org.eclipse.help.appserver;bundle-version="3.1.400",
org.eclipse.help.webapp;bundle-version="3.5.3",
org.mortbay.jetty.server;bundle-version="6.1.23"
Import-Package: org.apache.log4j
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: org.wesnoth,
org.wesnoth.action,
org.wesnoth.builder,
org.wesnoth.editors,
org.wesnoth.formatting,
org.wesnoth.handlers,
org.wesnoth.installs,
org.wesnoth.jface,
org.wesnoth.navigator,
org.wesnoth.parseTreeConstruction,
org.wesnoth.parser.antlr,
org.wesnoth.parser.antlr.internal,
org.wesnoth.preferences,
org.wesnoth.preprocessor,
org.wesnoth.product,
org.wesnoth.projects,
org.wesnoth.propertypages,
org.wesnoth.schema,
org.wesnoth.scoping,
org.wesnoth.services,
org.wesnoth.templates,
org.wesnoth.tests,
org.wesnoth.utils,
org.wesnoth.validation,
org.wesnoth.wizards,
org.wesnoth.wizards.campaign,
org.wesnoth.wizards.emptyproject,
org.wesnoth.wizards.era,
org.wesnoth.wizards.faction,
org.wesnoth.wizards.generator,
org.wesnoth.wizards.newfile,
org.wesnoth.wizards.scenario,
org.wesnoth.wml,
org.wesnoth.wml.core,
org.wesnoth.wml.impl,
org.wesnoth.wml.util
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Wesnoth UMC Plugin
Bundle-Vendor: www.wesnoth.org
Bundle-Version: 1.0.3
Bundle-SymbolicName: org.wesnoth;singleton:=true
Bundle-Activator: org.wesnoth.WesnothPlugin
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.xtext,
com.ibm.icu;resolution:=optional,
org.apache.ant;bundle-version="1.7.1",
org.apache.commons.logging;resolution:=optional,
org.antlr.runtime;bundle-version="3.2.0",
org.eclipse.core.expressions;bundle-version="3.4.200",
org.eclipse.core.filesystem;bundle-version="1.2.1",
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.emf.ecore,
org.eclipse.emf.common,
org.eclipse.emf.codegen.ecore;resolution:=optional,
org.eclipse.emf.mwe.utils;resolution:=optional,
org.eclipse.emf.mwe2.launch;resolution:=optional,
org.eclipse.equinox.http.jetty;bundle-version="2.0.0",
org.eclipse.osgi.util;bundle-version="3.2.100",
org.eclipse.osgi;bundle-version="3.6.0",
org.eclipse.ui,
org.eclipse.ui.console;bundle-version="3.4.0",
org.eclipse.ui.editors;bundle-version="3.3.0",
org.eclipse.ui.ide,
org.eclipse.ui.intro,
org.eclipse.ui.intro.universal,
org.eclipse.ui.navigator;bundle-version="3.5.0",
org.eclipse.ui.navigator.resources,
org.eclipse.ui.views.log;bundle-version="1.0.100",
org.eclipse.xtext.builder;bundle-version="2.0.0",
org.eclipse.xtext.generator;bundle-version="2.0.0";resolution:=optional,
org.eclipse.xtext.ui;bundle-version="2.0.0",
org.eclipse.xtext.util;bundle-version="2.0.0",
org.eclipse.xtext.junit;bundle-version="2.0.0",
org.eclipse.jface.text;bundle-version="3.3.0",
org.eclipse.help;bundle-version="3.5.0",
org.eclipse.help.ui;bundle-version="3.5.3",
org.eclipse.help.appserver;bundle-version="3.1.400",
org.eclipse.help.webapp;bundle-version="3.5.3",
org.mortbay.jetty.server;bundle-version="6.1.23"
Import-Package: org.apache.log4j
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: org.wesnoth,
org.wesnoth.action,
org.wesnoth.builder,
org.wesnoth.editors,
org.wesnoth.formatting,
org.wesnoth.handlers,
org.wesnoth.installs,
org.wesnoth.jface,
org.wesnoth.navigator,
org.wesnoth.parseTreeConstruction,
org.wesnoth.parser.antlr,
org.wesnoth.parser.antlr.internal,
org.wesnoth.preferences,
org.wesnoth.preprocessor,
org.wesnoth.product,
org.wesnoth.projects,
org.wesnoth.propertypages,
org.wesnoth.schema,
org.wesnoth.scoping,
org.wesnoth.services,
org.wesnoth.templates,
org.wesnoth.tests,
org.wesnoth.utils,
org.wesnoth.validation,
org.wesnoth.wizards,
org.wesnoth.wizards.campaign,
org.wesnoth.wizards.emptyproject,
org.wesnoth.wizards.era,
org.wesnoth.wizards.faction,
org.wesnoth.wizards.generator,
org.wesnoth.wizards.newfile,
org.wesnoth.wizards.scenario,
org.wesnoth.wml,
org.wesnoth.wml.core,
org.wesnoth.wml.impl,
org.wesnoth.wml.util

View file

@ -16,32 +16,32 @@
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="endName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_extendedTagName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_InhertedTagName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_cardinality" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EChar"
defaultValueLiteral=" "/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_needsExpanding" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_NeedingExpansion" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_Description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WMLKey" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLExpression">
<eOperations name="is_Required" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return _cardinality == '1';"/>
<details key="body" value="return _Cardinality == '1';"/>
</eAnnotations>
</eOperations>
<eOperations name="is_Forbidden" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return _cardinality == '-';"/>
<details key="body" value="return _Cardinality == '-';"/>
</eAnnotations>
</eOperations>
<eOperations name="is_Optional" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return _cardinality == '?';"/>
<details key="body" value="return _Cardinality == '?';"/>
</eAnnotations>
</eOperations>
<eOperations name="is_Repeatable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return _cardinality == '*';"/>
<details key="body" value="return _Cardinality == '*';"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
@ -49,12 +49,12 @@
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_cardinality" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EChar"
defaultValueLiteral=" "/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_Enum" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_Translatable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_DataType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WMLKeyValue"/>
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCall" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKeyValue platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLMacroCallParameter platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression">
@ -94,6 +94,8 @@
<eClassifiers xsi:type="ecore:EClass" name="WMLExpression" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValuedExpression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral=""/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="_Cardinality" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EChar"
defaultValueLiteral=" "/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WMLValuedExpression"/>
<eClassifiers xsi:type="ecore:EClass" name="WMLTextdomain" eSuperTypes="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression"/>

View file

@ -15,16 +15,16 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/plus"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/Expressions"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/endName"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/_extendedTagName"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/_cardinality"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/_needsExpanding"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/_InhertedTagName"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/_NeedingExpansion"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTag/_Description"/>
</genClasses>
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/value"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/eol"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/_cardinality"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/_Enum"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/_Translatable"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/_DataType"/>
<genOperations ecoreOperation="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/is_Required"/>
<genOperations ecoreOperation="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/is_Forbidden"/>
<genOperations ecoreOperation="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLKey/is_Optional"/>
@ -53,6 +53,7 @@
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLRootExpression"/>
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLExpression">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLExpression/name"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLExpression/_Cardinality"/>
</genClasses>
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLValuedExpression"/>
<genClasses ecoreClass="platform:/resource/org.wesnoth/src-gen/org/wesnoth/WML.ecore#//WMLTextdomain"/>

View file

@ -16,6 +16,7 @@ package org.wesnoth.wml;
* The following features are supported:
* <ul>
* <li>{@link org.wesnoth.wml.WMLExpression#getName <em>Name</em>}</li>
* <li>{@link org.wesnoth.wml.WMLExpression#get_Cardinality <em>Cardinality</em>}</li>
* </ul>
* </p>
*
@ -52,4 +53,31 @@ public interface WMLExpression extends WMLValuedExpression
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Cardinality</b></em>' attribute.
* The default value is <code>" "</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Cardinality</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Cardinality</em>' attribute.
* @see #set_Cardinality(char)
* @see org.wesnoth.wml.WmlPackage#getWMLExpression__Cardinality()
* @model default=" "
* @generated
*/
char get_Cardinality();
/**
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#get_Cardinality <em>Cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Cardinality</em>' attribute.
* @see #get_Cardinality()
* @generated
*/
void set_Cardinality(char value);
} // WMLExpression

View file

@ -18,9 +18,9 @@ import org.eclipse.emf.common.util.EList;
* <ul>
* <li>{@link org.wesnoth.wml.WMLKey#getValue <em>Value</em>}</li>
* <li>{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</em>}</li>
* <li>{@link org.wesnoth.wml.WMLKey#get_cardinality <em>cardinality</em>}</li>
* <li>{@link org.wesnoth.wml.WMLKey#is_Enum <em>Enum</em>}</li>
* <li>{@link org.wesnoth.wml.WMLKey#is_Translatable <em>Translatable</em>}</li>
* <li>{@link org.wesnoth.wml.WMLKey#get_DataType <em>Data Type</em>}</li>
* </ul>
* </p>
*
@ -73,33 +73,6 @@ public interface WMLKey extends WMLExpression
*/
void setEol(String value);
/**
* Returns the value of the '<em><b>cardinality</b></em>' attribute.
* The default value is <code>" "</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>cardinality</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>cardinality</em>' attribute.
* @see #set_cardinality(char)
* @see org.wesnoth.wml.WmlPackage#getWMLKey__cardinality()
* @model default=" "
* @generated
*/
char get_cardinality();
/**
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#get_cardinality <em>cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>cardinality</em>' attribute.
* @see #get_cardinality()
* @generated
*/
void set_cardinality(char value);
/**
* Returns the value of the '<em><b>Enum</b></em>' attribute.
* The default value is <code>"false"</code>.
@ -155,9 +128,36 @@ public interface WMLKey extends WMLExpression
void set_Translatable(boolean value);
/**
* Returns the value of the '<em><b>Data Type</b></em>' attribute.
* The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Data Type</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Data Type</em>' attribute.
* @see #set_DataType(String)
* @see org.wesnoth.wml.WmlPackage#getWMLKey__DataType()
* @model default=""
* @generated
*/
String get_DataType();
/**
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#get_DataType <em>Data Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _cardinality == \'1\';'"
* @param value the new value of the '<em>Data Type</em>' attribute.
* @see #get_DataType()
* @generated
*/
void set_DataType(String value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'1\';'"
* @generated
*/
boolean is_Required();
@ -165,7 +165,7 @@ public interface WMLKey extends WMLExpression
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _cardinality == \'-\';'"
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'-\';'"
* @generated
*/
boolean is_Forbidden();
@ -173,7 +173,7 @@ public interface WMLKey extends WMLExpression
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _cardinality == \'?\';'"
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'?\';'"
* @generated
*/
boolean is_Optional();
@ -181,7 +181,7 @@ public interface WMLKey extends WMLExpression
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _cardinality == \'*\';'"
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'*\';'"
* @generated
*/
boolean is_Repeatable();

View file

@ -19,9 +19,9 @@ import org.eclipse.emf.common.util.EList;
* <li>{@link org.wesnoth.wml.WMLTag#getPlus <em>Plus</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#getExpressions <em>Expressions</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#getEndName <em>End Name</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#get_extendedTagName <em>extended Tag Name</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#get_cardinality <em>cardinality</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#is_needsExpanding <em>needs Expanding</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#get_InhertedTagName <em>Inherted Tag Name</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#is_NeedingExpansion <em>Needing Expansion</em>}</li>
* <li>{@link org.wesnoth.wml.WMLTag#get_Description <em>Description</em>}</li>
* </ul>
* </p>
*
@ -102,84 +102,84 @@ public interface WMLTag extends WMLRootExpression
void setEndName(String value);
/**
* Returns the value of the '<em><b>extended Tag Name</b></em>' attribute.
* Returns the value of the '<em><b>Inherted Tag Name</b></em>' attribute.
* The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>extended Tag Name</em>' attribute isn't clear,
* If the meaning of the '<em>Inherted Tag 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>extended Tag Name</em>' attribute.
* @see #set_extendedTagName(String)
* @see org.wesnoth.wml.WmlPackage#getWMLTag__extendedTagName()
* @return the value of the '<em>Inherted Tag Name</em>' attribute.
* @see #set_InhertedTagName(String)
* @see org.wesnoth.wml.WmlPackage#getWMLTag__InhertedTagName()
* @model default=""
* @generated
*/
String get_extendedTagName();
String get_InhertedTagName();
/**
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#get_extendedTagName <em>extended Tag Name</em>}' attribute.
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#get_InhertedTagName <em>Inherted Tag Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>extended Tag Name</em>' attribute.
* @see #get_extendedTagName()
* @param value the new value of the '<em>Inherted Tag Name</em>' attribute.
* @see #get_InhertedTagName()
* @generated
*/
void set_extendedTagName(String value);
void set_InhertedTagName(String value);
/**
* Returns the value of the '<em><b>cardinality</b></em>' attribute.
* The default value is <code>" "</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>cardinality</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>cardinality</em>' attribute.
* @see #set_cardinality(char)
* @see org.wesnoth.wml.WmlPackage#getWMLTag__cardinality()
* @model default=" "
* @generated
*/
char get_cardinality();
/**
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#get_cardinality <em>cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>cardinality</em>' attribute.
* @see #get_cardinality()
* @generated
*/
void set_cardinality(char value);
/**
* Returns the value of the '<em><b>needs Expanding</b></em>' attribute.
* Returns the value of the '<em><b>Needing Expansion</b></em>' attribute.
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>needs Expanding</em>' attribute isn't clear,
* If the meaning of the '<em>Needing Expansion</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>needs Expanding</em>' attribute.
* @see #set_needsExpanding(boolean)
* @see org.wesnoth.wml.WmlPackage#getWMLTag__needsExpanding()
* @return the value of the '<em>Needing Expansion</em>' attribute.
* @see #set_NeedingExpansion(boolean)
* @see org.wesnoth.wml.WmlPackage#getWMLTag__NeedingExpansion()
* @model default="false"
* @generated
*/
boolean is_needsExpanding();
boolean is_NeedingExpansion();
/**
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#is_needsExpanding <em>needs Expanding</em>}' attribute.
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#is_NeedingExpansion <em>Needing Expansion</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>needs Expanding</em>' attribute.
* @see #is_needsExpanding()
* @param value the new value of the '<em>Needing Expansion</em>' attribute.
* @see #is_NeedingExpansion()
* @generated
*/
void set_needsExpanding(boolean value);
void set_NeedingExpansion(boolean value);
/**
* Returns the value of the '<em><b>Description</b></em>' attribute.
* The default value is <code>""</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Description</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Description</em>' attribute.
* @see #set_Description(String)
* @see org.wesnoth.wml.WmlPackage#getWMLTag__Description()
* @model default=""
* @generated
*/
String get_Description();
/**
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#get_Description <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Description</em>' attribute.
* @see #get_Description()
* @generated
*/
void set_Description(String value);
} // WMLTag

View file

@ -126,6 +126,15 @@ public interface WmlPackage extends EPackage
*/
int WML_EXPRESSION__NAME = WML_VALUED_EXPRESSION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_EXPRESSION__CARDINALITY = WML_VALUED_EXPRESSION_FEATURE_COUNT + 1;
/**
* The number of structural features of the '<em>WML Expression</em>' class.
* <!-- begin-user-doc -->
@ -133,7 +142,7 @@ public interface WmlPackage extends EPackage
* @generated
* @ordered
*/
int WML_EXPRESSION_FEATURE_COUNT = WML_VALUED_EXPRESSION_FEATURE_COUNT + 1;
int WML_EXPRESSION_FEATURE_COUNT = WML_VALUED_EXPRESSION_FEATURE_COUNT + 2;
/**
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLRootExpressionImpl <em>WML Root Expression</em>}' class.
@ -154,6 +163,15 @@ public interface WmlPackage extends EPackage
*/
int WML_ROOT_EXPRESSION__NAME = WML_EXPRESSION__NAME;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_ROOT_EXPRESSION__CARDINALITY = WML_EXPRESSION__CARDINALITY;
/**
* The number of structural features of the '<em>WML Root Expression</em>' class.
* <!-- begin-user-doc -->
@ -182,6 +200,15 @@ public interface WmlPackage extends EPackage
*/
int WML_TAG__NAME = WML_ROOT_EXPRESSION__NAME;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_TAG__CARDINALITY = WML_ROOT_EXPRESSION__CARDINALITY;
/**
* The feature id for the '<em><b>Plus</b></em>' attribute.
* <!-- begin-user-doc -->
@ -210,31 +237,31 @@ public interface WmlPackage extends EPackage
int WML_TAG__END_NAME = WML_ROOT_EXPRESSION_FEATURE_COUNT + 2;
/**
* The feature id for the '<em><b>extended Tag Name</b></em>' attribute.
* The feature id for the '<em><b>Inherted Tag Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_TAG__EXTENDED_TAG_NAME = WML_ROOT_EXPRESSION_FEATURE_COUNT + 3;
int WML_TAG__INHERTED_TAG_NAME = WML_ROOT_EXPRESSION_FEATURE_COUNT + 3;
/**
* The feature id for the '<em><b>cardinality</b></em>' attribute.
* The feature id for the '<em><b>Needing Expansion</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_TAG__CARDINALITY = WML_ROOT_EXPRESSION_FEATURE_COUNT + 4;
int WML_TAG__NEEDING_EXPANSION = WML_ROOT_EXPRESSION_FEATURE_COUNT + 4;
/**
* The feature id for the '<em><b>needs Expanding</b></em>' attribute.
* The feature id for the '<em><b>Description</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_TAG__NEEDS_EXPANDING = WML_ROOT_EXPRESSION_FEATURE_COUNT + 5;
int WML_TAG__DESCRIPTION = WML_ROOT_EXPRESSION_FEATURE_COUNT + 5;
/**
* The number of structural features of the '<em>WML Tag</em>' class.
@ -264,6 +291,15 @@ public interface WmlPackage extends EPackage
*/
int WML_KEY__NAME = WML_EXPRESSION__NAME;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_KEY__CARDINALITY = WML_EXPRESSION__CARDINALITY;
/**
* The feature id for the '<em><b>Value</b></em>' containment reference list.
* <!-- begin-user-doc -->
@ -282,15 +318,6 @@ public interface WmlPackage extends EPackage
*/
int WML_KEY__EOL = WML_EXPRESSION_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_KEY__CARDINALITY = WML_EXPRESSION_FEATURE_COUNT + 2;
/**
* The feature id for the '<em><b>Enum</b></em>' attribute.
* <!-- begin-user-doc -->
@ -298,7 +325,7 @@ public interface WmlPackage extends EPackage
* @generated
* @ordered
*/
int WML_KEY__ENUM = WML_EXPRESSION_FEATURE_COUNT + 3;
int WML_KEY__ENUM = WML_EXPRESSION_FEATURE_COUNT + 2;
/**
* The feature id for the '<em><b>Translatable</b></em>' attribute.
@ -307,7 +334,16 @@ public interface WmlPackage extends EPackage
* @generated
* @ordered
*/
int WML_KEY__TRANSLATABLE = WML_EXPRESSION_FEATURE_COUNT + 4;
int WML_KEY__TRANSLATABLE = WML_EXPRESSION_FEATURE_COUNT + 3;
/**
* The feature id for the '<em><b>Data Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_KEY__DATA_TYPE = WML_EXPRESSION_FEATURE_COUNT + 4;
/**
* The number of structural features of the '<em>WML Key</em>' class.
@ -356,6 +392,15 @@ public interface WmlPackage extends EPackage
*/
int WML_MACRO_CALL__NAME = WML_KEY_VALUE_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_MACRO_CALL__CARDINALITY = WML_KEY_VALUE_FEATURE_COUNT + 1;
/**
* The feature id for the '<em><b>Point</b></em>' attribute.
* <!-- begin-user-doc -->
@ -363,7 +408,7 @@ public interface WmlPackage extends EPackage
* @generated
* @ordered
*/
int WML_MACRO_CALL__POINT = WML_KEY_VALUE_FEATURE_COUNT + 1;
int WML_MACRO_CALL__POINT = WML_KEY_VALUE_FEATURE_COUNT + 2;
/**
* The feature id for the '<em><b>Relative</b></em>' attribute.
@ -372,7 +417,7 @@ public interface WmlPackage extends EPackage
* @generated
* @ordered
*/
int WML_MACRO_CALL__RELATIVE = WML_KEY_VALUE_FEATURE_COUNT + 2;
int WML_MACRO_CALL__RELATIVE = WML_KEY_VALUE_FEATURE_COUNT + 3;
/**
* The feature id for the '<em><b>Parameters</b></em>' containment reference list.
@ -381,7 +426,7 @@ public interface WmlPackage extends EPackage
* @generated
* @ordered
*/
int WML_MACRO_CALL__PARAMETERS = WML_KEY_VALUE_FEATURE_COUNT + 3;
int WML_MACRO_CALL__PARAMETERS = WML_KEY_VALUE_FEATURE_COUNT + 4;
/**
* The number of structural features of the '<em>WML Macro Call</em>' class.
@ -390,7 +435,7 @@ public interface WmlPackage extends EPackage
* @generated
* @ordered
*/
int WML_MACRO_CALL_FEATURE_COUNT = WML_KEY_VALUE_FEATURE_COUNT + 4;
int WML_MACRO_CALL_FEATURE_COUNT = WML_KEY_VALUE_FEATURE_COUNT + 5;
/**
* The meta object id for the '{@link org.wesnoth.wml.impl.WMLMacroCallParameterImpl <em>WML Macro Call Parameter</em>}' class.
@ -458,6 +503,15 @@ public interface WmlPackage extends EPackage
*/
int WML_MACRO_DEFINE__NAME = WML_ROOT_EXPRESSION__NAME;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_MACRO_DEFINE__CARDINALITY = WML_ROOT_EXPRESSION__CARDINALITY;
/**
* The feature id for the '<em><b>Expressions</b></em>' containment reference list.
* <!-- begin-user-doc -->
@ -504,6 +558,15 @@ public interface WmlPackage extends EPackage
*/
int WML_PREPROC_IF__NAME = WML_ROOT_EXPRESSION__NAME;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_PREPROC_IF__CARDINALITY = WML_ROOT_EXPRESSION__CARDINALITY;
/**
* The feature id for the '<em><b>Expressions</b></em>' containment reference list.
* <!-- begin-user-doc -->
@ -568,6 +631,15 @@ public interface WmlPackage extends EPackage
*/
int WML_TEXTDOMAIN__NAME = WML_ROOT_EXPRESSION__NAME;
/**
* The feature id for the '<em><b>Cardinality</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int WML_TEXTDOMAIN__CARDINALITY = WML_ROOT_EXPRESSION__CARDINALITY;
/**
* The number of structural features of the '<em>WML Textdomain</em>' class.
* <!-- begin-user-doc -->
@ -671,37 +743,37 @@ public interface WmlPackage extends EPackage
EAttribute getWMLTag_EndName();
/**
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLTag#get_extendedTagName <em>extended Tag Name</em>}'.
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLTag#get_InhertedTagName <em>Inherted Tag Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>extended Tag Name</em>'.
* @see org.wesnoth.wml.WMLTag#get_extendedTagName()
* @return the meta object for the attribute '<em>Inherted Tag Name</em>'.
* @see org.wesnoth.wml.WMLTag#get_InhertedTagName()
* @see #getWMLTag()
* @generated
*/
EAttribute getWMLTag__extendedTagName();
EAttribute getWMLTag__InhertedTagName();
/**
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLTag#get_cardinality <em>cardinality</em>}'.
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLTag#is_NeedingExpansion <em>Needing Expansion</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>cardinality</em>'.
* @see org.wesnoth.wml.WMLTag#get_cardinality()
* @return the meta object for the attribute '<em>Needing Expansion</em>'.
* @see org.wesnoth.wml.WMLTag#is_NeedingExpansion()
* @see #getWMLTag()
* @generated
*/
EAttribute getWMLTag__cardinality();
EAttribute getWMLTag__NeedingExpansion();
/**
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLTag#is_needsExpanding <em>needs Expanding</em>}'.
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLTag#get_Description <em>Description</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>needs Expanding</em>'.
* @see org.wesnoth.wml.WMLTag#is_needsExpanding()
* @return the meta object for the attribute '<em>Description</em>'.
* @see org.wesnoth.wml.WMLTag#get_Description()
* @see #getWMLTag()
* @generated
*/
EAttribute getWMLTag__needsExpanding();
EAttribute getWMLTag__Description();
/**
* Returns the meta object for class '{@link org.wesnoth.wml.WMLKey <em>WML Key</em>}'.
@ -735,17 +807,6 @@ public interface WmlPackage extends EPackage
*/
EAttribute getWMLKey_Eol();
/**
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLKey#get_cardinality <em>cardinality</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>cardinality</em>'.
* @see org.wesnoth.wml.WMLKey#get_cardinality()
* @see #getWMLKey()
* @generated
*/
EAttribute getWMLKey__cardinality();
/**
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLKey#is_Enum <em>Enum</em>}'.
* <!-- begin-user-doc -->
@ -768,6 +829,17 @@ public interface WmlPackage extends EPackage
*/
EAttribute getWMLKey__Translatable();
/**
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLKey#get_DataType <em>Data Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Data Type</em>'.
* @see org.wesnoth.wml.WMLKey#get_DataType()
* @see #getWMLKey()
* @generated
*/
EAttribute getWMLKey__DataType();
/**
* Returns the meta object for class '{@link org.wesnoth.wml.WMLKeyValue <em>WML Key Value</em>}'.
* <!-- begin-user-doc -->
@ -969,6 +1041,17 @@ public interface WmlPackage extends EPackage
*/
EAttribute getWMLExpression_Name();
/**
* Returns the meta object for the attribute '{@link org.wesnoth.wml.WMLExpression#get_Cardinality <em>Cardinality</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Cardinality</em>'.
* @see org.wesnoth.wml.WMLExpression#get_Cardinality()
* @see #getWMLExpression()
* @generated
*/
EAttribute getWMLExpression__Cardinality();
/**
* Returns the meta object for class '{@link org.wesnoth.wml.WMLValuedExpression <em>WML Valued Expression</em>}'.
* <!-- begin-user-doc -->
@ -1086,28 +1169,28 @@ public interface WmlPackage extends EPackage
EAttribute WML_TAG__END_NAME = eINSTANCE.getWMLTag_EndName();
/**
* The meta object literal for the '<em><b>extended Tag Name</b></em>' attribute feature.
* The meta object literal for the '<em><b>Inherted Tag Name</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WML_TAG__EXTENDED_TAG_NAME = eINSTANCE.getWMLTag__extendedTagName();
EAttribute WML_TAG__INHERTED_TAG_NAME = eINSTANCE.getWMLTag__InhertedTagName();
/**
* The meta object literal for the '<em><b>cardinality</b></em>' attribute feature.
* The meta object literal for the '<em><b>Needing Expansion</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WML_TAG__CARDINALITY = eINSTANCE.getWMLTag__cardinality();
EAttribute WML_TAG__NEEDING_EXPANSION = eINSTANCE.getWMLTag__NeedingExpansion();
/**
* The meta object literal for the '<em><b>needs Expanding</b></em>' attribute feature.
* The meta object literal for the '<em><b>Description</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WML_TAG__NEEDS_EXPANDING = eINSTANCE.getWMLTag__needsExpanding();
EAttribute WML_TAG__DESCRIPTION = eINSTANCE.getWMLTag__Description();
/**
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLKeyImpl <em>WML Key</em>}' class.
@ -1135,14 +1218,6 @@ public interface WmlPackage extends EPackage
*/
EAttribute WML_KEY__EOL = eINSTANCE.getWMLKey_Eol();
/**
* The meta object literal for the '<em><b>cardinality</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WML_KEY__CARDINALITY = eINSTANCE.getWMLKey__cardinality();
/**
* The meta object literal for the '<em><b>Enum</b></em>' attribute feature.
* <!-- begin-user-doc -->
@ -1159,6 +1234,14 @@ public interface WmlPackage extends EPackage
*/
EAttribute WML_KEY__TRANSLATABLE = eINSTANCE.getWMLKey__Translatable();
/**
* The meta object literal for the '<em><b>Data Type</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WML_KEY__DATA_TYPE = eINSTANCE.getWMLKey__DataType();
/**
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLKeyValueImpl <em>WML Key Value</em>}' class.
* <!-- begin-user-doc -->
@ -1327,6 +1410,14 @@ public interface WmlPackage extends EPackage
*/
EAttribute WML_EXPRESSION__NAME = eINSTANCE.getWMLExpression_Name();
/**
* The meta object literal for the '<em><b>Cardinality</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute WML_EXPRESSION__CARDINALITY = eINSTANCE.getWMLExpression__Cardinality();
/**
* The meta object literal for the '{@link org.wesnoth.wml.impl.WMLValuedExpressionImpl <em>WML Valued Expression</em>}' class.
* <!-- begin-user-doc -->

View file

@ -23,6 +23,7 @@ import org.wesnoth.wml.WmlPackage;
* The following features are implemented:
* <ul>
* <li>{@link org.wesnoth.wml.impl.WMLExpressionImpl#getName <em>Name</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLExpressionImpl#get_Cardinality <em>Cardinality</em>}</li>
* </ul>
* </p>
*
@ -50,6 +51,26 @@ public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExp
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #get_Cardinality() <em>Cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_Cardinality()
* @generated
* @ordered
*/
protected static final char _CARDINALITY_EDEFAULT = ' ';
/**
* The cached value of the '{@link #get_Cardinality() <em>Cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_Cardinality()
* @generated
* @ordered
*/
protected char _Cardinality = _CARDINALITY_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -94,6 +115,29 @@ public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExp
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_EXPRESSION__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public char get_Cardinality()
{
return _Cardinality;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void set_Cardinality(char new_Cardinality)
{
char old_Cardinality = _Cardinality;
_Cardinality = new_Cardinality;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_EXPRESSION__CARDINALITY, old_Cardinality, _Cardinality));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -106,6 +150,8 @@ public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExp
{
case WmlPackage.WML_EXPRESSION__NAME:
return getName();
case WmlPackage.WML_EXPRESSION__CARDINALITY:
return get_Cardinality();
}
return super.eGet(featureID, resolve, coreType);
}
@ -123,6 +169,9 @@ public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExp
case WmlPackage.WML_EXPRESSION__NAME:
setName((String)newValue);
return;
case WmlPackage.WML_EXPRESSION__CARDINALITY:
set_Cardinality((Character)newValue);
return;
}
super.eSet(featureID, newValue);
}
@ -140,6 +189,9 @@ public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExp
case WmlPackage.WML_EXPRESSION__NAME:
setName(NAME_EDEFAULT);
return;
case WmlPackage.WML_EXPRESSION__CARDINALITY:
set_Cardinality(_CARDINALITY_EDEFAULT);
return;
}
super.eUnset(featureID);
}
@ -156,6 +208,8 @@ public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExp
{
case WmlPackage.WML_EXPRESSION__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case WmlPackage.WML_EXPRESSION__CARDINALITY:
return _Cardinality != _CARDINALITY_EDEFAULT;
}
return super.eIsSet(featureID);
}
@ -173,6 +227,8 @@ public class WMLExpressionImpl extends WMLValuedExpressionImpl implements WMLExp
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
result.append(name);
result.append(", _Cardinality: ");
result.append(_Cardinality);
result.append(')');
return result.toString();
}

View file

@ -34,9 +34,9 @@ import org.wesnoth.wml.WmlPackage;
* <ul>
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getValue <em>Value</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getEol <em>Eol</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#get_cardinality <em>cardinality</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#is_Enum <em>Enum</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#is_Translatable <em>Translatable</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#get_DataType <em>Data Type</em>}</li>
* </ul>
* </p>
*
@ -74,26 +74,6 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
*/
protected String eol = EOL_EDEFAULT;
/**
* The default value of the '{@link #get_cardinality() <em>cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_cardinality()
* @generated
* @ordered
*/
protected static final char _CARDINALITY_EDEFAULT = ' ';
/**
* The cached value of the '{@link #get_cardinality() <em>cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_cardinality()
* @generated
* @ordered
*/
protected char _cardinality = _CARDINALITY_EDEFAULT;
/**
* The default value of the '{@link #is_Enum() <em>Enum</em>}' attribute.
* <!-- begin-user-doc -->
@ -134,6 +114,26 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
*/
protected boolean _Translatable = _TRANSLATABLE_EDEFAULT;
/**
* The default value of the '{@link #get_DataType() <em>Data Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_DataType()
* @generated
* @ordered
*/
protected static final String _DATA_TYPE_EDEFAULT = "";
/**
* The cached value of the '{@link #get_DataType() <em>Data Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_DataType()
* @generated
* @ordered
*/
protected String _DataType = _DATA_TYPE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -192,29 +192,6 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__EOL, oldEol, eol));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public char get_cardinality()
{
return _cardinality;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void set_cardinality(char new_cardinality)
{
char old_cardinality = _cardinality;
_cardinality = new_cardinality;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__CARDINALITY, old_cardinality, _cardinality));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -261,6 +238,29 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__TRANSLATABLE, old_Translatable, _Translatable));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String get_DataType()
{
return _DataType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void set_DataType(String new_DataType)
{
String old_DataType = _DataType;
_DataType = new_DataType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__DATA_TYPE, old_DataType, _DataType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -268,7 +268,7 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
*/
public boolean is_Required()
{
return _cardinality == '1';
return _Cardinality == '1';
}
/**
@ -278,7 +278,7 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
*/
public boolean is_Forbidden()
{
return _cardinality == '-';
return _Cardinality == '-';
}
/**
@ -288,7 +288,7 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
*/
public boolean is_Optional()
{
return _cardinality == '?';
return _Cardinality == '?';
}
/**
@ -298,7 +298,7 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
*/
public boolean is_Repeatable()
{
return _cardinality == '*';
return _Cardinality == '*';
}
/**
@ -331,12 +331,12 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
return getValue();
case WmlPackage.WML_KEY__EOL:
return getEol();
case WmlPackage.WML_KEY__CARDINALITY:
return get_cardinality();
case WmlPackage.WML_KEY__ENUM:
return is_Enum();
case WmlPackage.WML_KEY__TRANSLATABLE:
return is_Translatable();
case WmlPackage.WML_KEY__DATA_TYPE:
return get_DataType();
}
return super.eGet(featureID, resolve, coreType);
}
@ -359,15 +359,15 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
case WmlPackage.WML_KEY__EOL:
setEol((String)newValue);
return;
case WmlPackage.WML_KEY__CARDINALITY:
set_cardinality((Character)newValue);
return;
case WmlPackage.WML_KEY__ENUM:
set_Enum((Boolean)newValue);
return;
case WmlPackage.WML_KEY__TRANSLATABLE:
set_Translatable((Boolean)newValue);
return;
case WmlPackage.WML_KEY__DATA_TYPE:
set_DataType((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
@ -388,15 +388,15 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
case WmlPackage.WML_KEY__EOL:
setEol(EOL_EDEFAULT);
return;
case WmlPackage.WML_KEY__CARDINALITY:
set_cardinality(_CARDINALITY_EDEFAULT);
return;
case WmlPackage.WML_KEY__ENUM:
set_Enum(_ENUM_EDEFAULT);
return;
case WmlPackage.WML_KEY__TRANSLATABLE:
set_Translatable(_TRANSLATABLE_EDEFAULT);
return;
case WmlPackage.WML_KEY__DATA_TYPE:
set_DataType(_DATA_TYPE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
@ -415,12 +415,12 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
return value != null && !value.isEmpty();
case WmlPackage.WML_KEY__EOL:
return EOL_EDEFAULT == null ? eol != null : !EOL_EDEFAULT.equals(eol);
case WmlPackage.WML_KEY__CARDINALITY:
return _cardinality != _CARDINALITY_EDEFAULT;
case WmlPackage.WML_KEY__ENUM:
return _Enum != _ENUM_EDEFAULT;
case WmlPackage.WML_KEY__TRANSLATABLE:
return _Translatable != _TRANSLATABLE_EDEFAULT;
case WmlPackage.WML_KEY__DATA_TYPE:
return _DATA_TYPE_EDEFAULT == null ? _DataType != null : !_DATA_TYPE_EDEFAULT.equals(_DataType);
}
return super.eIsSet(featureID);
}
@ -438,12 +438,12 @@ public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
StringBuffer result = new StringBuffer(super.toString());
result.append(" (eol: ");
result.append(eol);
result.append(", _cardinality: ");
result.append(_cardinality);
result.append(", _Enum: ");
result.append(_Enum);
result.append(", _Translatable: ");
result.append(_Translatable);
result.append(", _DataType: ");
result.append(_DataType);
result.append(')');
return result.toString();
}

View file

@ -36,6 +36,7 @@ import org.wesnoth.wml.WmlPackage;
* The following features are implemented:
* <ul>
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getName <em>Name</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#get_Cardinality <em>Cardinality</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getPoint <em>Point</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getRelative <em>Relative</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getParameters <em>Parameters</em>}</li>
@ -66,6 +67,26 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #get_Cardinality() <em>Cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_Cardinality()
* @generated
* @ordered
*/
protected static final char _CARDINALITY_EDEFAULT = ' ';
/**
* The cached value of the '{@link #get_Cardinality() <em>Cardinality</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_Cardinality()
* @generated
* @ordered
*/
protected char _Cardinality = _CARDINALITY_EDEFAULT;
/**
* The default value of the '{@link #getPoint() <em>Point</em>}' attribute.
* <!-- begin-user-doc -->
@ -160,6 +181,29 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_CALL__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public char get_Cardinality()
{
return _Cardinality;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void set_Cardinality(char new_Cardinality)
{
char old_Cardinality = _Cardinality;
_Cardinality = new_Cardinality;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_CALL__CARDINALITY, old_Cardinality, _Cardinality));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -248,6 +292,8 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
{
case WmlPackage.WML_MACRO_CALL__NAME:
return getName();
case WmlPackage.WML_MACRO_CALL__CARDINALITY:
return get_Cardinality();
case WmlPackage.WML_MACRO_CALL__POINT:
return getPoint();
case WmlPackage.WML_MACRO_CALL__RELATIVE:
@ -272,6 +318,9 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
case WmlPackage.WML_MACRO_CALL__NAME:
setName((String)newValue);
return;
case WmlPackage.WML_MACRO_CALL__CARDINALITY:
set_Cardinality((Character)newValue);
return;
case WmlPackage.WML_MACRO_CALL__POINT:
setPoint((String)newValue);
return;
@ -299,6 +348,9 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
case WmlPackage.WML_MACRO_CALL__NAME:
setName(NAME_EDEFAULT);
return;
case WmlPackage.WML_MACRO_CALL__CARDINALITY:
set_Cardinality(_CARDINALITY_EDEFAULT);
return;
case WmlPackage.WML_MACRO_CALL__POINT:
setPoint(POINT_EDEFAULT);
return;
@ -324,6 +376,8 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
{
case WmlPackage.WML_MACRO_CALL__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case WmlPackage.WML_MACRO_CALL__CARDINALITY:
return _Cardinality != _CARDINALITY_EDEFAULT;
case WmlPackage.WML_MACRO_CALL__POINT:
return POINT_EDEFAULT == null ? point != null : !POINT_EDEFAULT.equals(point);
case WmlPackage.WML_MACRO_CALL__RELATIVE:
@ -361,6 +415,7 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
switch (derivedFeatureID)
{
case WmlPackage.WML_MACRO_CALL__NAME: return WmlPackage.WML_EXPRESSION__NAME;
case WmlPackage.WML_MACRO_CALL__CARDINALITY: return WmlPackage.WML_EXPRESSION__CARDINALITY;
default: return -1;
}
}
@ -401,6 +456,7 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
switch (baseFeatureID)
{
case WmlPackage.WML_EXPRESSION__NAME: return WmlPackage.WML_MACRO_CALL__NAME;
case WmlPackage.WML_EXPRESSION__CARDINALITY: return WmlPackage.WML_MACRO_CALL__CARDINALITY;
default: return -1;
}
}
@ -427,6 +483,8 @@ public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
result.append(name);
result.append(", _Cardinality: ");
result.append(_Cardinality);
result.append(", point: ");
result.append(point);
result.append(", relative: ");

View file

@ -35,9 +35,9 @@ import org.wesnoth.wml.WmlPackage;
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getPlus <em>Plus</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getExpressions <em>Expressions</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getEndName <em>End Name</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#get_extendedTagName <em>extended Tag Name</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#get_cardinality <em>cardinality</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#is_needsExpanding <em>needs Expanding</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#get_InhertedTagName <em>Inherted Tag Name</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#is_NeedingExpansion <em>Needing Expansion</em>}</li>
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#get_Description <em>Description</em>}</li>
* </ul>
* </p>
*
@ -96,64 +96,64 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
protected String endName = END_NAME_EDEFAULT;
/**
* The default value of the '{@link #get_extendedTagName() <em>extended Tag Name</em>}' attribute.
* The default value of the '{@link #get_InhertedTagName() <em>Inherted Tag Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_extendedTagName()
* @see #get_InhertedTagName()
* @generated
* @ordered
*/
protected static final String _EXTENDED_TAG_NAME_EDEFAULT = "";
protected static final String _INHERTED_TAG_NAME_EDEFAULT = "";
/**
* The cached value of the '{@link #get_extendedTagName() <em>extended Tag Name</em>}' attribute.
* The cached value of the '{@link #get_InhertedTagName() <em>Inherted Tag Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_extendedTagName()
* @see #get_InhertedTagName()
* @generated
* @ordered
*/
protected String _extendedTagName = _EXTENDED_TAG_NAME_EDEFAULT;
protected String _InhertedTagName = _INHERTED_TAG_NAME_EDEFAULT;
/**
* The default value of the '{@link #get_cardinality() <em>cardinality</em>}' attribute.
* The default value of the '{@link #is_NeedingExpansion() <em>Needing Expansion</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_cardinality()
* @see #is_NeedingExpansion()
* @generated
* @ordered
*/
protected static final char _CARDINALITY_EDEFAULT = ' ';
protected static final boolean _NEEDING_EXPANSION_EDEFAULT = false;
/**
* The cached value of the '{@link #get_cardinality() <em>cardinality</em>}' attribute.
* The cached value of the '{@link #is_NeedingExpansion() <em>Needing Expansion</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #get_cardinality()
* @see #is_NeedingExpansion()
* @generated
* @ordered
*/
protected char _cardinality = _CARDINALITY_EDEFAULT;
protected boolean _NeedingExpansion = _NEEDING_EXPANSION_EDEFAULT;
/**
* The default value of the '{@link #is_needsExpanding() <em>needs Expanding</em>}' attribute.
* The default value of the '{@link #get_Description() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #is_needsExpanding()
* @see #get_Description()
* @generated
* @ordered
*/
protected static final boolean _NEEDS_EXPANDING_EDEFAULT = false;
protected static final String _DESCRIPTION_EDEFAULT = "";
/**
* The cached value of the '{@link #is_needsExpanding() <em>needs Expanding</em>}' attribute.
* The cached value of the '{@link #get_Description() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #is_needsExpanding()
* @see #get_Description()
* @generated
* @ordered
*/
protected boolean _needsExpanding = _NEEDS_EXPANDING_EDEFAULT;
protected String _Description = _DESCRIPTION_EDEFAULT;
/**
* <!-- begin-user-doc -->
@ -241,9 +241,9 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
* <!-- end-user-doc -->
* @generated
*/
public String get_extendedTagName()
public String get_InhertedTagName()
{
return _extendedTagName;
return _InhertedTagName;
}
/**
@ -251,12 +251,12 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
* <!-- end-user-doc -->
* @generated
*/
public void set_extendedTagName(String new_extendedTagName)
public void set_InhertedTagName(String new_InhertedTagName)
{
String old_extendedTagName = _extendedTagName;
_extendedTagName = new_extendedTagName;
String old_InhertedTagName = _InhertedTagName;
_InhertedTagName = new_InhertedTagName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__EXTENDED_TAG_NAME, old_extendedTagName, _extendedTagName));
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__INHERTED_TAG_NAME, old_InhertedTagName, _InhertedTagName));
}
/**
@ -264,9 +264,9 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
* <!-- end-user-doc -->
* @generated
*/
public char get_cardinality()
public boolean is_NeedingExpansion()
{
return _cardinality;
return _NeedingExpansion;
}
/**
@ -274,12 +274,12 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
* <!-- end-user-doc -->
* @generated
*/
public void set_cardinality(char new_cardinality)
public void set_NeedingExpansion(boolean new_NeedingExpansion)
{
char old_cardinality = _cardinality;
_cardinality = new_cardinality;
boolean old_NeedingExpansion = _NeedingExpansion;
_NeedingExpansion = new_NeedingExpansion;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__CARDINALITY, old_cardinality, _cardinality));
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__NEEDING_EXPANSION, old_NeedingExpansion, _NeedingExpansion));
}
/**
@ -287,9 +287,9 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
* <!-- end-user-doc -->
* @generated
*/
public boolean is_needsExpanding()
public String get_Description()
{
return _needsExpanding;
return _Description;
}
/**
@ -297,12 +297,12 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
* <!-- end-user-doc -->
* @generated
*/
public void set_needsExpanding(boolean new_needsExpanding)
public void set_Description(String new_Description)
{
boolean old_needsExpanding = _needsExpanding;
_needsExpanding = new_needsExpanding;
String old_Description = _Description;
_Description = new_Description;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__NEEDS_EXPANDING, old_needsExpanding, _needsExpanding));
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__DESCRIPTION, old_Description, _Description));
}
/**
@ -337,12 +337,12 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
return getExpressions();
case WmlPackage.WML_TAG__END_NAME:
return getEndName();
case WmlPackage.WML_TAG__EXTENDED_TAG_NAME:
return get_extendedTagName();
case WmlPackage.WML_TAG__CARDINALITY:
return get_cardinality();
case WmlPackage.WML_TAG__NEEDS_EXPANDING:
return is_needsExpanding();
case WmlPackage.WML_TAG__INHERTED_TAG_NAME:
return get_InhertedTagName();
case WmlPackage.WML_TAG__NEEDING_EXPANSION:
return is_NeedingExpansion();
case WmlPackage.WML_TAG__DESCRIPTION:
return get_Description();
}
return super.eGet(featureID, resolve, coreType);
}
@ -368,14 +368,14 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
case WmlPackage.WML_TAG__END_NAME:
setEndName((String)newValue);
return;
case WmlPackage.WML_TAG__EXTENDED_TAG_NAME:
set_extendedTagName((String)newValue);
case WmlPackage.WML_TAG__INHERTED_TAG_NAME:
set_InhertedTagName((String)newValue);
return;
case WmlPackage.WML_TAG__CARDINALITY:
set_cardinality((Character)newValue);
case WmlPackage.WML_TAG__NEEDING_EXPANSION:
set_NeedingExpansion((Boolean)newValue);
return;
case WmlPackage.WML_TAG__NEEDS_EXPANDING:
set_needsExpanding((Boolean)newValue);
case WmlPackage.WML_TAG__DESCRIPTION:
set_Description((String)newValue);
return;
}
super.eSet(featureID, newValue);
@ -400,14 +400,14 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
case WmlPackage.WML_TAG__END_NAME:
setEndName(END_NAME_EDEFAULT);
return;
case WmlPackage.WML_TAG__EXTENDED_TAG_NAME:
set_extendedTagName(_EXTENDED_TAG_NAME_EDEFAULT);
case WmlPackage.WML_TAG__INHERTED_TAG_NAME:
set_InhertedTagName(_INHERTED_TAG_NAME_EDEFAULT);
return;
case WmlPackage.WML_TAG__CARDINALITY:
set_cardinality(_CARDINALITY_EDEFAULT);
case WmlPackage.WML_TAG__NEEDING_EXPANSION:
set_NeedingExpansion(_NEEDING_EXPANSION_EDEFAULT);
return;
case WmlPackage.WML_TAG__NEEDS_EXPANDING:
set_needsExpanding(_NEEDS_EXPANDING_EDEFAULT);
case WmlPackage.WML_TAG__DESCRIPTION:
set_Description(_DESCRIPTION_EDEFAULT);
return;
}
super.eUnset(featureID);
@ -429,12 +429,12 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
return expressions != null && !expressions.isEmpty();
case WmlPackage.WML_TAG__END_NAME:
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
case WmlPackage.WML_TAG__EXTENDED_TAG_NAME:
return _EXTENDED_TAG_NAME_EDEFAULT == null ? _extendedTagName != null : !_EXTENDED_TAG_NAME_EDEFAULT.equals(_extendedTagName);
case WmlPackage.WML_TAG__CARDINALITY:
return _cardinality != _CARDINALITY_EDEFAULT;
case WmlPackage.WML_TAG__NEEDS_EXPANDING:
return _needsExpanding != _NEEDS_EXPANDING_EDEFAULT;
case WmlPackage.WML_TAG__INHERTED_TAG_NAME:
return _INHERTED_TAG_NAME_EDEFAULT == null ? _InhertedTagName != null : !_INHERTED_TAG_NAME_EDEFAULT.equals(_InhertedTagName);
case WmlPackage.WML_TAG__NEEDING_EXPANSION:
return _NeedingExpansion != _NEEDING_EXPANSION_EDEFAULT;
case WmlPackage.WML_TAG__DESCRIPTION:
return _DESCRIPTION_EDEFAULT == null ? _Description != null : !_DESCRIPTION_EDEFAULT.equals(_Description);
}
return super.eIsSet(featureID);
}
@ -454,12 +454,12 @@ public class WMLTagImpl extends WMLRootExpressionImpl implements WMLTag
result.append(plus);
result.append(", endName: ");
result.append(endName);
result.append(", _extendedTagName: ");
result.append(_extendedTagName);
result.append(", _cardinality: ");
result.append(_cardinality);
result.append(", _needsExpanding: ");
result.append(_needsExpanding);
result.append(", _InhertedTagName: ");
result.append(_InhertedTagName);
result.append(", _NeedingExpansion: ");
result.append(_NeedingExpansion);
result.append(", _Description: ");
result.append(_Description);
result.append(')');
return result.toString();
}

View file

@ -264,7 +264,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWMLTag__extendedTagName()
public EAttribute getWMLTag__InhertedTagName()
{
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(3);
}
@ -274,7 +274,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWMLTag__cardinality()
public EAttribute getWMLTag__NeedingExpansion()
{
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(4);
}
@ -284,7 +284,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWMLTag__needsExpanding()
public EAttribute getWMLTag__Description()
{
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(5);
}
@ -324,7 +324,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWMLKey__cardinality()
public EAttribute getWMLKey__Enum()
{
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(2);
}
@ -334,7 +334,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWMLKey__Enum()
public EAttribute getWMLKey__Translatable()
{
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(3);
}
@ -344,7 +344,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWMLKey__Translatable()
public EAttribute getWMLKey__DataType()
{
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(4);
}
@ -539,6 +539,16 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
return (EAttribute)wmlExpressionEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getWMLExpression__Cardinality()
{
return (EAttribute)wmlExpressionEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -616,16 +626,16 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
createEAttribute(wmlTagEClass, WML_TAG__PLUS);
createEReference(wmlTagEClass, WML_TAG__EXPRESSIONS);
createEAttribute(wmlTagEClass, WML_TAG__END_NAME);
createEAttribute(wmlTagEClass, WML_TAG__EXTENDED_TAG_NAME);
createEAttribute(wmlTagEClass, WML_TAG__CARDINALITY);
createEAttribute(wmlTagEClass, WML_TAG__NEEDS_EXPANDING);
createEAttribute(wmlTagEClass, WML_TAG__INHERTED_TAG_NAME);
createEAttribute(wmlTagEClass, WML_TAG__NEEDING_EXPANSION);
createEAttribute(wmlTagEClass, WML_TAG__DESCRIPTION);
wmlKeyEClass = createEClass(WML_KEY);
createEReference(wmlKeyEClass, WML_KEY__VALUE);
createEAttribute(wmlKeyEClass, WML_KEY__EOL);
createEAttribute(wmlKeyEClass, WML_KEY__CARDINALITY);
createEAttribute(wmlKeyEClass, WML_KEY__ENUM);
createEAttribute(wmlKeyEClass, WML_KEY__TRANSLATABLE);
createEAttribute(wmlKeyEClass, WML_KEY__DATA_TYPE);
wmlKeyValueEClass = createEClass(WML_KEY_VALUE);
@ -653,6 +663,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
wmlExpressionEClass = createEClass(WML_EXPRESSION);
createEAttribute(wmlExpressionEClass, WML_EXPRESSION__NAME);
createEAttribute(wmlExpressionEClass, WML_EXPRESSION__CARDINALITY);
wmlValuedExpressionEClass = createEClass(WML_VALUED_EXPRESSION);
@ -712,16 +723,16 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
initEAttribute(getWMLTag_Plus(), ecorePackage.getEString(), "plus", "", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getWMLTag_Expressions(), this.getWMLExpression(), null, "Expressions", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLTag_EndName(), ecorePackage.getEString(), "endName", "", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLTag__extendedTagName(), ecorePackage.getEString(), "_extendedTagName", "", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLTag__cardinality(), ecorePackage.getEChar(), "_cardinality", " ", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLTag__needsExpanding(), ecorePackage.getEBoolean(), "_needsExpanding", "false", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLTag__InhertedTagName(), ecorePackage.getEString(), "_InhertedTagName", "", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLTag__NeedingExpansion(), ecorePackage.getEBoolean(), "_NeedingExpansion", "false", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLTag__Description(), ecorePackage.getEString(), "_Description", "", 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(wmlKeyEClass, WMLKey.class, "WMLKey", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getWMLKey_Value(), this.getWMLKeyValue(), null, "value", null, 0, -1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLKey_Eol(), ecorePackage.getEString(), "eol", "", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLKey__cardinality(), ecorePackage.getEChar(), "_cardinality", " ", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLKey__Enum(), ecorePackage.getEBoolean(), "_Enum", "false", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLKey__Translatable(), ecorePackage.getEBoolean(), "_Translatable", "false", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLKey__DataType(), ecorePackage.getEString(), "_DataType", "", 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
addEOperation(wmlKeyEClass, ecorePackage.getEBoolean(), "is_Required", 0, 1, IS_UNIQUE, IS_ORDERED);
@ -757,6 +768,7 @@ public class WmlPackageImpl extends EPackageImpl implements WmlPackage
initEClass(wmlExpressionEClass, WMLExpression.class, "WMLExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getWMLExpression_Name(), ecorePackage.getEString(), "name", "", 0, 1, WMLExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getWMLExpression__Cardinality(), ecorePackage.getEChar(), "_Cardinality", " ", 0, 1, WMLExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(wmlValuedExpressionEClass, WMLValuedExpression.class, "WMLValuedExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

View file

@ -14,14 +14,17 @@ process( EClass this ):
eStructuralFeatures.process() ->
// enrich the grammar elements with schema-specific attributes
if name == "WMLTag" then {
createAttribute( "_extendedTagName", "EString", "" ) ->
createAttribute( "_cardinality", "EChar", " " ) ->
createAttribute( "_needsExpanding", "EBoolean", "false" )
if name == "WMLExpression" then
createAttribute( "_Cardinality", "EChar", " " )
else if name == "WMLTag" then {
createAttribute( "_InhertedTagName", "EString", "" ) ->
createAttribute( "_NeedingExpansion", "EBoolean", "false" ) ->
createAttribute( "_Description", "EString", "" )
} else if name == "WMLKey" then {
createAttribute( "_cardinality", "EChar", " " ) ->
createAttribute( "_Enum", "EBoolean", "false" ) ->
createAttribute( "_Translatable", "EBoolean", "false" ) ->
createAttribute( "_DataType", "EString", "" ) ->
createCardinalityOperation( "is_Required", '1' ) ->
createCardinalityOperation( "is_Forbidden", '-' ) ->
createCardinalityOperation( "is_Optional", '?' ) ->
@ -47,7 +50,7 @@ create EAnnotation this newCardinalityAnnotation( EOperation op, char chr ):
let an = new EStringToStringMapEntry :
setSource( "http://www.eclipse.org/emf/2002/GenModel" ) ->
an.setKey( "body" ) ->
an.setValue( "return _cardinality == '" + chr + "';" ) ->
an.setValue( "return _Cardinality == '" + chr + "';" ) ->
details.add( an ) ->
op.eAnnotations.add( this );