eclipse plugin: tweak the grammar...
...so each WMLKey will have just one line ending, not more
This commit is contained in:
parent
6e8784a9da
commit
d66b0f40bb
54 changed files with 25223 additions and 25298 deletions
|
@ -1,4 +1,4 @@
|
|||
#Mon Aug 08 23:52:12 EEST 2011
|
||||
#Mon Jan 16 20:54:24 EET 2012
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
|
||||
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#Sat Aug 06 22:10:59 EEST 2011
|
||||
#Mon Jan 16 20:53:49 EET 2012
|
||||
cleanup.add_default_serial_version_id=false
|
||||
cleanup.add_generated_serial_version_id=true
|
||||
cleanup.add_missing_annotations=true
|
||||
|
@ -54,7 +54,7 @@ cleanup_profile=_timo
|
|||
cleanup_settings_version=2
|
||||
eclipse.preferences.version=1
|
||||
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
|
||||
formatter_profile=_Timo_new
|
||||
formatter_profile=_profile
|
||||
formatter_settings_version=12
|
||||
org.eclipse.jdt.ui.exception.name=e
|
||||
org.eclipse.jdt.ui.gettersetter.use.is=true
|
||||
|
|
|
@ -1297,17 +1297,10 @@ rule__WMLKey__Group__4__Impl
|
|||
}
|
||||
:
|
||||
(
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyAccess().getEolAssignment_4()); }
|
||||
(rule__WMLKey__EolAssignment_4)
|
||||
{ after(grammarAccess.getWMLKeyAccess().getEolAssignment_4()); }
|
||||
)
|
||||
(
|
||||
{ before(grammarAccess.getWMLKeyAccess().getEolAssignment_4()); }
|
||||
(rule__WMLKey__EolAssignment_4)*
|
||||
{ after(grammarAccess.getWMLKeyAccess().getEolAssignment_4()); }
|
||||
)
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -68,7 +68,7 @@
|
|||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="eol" operator="+=">
|
||||
<elements xsi:type="xtext:Assignment" feature="eol" operator="+=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.30"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.33"/>
|
||||
|
|
|
@ -601,11 +601,11 @@ protected class WMLTag_RightSquareBracketKeyword_7 extends KeywordToken {
|
|||
/************ begin Rule WMLKey ****************
|
||||
*
|
||||
* WMLKey hidden(WS):
|
||||
* name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT)+;
|
||||
* name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT);
|
||||
*
|
||||
**/
|
||||
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT)+
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT)
|
||||
protected class WMLKey_Group extends GroupToken {
|
||||
|
||||
public WMLKey_Group(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -829,7 +829,7 @@ protected class WMLKey_ValuesAssignment_3_3 extends AssignmentToken {
|
|||
}
|
||||
|
||||
|
||||
// eol+=(EOL | SL_COMMENT)+
|
||||
// eol+=(EOL | SL_COMMENT)
|
||||
protected class WMLKey_EolAssignment_4 extends AssignmentToken {
|
||||
|
||||
public WMLKey_EolAssignment_4(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -844,10 +844,9 @@ protected class WMLKey_EolAssignment_4 extends AssignmentToken {
|
|||
@Override
|
||||
public AbstractToken createFollower(int index, IEObjectConsumer inst) {
|
||||
switch(index) {
|
||||
case 0: return new WMLKey_EolAssignment_4(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLKey_Group_3(lastRuleCallOrigin, this, 1, inst);
|
||||
case 2: return new WMLKey_ValuesAssignment_2(lastRuleCallOrigin, this, 2, inst);
|
||||
case 3: return new WMLKey_EqualsSignKeyword_1(lastRuleCallOrigin, this, 3, inst);
|
||||
case 0: return new WMLKey_Group_3(lastRuleCallOrigin, this, 0, inst);
|
||||
case 1: return new WMLKey_ValuesAssignment_2(lastRuleCallOrigin, this, 1, inst);
|
||||
case 2: return new WMLKey_EqualsSignKeyword_1(lastRuleCallOrigin, this, 2, inst);
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -337,7 +337,7 @@ ruleWMLKey returns [EObject current=null]
|
|||
)
|
||||
|
||||
)
|
||||
)+)
|
||||
))
|
||||
;
|
||||
finally {
|
||||
myHiddenTokenState.restore();
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -141,10 +141,10 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private final RuleCall cEolSL_COMMENTTerminalRuleCall_4_0_1 = (RuleCall)cEolAlternatives_4_0.eContents().get(1);
|
||||
|
||||
//WMLKey hidden(WS):
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT)+;
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT);
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT)+
|
||||
//name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT)
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//name=ID
|
||||
|
@ -180,7 +180,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
//WMLKeyValue
|
||||
public RuleCall getValuesWMLKeyValueParserRuleCall_3_3_0() { return cValuesWMLKeyValueParserRuleCall_3_3_0; }
|
||||
|
||||
//eol+=(EOL | SL_COMMENT)+
|
||||
//eol+=(EOL | SL_COMMENT)
|
||||
public Assignment getEolAssignment_4() { return cEolAssignment_4; }
|
||||
|
||||
//EOL | SL_COMMENT
|
||||
|
@ -734,7 +734,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLKey hidden(WS):
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT)+;
|
||||
// name=ID "=" values+=WMLKeyValue* (EOL? "+" EOL? values+=WMLKeyValue+)* eol+=(EOL | SL_COMMENT);
|
||||
public WMLKeyElements getWMLKeyAccess() {
|
||||
return (pWMLKey != null) ? pWMLKey : (pWMLKey = new WMLKeyElements());
|
||||
}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Macro Tokens</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getMacroTokens()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface MacroTokens extends WMLMacroParameter
|
||||
{
|
||||
} // MacroTokens
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Macro Tokens</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getMacroTokens()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface MacroTokens extends WMLMacroParameter
|
||||
{
|
||||
} // MacroTokens
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Array Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLArrayCall#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLArrayCall()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLArrayCall extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Value</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>Value</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLArrayCall_Value()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValue> getValue();
|
||||
|
||||
} // WMLArrayCall
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Array Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLArrayCall#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLArrayCall()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLArrayCall extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Value</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>Value</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLArrayCall_Value()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValue> getValue();
|
||||
|
||||
} // WMLArrayCall
|
||||
|
|
|
@ -1,242 +1,242 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#is_LuaBased <em>Lua Based</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#get_DefinitionLocation <em>Definition Location</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#get_DefinitionOffset <em>Definition Offset</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#get_Cardinality <em>Cardinality</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLExpression extends WMLValuedExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLExpression_Name()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#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>Lua Based</b></em>' attribute.
|
||||
* The default value is <code>"false"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Lua Based</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Lua Based</em>' attribute.
|
||||
* @see #set_LuaBased(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression__LuaBased()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_LuaBased();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#is_LuaBased <em>Lua Based</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Lua Based</em>' attribute.
|
||||
* @see #is_LuaBased()
|
||||
* @generated
|
||||
*/
|
||||
void set_LuaBased(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Definition Location</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Definition Location</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Definition Location</em>' attribute.
|
||||
* @see #set_DefinitionLocation(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression__DefinitionLocation()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String get_DefinitionLocation();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#get_DefinitionLocation <em>Definition Location</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Definition Location</em>' attribute.
|
||||
* @see #get_DefinitionLocation()
|
||||
* @generated
|
||||
*/
|
||||
void set_DefinitionLocation(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Definition Offset</b></em>' attribute.
|
||||
* The default value is <code>"0"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Definition Offset</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Definition Offset</em>' attribute.
|
||||
* @see #set_DefinitionOffset(int)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression__DefinitionOffset()
|
||||
* @model default="0"
|
||||
* @generated
|
||||
*/
|
||||
int get_DefinitionOffset();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#get_DefinitionOffset <em>Definition Offset</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Definition Offset</em>' attribute.
|
||||
* @see #get_DefinitionOffset()
|
||||
* @generated
|
||||
*/
|
||||
void set_DefinitionOffset(int 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);
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'1\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Required();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'-\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Forbidden();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'?\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Optional();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'*\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Repeatable();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='switch( _Cardinality ) {\n case \'-\': return 0;\n case \'?\': case \'1\': return 1;\n }\n // by default let it be infinite times\n return Integer.MAX_VALUE;'"
|
||||
* @generated
|
||||
*/
|
||||
int getAllowedCount();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='return ( this instanceof WMLTag );'"
|
||||
* @generated
|
||||
*/
|
||||
boolean isWMLTag();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='if ( !( this instanceof WMLTag ) ) return null; return ( WMLTag ) this;'"
|
||||
* @generated
|
||||
*/
|
||||
WMLTag asWMLTag();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='return ( this instanceof WMLKey );'"
|
||||
* @generated
|
||||
*/
|
||||
boolean isWMLKey();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='if ( !( this instanceof WMLKey ) ) return null; return ( WMLKey ) this;'"
|
||||
* @generated
|
||||
*/
|
||||
WMLKey asWMLKey();
|
||||
|
||||
} // WMLExpression
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#is_LuaBased <em>Lua Based</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#get_DefinitionLocation <em>Definition Location</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#get_DefinitionOffset <em>Definition Offset</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLExpression#get_Cardinality <em>Cardinality</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLExpression extends WMLValuedExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLExpression_Name()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#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>Lua Based</b></em>' attribute.
|
||||
* The default value is <code>"false"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Lua Based</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Lua Based</em>' attribute.
|
||||
* @see #set_LuaBased(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression__LuaBased()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_LuaBased();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#is_LuaBased <em>Lua Based</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Lua Based</em>' attribute.
|
||||
* @see #is_LuaBased()
|
||||
* @generated
|
||||
*/
|
||||
void set_LuaBased(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Definition Location</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Definition Location</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Definition Location</em>' attribute.
|
||||
* @see #set_DefinitionLocation(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression__DefinitionLocation()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String get_DefinitionLocation();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#get_DefinitionLocation <em>Definition Location</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Definition Location</em>' attribute.
|
||||
* @see #get_DefinitionLocation()
|
||||
* @generated
|
||||
*/
|
||||
void set_DefinitionLocation(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Definition Offset</b></em>' attribute.
|
||||
* The default value is <code>"0"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Definition Offset</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Definition Offset</em>' attribute.
|
||||
* @see #set_DefinitionOffset(int)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLExpression__DefinitionOffset()
|
||||
* @model default="0"
|
||||
* @generated
|
||||
*/
|
||||
int get_DefinitionOffset();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLExpression#get_DefinitionOffset <em>Definition Offset</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Definition Offset</em>' attribute.
|
||||
* @see #get_DefinitionOffset()
|
||||
* @generated
|
||||
*/
|
||||
void set_DefinitionOffset(int 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);
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'1\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Required();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'-\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Forbidden();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'?\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Optional();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'*\';'"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Repeatable();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='switch( _Cardinality ) {\n case \'-\': return 0;\n case \'?\': case \'1\': return 1;\n }\n // by default let it be infinite times\n return Integer.MAX_VALUE;'"
|
||||
* @generated
|
||||
*/
|
||||
int getAllowedCount();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='return ( this instanceof WMLTag );'"
|
||||
* @generated
|
||||
*/
|
||||
boolean isWMLTag();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='if ( !( this instanceof WMLTag ) ) return null; return ( WMLTag ) this;'"
|
||||
* @generated
|
||||
*/
|
||||
WMLTag asWMLTag();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='return ( this instanceof WMLKey );'"
|
||||
* @generated
|
||||
*/
|
||||
boolean isWMLKey();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model annotation="http://www.eclipse.org/emf/2002/GenModel body='if ( !( this instanceof WMLKey ) ) return null; return ( WMLKey ) this;'"
|
||||
* @generated
|
||||
*/
|
||||
WMLKey asWMLKey();
|
||||
|
||||
} // WMLExpression
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Grammar Element</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLGrammarElement()
|
||||
* @model superTypes="org.wesnoth.wml.ESerializable"
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLGrammarElement extends EObject, Serializable
|
||||
{
|
||||
} // WMLGrammarElement
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Grammar Element</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLGrammarElement()
|
||||
* @model superTypes="org.wesnoth.wml.ESerializable"
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLGrammarElement extends EObject, Serializable
|
||||
{
|
||||
} // WMLGrammarElement
|
||||
|
|
|
@ -1,155 +1,155 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Key</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</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>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKey extends WMLExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Values</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKeyValue}.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLKey_Values()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKeyValue> getValues();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Eol</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Eol</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Eol</em>' attribute list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Eol()
|
||||
* @model default="" unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getEol();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Enum</b></em>' attribute.
|
||||
* The default value is <code>"false"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Enum</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Enum</em>' attribute.
|
||||
* @see #set_Enum(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey__Enum()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Enum();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#is_Enum <em>Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Enum</em>' attribute.
|
||||
* @see #is_Enum()
|
||||
* @generated
|
||||
*/
|
||||
void set_Enum(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Translatable</b></em>' attribute.
|
||||
* The default value is <code>"false"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Translatable</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Translatable</em>' attribute.
|
||||
* @see #set_Translatable(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey__Translatable()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Translatable();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#is_Translatable <em>Translatable</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Translatable</em>' attribute.
|
||||
* @see #is_Translatable()
|
||||
* @generated
|
||||
*/
|
||||
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 -->
|
||||
* @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 kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body=' return org.wesnoth.utils.WMLUtils.getKeyValue( getValues( ) );'"
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
} // WMLKey
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Key</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</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>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKey extends WMLExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Values</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKeyValue}.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLKey_Values()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKeyValue> getValues();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Eol</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Eol</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Eol</em>' attribute list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Eol()
|
||||
* @model default="" unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getEol();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Enum</b></em>' attribute.
|
||||
* The default value is <code>"false"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Enum</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Enum</em>' attribute.
|
||||
* @see #set_Enum(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey__Enum()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Enum();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#is_Enum <em>Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Enum</em>' attribute.
|
||||
* @see #is_Enum()
|
||||
* @generated
|
||||
*/
|
||||
void set_Enum(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Translatable</b></em>' attribute.
|
||||
* The default value is <code>"false"</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Translatable</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Translatable</em>' attribute.
|
||||
* @see #set_Translatable(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey__Translatable()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_Translatable();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#is_Translatable <em>Translatable</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Translatable</em>' attribute.
|
||||
* @see #is_Translatable()
|
||||
* @generated
|
||||
*/
|
||||
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 -->
|
||||
* @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 kind="operation"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body=' return org.wesnoth.utils.WMLUtils.getKeyValue( getValues( ) );'"
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
} // WMLKey
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKeyValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKeyValue extends WMLGrammarElement
|
||||
{
|
||||
} // WMLKeyValue
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKeyValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKeyValue extends WMLGrammarElement
|
||||
{
|
||||
} // WMLKeyValue
|
||||
|
|
|
@ -1,55 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Lua Code</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLLuaCode#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLLuaCode()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLLuaCode extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLLuaCode_Value()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLLuaCode#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);
|
||||
|
||||
} // WMLLuaCode
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Lua Code</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLLuaCode#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLLuaCode()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLLuaCode extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLLuaCode_Value()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLLuaCode#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);
|
||||
|
||||
} // WMLLuaCode
|
||||
|
|
|
@ -1,101 +1,101 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getPoint <em>Point</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getRelative <em>Relative</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getParameters <em>Parameters</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroCall extends WMLKeyValue, WMLMacroCallParameter, WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Point</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Point</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Point</em>' attribute.
|
||||
* @see #setPoint(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Point()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getPoint();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#getPoint <em>Point</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Point</em>' attribute.
|
||||
* @see #getPoint()
|
||||
* @generated
|
||||
*/
|
||||
void setPoint(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Relative</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Relative</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Relative</em>' attribute.
|
||||
* @see #setRelative(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Relative()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getRelative();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#getRelative <em>Relative</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Relative</em>' attribute.
|
||||
* @see #getRelative()
|
||||
* @generated
|
||||
*/
|
||||
void setRelative(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Parameters</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCallParameter}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Parameters</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>Parameters</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Parameters()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCallParameter> getParameters();
|
||||
|
||||
} // WMLMacroCall
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getPoint <em>Point</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getRelative <em>Relative</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getParameters <em>Parameters</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroCall extends WMLKeyValue, WMLMacroCallParameter, WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Point</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Point</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Point</em>' attribute.
|
||||
* @see #setPoint(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Point()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getPoint();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#getPoint <em>Point</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Point</em>' attribute.
|
||||
* @see #getPoint()
|
||||
* @generated
|
||||
*/
|
||||
void setPoint(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Relative</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Relative</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Relative</em>' attribute.
|
||||
* @see #setRelative(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Relative()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getRelative();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#getRelative <em>Relative</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Relative</em>' attribute.
|
||||
* @see #getRelative()
|
||||
* @generated
|
||||
*/
|
||||
void setRelative(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Parameters</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCallParameter}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Parameters</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>Parameters</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Parameters()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCallParameter> getParameters();
|
||||
|
||||
} // WMLMacroCall
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Call Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCallParameter()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroCallParameter extends WMLGrammarElement
|
||||
{
|
||||
} // WMLMacroCallParameter
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Call Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCallParameter()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroCallParameter extends WMLGrammarElement
|
||||
{
|
||||
} // WMLMacroCallParameter
|
||||
|
|
|
@ -1,73 +1,73 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Define</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroDefine extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValuedExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_EndName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroDefine#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
} // WMLMacroDefine
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Define</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroDefine extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValuedExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_EndName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroDefine#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
} // WMLMacroDefine
|
||||
|
|
|
@ -1,55 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroParameter#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroParameter()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroParameter extends WMLMacroCallParameter
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLMacroParameter_Value()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroParameter#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);
|
||||
|
||||
} // WMLMacroParameter
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroParameter#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroParameter()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroParameter extends WMLMacroCallParameter
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- 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.wesnoth.wml.WmlPackage#getWMLMacroParameter_Value()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroParameter#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);
|
||||
|
||||
} // WMLMacroParameter
|
||||
|
|
|
@ -1,118 +1,118 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Preproc IF</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getElseExpressions <em>Else Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLPreprocIF extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValuedExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Elses</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Elses</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Elses</em>' attribute.
|
||||
* @see #setElses(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Elses()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getElses();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLPreprocIF#getElses <em>Elses</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Elses</em>' attribute.
|
||||
* @see #getElses()
|
||||
* @generated
|
||||
*/
|
||||
void setElses(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Else Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Else Expressions</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>Else Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_ElseExpressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValuedExpression> getElseExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_EndName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLPreprocIF#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
} // WMLPreprocIF
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Preproc IF</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getElseExpressions <em>Else Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLPreprocIF extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValuedExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Elses</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Elses</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Elses</em>' attribute.
|
||||
* @see #setElses(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Elses()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getElses();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLPreprocIF#getElses <em>Elses</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Elses</em>' attribute.
|
||||
* @see #getElses()
|
||||
* @generated
|
||||
*/
|
||||
void setElses(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Else Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValuedExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Else Expressions</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>Else Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_ElseExpressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValuedExpression> getElseExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_EndName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLPreprocIF#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
} // WMLPreprocIF
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getExpressions <em>Expressions</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLRoot extends WMLGrammarElement
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLRootExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLRootExpression> getExpressions();
|
||||
|
||||
} // WMLRoot
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getExpressions <em>Expressions</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLRoot extends WMLGrammarElement
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLRootExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLRootExpression> getExpressions();
|
||||
|
||||
} // WMLRoot
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Root Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRootExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLRootExpression extends WMLExpression
|
||||
{
|
||||
} // WMLRootExpression
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Root Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRootExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLRootExpression extends WMLExpression
|
||||
{
|
||||
} // WMLRootExpression
|
||||
|
|
|
@ -1,203 +1,203 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Tag</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <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_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>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTag extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Plus</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Plus</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Plus</em>' attribute.
|
||||
* @see #setPlus(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Plus()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getPlus();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#getPlus <em>Plus</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Plus</em>' attribute.
|
||||
* @see #getPlus()
|
||||
* @generated
|
||||
*/
|
||||
void setPlus(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_EndName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
/**
|
||||
* 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>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>Inherted Tag Name</em>' attribute.
|
||||
* @see #set_InhertedTagName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag__InhertedTagName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String get_InhertedTagName();
|
||||
|
||||
/**
|
||||
* 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>Inherted Tag Name</em>' attribute.
|
||||
* @see #get_InhertedTagName()
|
||||
* @generated
|
||||
*/
|
||||
void set_InhertedTagName(String value);
|
||||
|
||||
/**
|
||||
* 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>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>Needing Expansion</em>' attribute.
|
||||
* @see #set_NeedingExpansion(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag__NeedingExpansion()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_NeedingExpansion();
|
||||
|
||||
/**
|
||||
* 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>Needing Expansion</em>' attribute.
|
||||
* @see #is_NeedingExpansion()
|
||||
* @generated
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation" many="false"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='EList<WMLTag> result = new org.eclipse.emf.common.util.BasicEList<WMLTag>();\n for ( WMLExpression expression : getExpressions( ) ) {\n if ( expression.isWMLTag( ) )\n result.add( expression.asWMLTag( ) );\n }\n\n return result;'"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getWMLTags();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation" many="false"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='EList<WMLKey> result = new org.eclipse.emf.common.util.BasicEList<WMLKey>();\n for ( WMLExpression expression : getExpressions( ) ) {\n if ( expression.isWMLKey( ) )\n result.add( expression.asWMLKey( ) );\n }\n\n return result;'"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getWMLKeys();
|
||||
|
||||
} // WMLTag
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Tag</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <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_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>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTag extends WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Plus</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Plus</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Plus</em>' attribute.
|
||||
* @see #setPlus(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Plus()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getPlus();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#getPlus <em>Plus</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Plus</em>' attribute.
|
||||
* @see #getPlus()
|
||||
* @generated
|
||||
*/
|
||||
void setPlus(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expressions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLExpression}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Expressions</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>Expressions</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Expressions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLExpression> getExpressions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* The default value is <code>""</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_EndName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
/**
|
||||
* 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>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>Inherted Tag Name</em>' attribute.
|
||||
* @see #set_InhertedTagName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag__InhertedTagName()
|
||||
* @model default=""
|
||||
* @generated
|
||||
*/
|
||||
String get_InhertedTagName();
|
||||
|
||||
/**
|
||||
* 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>Inherted Tag Name</em>' attribute.
|
||||
* @see #get_InhertedTagName()
|
||||
* @generated
|
||||
*/
|
||||
void set_InhertedTagName(String value);
|
||||
|
||||
/**
|
||||
* 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>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>Needing Expansion</em>' attribute.
|
||||
* @see #set_NeedingExpansion(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag__NeedingExpansion()
|
||||
* @model default="false"
|
||||
* @generated
|
||||
*/
|
||||
boolean is_NeedingExpansion();
|
||||
|
||||
/**
|
||||
* 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>Needing Expansion</em>' attribute.
|
||||
* @see #is_NeedingExpansion()
|
||||
* @generated
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation" many="false"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='EList<WMLTag> result = new org.eclipse.emf.common.util.BasicEList<WMLTag>();\n for ( WMLExpression expression : getExpressions( ) ) {\n if ( expression.isWMLTag( ) )\n result.add( expression.asWMLTag( ) );\n }\n\n return result;'"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getWMLTags();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @model kind="operation" many="false"
|
||||
* annotation="http://www.eclipse.org/emf/2002/GenModel body='EList<WMLKey> result = new org.eclipse.emf.common.util.BasicEList<WMLKey>();\n for ( WMLExpression expression : getExpressions( ) ) {\n if ( expression.isWMLKey( ) )\n result.add( expression.asWMLKey( ) );\n }\n\n return result;'"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getWMLKeys();
|
||||
|
||||
} // WMLTag
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTextdomain()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTextdomain extends WMLRootExpression
|
||||
{
|
||||
} // WMLTextdomain
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTextdomain()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTextdomain extends WMLRootExpression
|
||||
{
|
||||
} // WMLTextdomain
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLValue extends WMLKeyValue, WMLValuedExpression, WMLMacroParameter
|
||||
{
|
||||
} // WMLValue
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLValue extends WMLKeyValue, WMLValuedExpression, WMLMacroParameter
|
||||
{
|
||||
} // WMLValue
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Valued Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLValuedExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLValuedExpression extends WMLGrammarElement
|
||||
{
|
||||
} // WMLValuedExpression
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Valued Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLValuedExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLValuedExpression extends WMLGrammarElement
|
||||
{
|
||||
} // WMLValuedExpression
|
||||
|
|
|
@ -1,200 +1,200 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EFactory;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.wesnoth.wml.WmlPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface WmlFactory extends EFactory
|
||||
{
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
WmlFactory eINSTANCE = org.wesnoth.wml.impl.WmlFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Root</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Root</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRoot createWMLRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Grammar Element</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Grammar Element</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLGrammarElement createWMLGrammarElement();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Tag</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Tag</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTag createWMLTag();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Key</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Key</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKey createWMLKey();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Key Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Key Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKeyValue createWMLKeyValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroCall createWMLMacroCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Call Parameter</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Call Parameter</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroCallParameter createWMLMacroCallParameter();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Array Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Array Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLArrayCall createWMLArrayCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Define</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Define</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroDefine createWMLMacroDefine();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Preproc IF</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Preproc IF</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLPreprocIF createWMLPreprocIF();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Root Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Root Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRootExpression createWMLRootExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLExpression createWMLExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Valued Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Valued Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLValuedExpression createWMLValuedExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Textdomain</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Textdomain</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTextdomain createWMLTextdomain();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Lua Code</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Lua Code</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Parameter</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Parameter</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroParameter createWMLMacroParameter();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLValue createWMLValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Tokens</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Tokens</em>'.
|
||||
* @generated
|
||||
*/
|
||||
MacroTokens createMacroTokens();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
WmlPackage getWmlPackage();
|
||||
|
||||
} //WmlFactory
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EFactory;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.wesnoth.wml.WmlPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface WmlFactory extends EFactory
|
||||
{
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
WmlFactory eINSTANCE = org.wesnoth.wml.impl.WmlFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Root</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Root</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRoot createWMLRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Grammar Element</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Grammar Element</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLGrammarElement createWMLGrammarElement();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Tag</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Tag</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTag createWMLTag();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Key</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Key</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKey createWMLKey();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Key Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Key Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKeyValue createWMLKeyValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroCall createWMLMacroCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Call Parameter</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Call Parameter</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroCallParameter createWMLMacroCallParameter();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Array Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Array Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLArrayCall createWMLArrayCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Define</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Define</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroDefine createWMLMacroDefine();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Preproc IF</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Preproc IF</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLPreprocIF createWMLPreprocIF();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Root Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Root Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRootExpression createWMLRootExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLExpression createWMLExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Valued Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Valued Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLValuedExpression createWMLValuedExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Textdomain</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Textdomain</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTextdomain createWMLTextdomain();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Lua Code</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Lua Code</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Parameter</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Parameter</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroParameter createWMLMacroParameter();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLValue createWMLValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Tokens</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Tokens</em>'.
|
||||
* @generated
|
||||
*/
|
||||
MacroTokens createMacroTokens();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
WmlPackage getWmlPackage();
|
||||
|
||||
} //WmlFactory
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,53 +1,53 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.MacroTokens;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Macro Tokens</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class MacroTokensImpl extends WMLMacroParameterImpl implements MacroTokens
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected MacroTokensImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.MACRO_TOKENS;
|
||||
}
|
||||
|
||||
} //MacroTokensImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.MacroTokens;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Macro Tokens</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class MacroTokensImpl extends WMLMacroParameterImpl implements MacroTokens
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected MacroTokensImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.MACRO_TOKENS;
|
||||
}
|
||||
|
||||
} //MacroTokensImpl
|
||||
|
|
|
@ -1,176 +1,176 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Array Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLArrayCallImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValue> value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLArrayCallImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ARRAY_CALL;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValue> getValue()
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
value = new EObjectContainmentEList<WMLValue>(WMLValue.class, this, WmlPackage.WML_ARRAY_CALL__VALUE);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return ((InternalEList<?>)getValue()).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 WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return getValue();
|
||||
}
|
||||
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 WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
getValue().clear();
|
||||
getValue().addAll((Collection<? extends WMLValue>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
getValue().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return value != null && !value.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //WMLArrayCallImpl
|
||||
*/
|
||||
package org.wesnoth.wml.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.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Array Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLArrayCallImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValue> value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLArrayCallImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ARRAY_CALL;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValue> getValue()
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
value = new EObjectContainmentEList<WMLValue>(WMLValue.class, this, WmlPackage.WML_ARRAY_CALL__VALUE);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return ((InternalEList<?>)getValue()).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 WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return getValue();
|
||||
}
|
||||
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 WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
getValue().clear();
|
||||
getValue().addAll((Collection<? extends WMLValue>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
getValue().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return value != null && !value.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //WMLArrayCallImpl
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,55 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLGrammarElement;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Grammar Element</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLGrammarElementImpl extends MinimalEObjectImpl.Container implements WMLGrammarElement
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLGrammarElementImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_GRAMMAR_ELEMENT;
|
||||
}
|
||||
|
||||
} //WMLGrammarElementImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLGrammarElement;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Grammar Element</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLGrammarElementImpl extends MinimalEObjectImpl.Container implements WMLGrammarElement
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLGrammarElementImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_GRAMMAR_ELEMENT;
|
||||
}
|
||||
|
||||
} //WMLGrammarElementImpl
|
||||
|
|
|
@ -1,411 +1,411 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
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.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Key</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getEol <em>Eol</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>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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<WMLKeyValue> values;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEol() <em>Eol</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEol()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> eol;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #is_Enum() <em>Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Enum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean _ENUM_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #is_Enum() <em>Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Enum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean _Enum = _ENUM_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #is_Translatable() <em>Translatable</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Translatable()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean _TRANSLATABLE_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #is_Translatable() <em>Translatable</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Translatable()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
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 -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLKeyImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_KEY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKeyValue> getValues()
|
||||
{
|
||||
if (values == null)
|
||||
{
|
||||
values = new EObjectContainmentEList<WMLKeyValue>(WMLKeyValue.class, this, WmlPackage.WML_KEY__VALUES);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<String> getEol()
|
||||
{
|
||||
if (eol == null)
|
||||
{
|
||||
eol = new EDataTypeEList<String>(String.class, this, WmlPackage.WML_KEY__EOL);
|
||||
}
|
||||
return eol;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public boolean is_Enum()
|
||||
{
|
||||
return _Enum;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void set_Enum(boolean new_Enum)
|
||||
{
|
||||
boolean old_Enum = _Enum;
|
||||
_Enum = new_Enum;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__ENUM, old_Enum, _Enum));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public boolean is_Translatable()
|
||||
{
|
||||
return _Translatable;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void set_Translatable(boolean new_Translatable)
|
||||
{
|
||||
boolean old_Translatable = _Translatable;
|
||||
_Translatable = new_Translatable;
|
||||
if (eNotificationRequired())
|
||||
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 -->
|
||||
* @generated
|
||||
*/
|
||||
public String getValue()
|
||||
{
|
||||
return org.wesnoth.utils.WMLUtils.getKeyValue( getValues( ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__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 WmlPackage.WML_KEY__VALUES:
|
||||
return getValues();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return getEol();
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
getValues().clear();
|
||||
getValues().addAll((Collection<? extends WMLKeyValue>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
getEol().clear();
|
||||
getEol().addAll((Collection<? extends String>)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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
getValues().clear();
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
getEol().clear();
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
return values != null && !values.isEmpty();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return eol != null && !eol.isEmpty();
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (eol: ");
|
||||
result.append(eol);
|
||||
result.append(", _Enum: ");
|
||||
result.append(_Enum);
|
||||
result.append(", _Translatable: ");
|
||||
result.append(_Translatable);
|
||||
result.append(", _DataType: ");
|
||||
result.append(_DataType);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLKeyImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
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.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Key</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getEol <em>Eol</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>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyImpl extends WMLExpressionImpl implements WMLKey
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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<WMLKeyValue> values;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEol() <em>Eol</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEol()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> eol;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #is_Enum() <em>Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Enum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean _ENUM_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #is_Enum() <em>Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Enum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean _Enum = _ENUM_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #is_Translatable() <em>Translatable</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Translatable()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean _TRANSLATABLE_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #is_Translatable() <em>Translatable</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #is_Translatable()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
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 -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLKeyImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_KEY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKeyValue> getValues()
|
||||
{
|
||||
if (values == null)
|
||||
{
|
||||
values = new EObjectContainmentEList<WMLKeyValue>(WMLKeyValue.class, this, WmlPackage.WML_KEY__VALUES);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<String> getEol()
|
||||
{
|
||||
if (eol == null)
|
||||
{
|
||||
eol = new EDataTypeEList<String>(String.class, this, WmlPackage.WML_KEY__EOL);
|
||||
}
|
||||
return eol;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public boolean is_Enum()
|
||||
{
|
||||
return _Enum;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void set_Enum(boolean new_Enum)
|
||||
{
|
||||
boolean old_Enum = _Enum;
|
||||
_Enum = new_Enum;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__ENUM, old_Enum, _Enum));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public boolean is_Translatable()
|
||||
{
|
||||
return _Translatable;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void set_Translatable(boolean new_Translatable)
|
||||
{
|
||||
boolean old_Translatable = _Translatable;
|
||||
_Translatable = new_Translatable;
|
||||
if (eNotificationRequired())
|
||||
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 -->
|
||||
* @generated
|
||||
*/
|
||||
public String getValue()
|
||||
{
|
||||
return org.wesnoth.utils.WMLUtils.getKeyValue( getValues( ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__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 WmlPackage.WML_KEY__VALUES:
|
||||
return getValues();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return getEol();
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
getValues().clear();
|
||||
getValues().addAll((Collection<? extends WMLKeyValue>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
getEol().clear();
|
||||
getEol().addAll((Collection<? extends String>)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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
getValues().clear();
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
getEol().clear();
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUES:
|
||||
return values != null && !values.isEmpty();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return eol != null && !eol.isEmpty();
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (eol: ");
|
||||
result.append(eol);
|
||||
result.append(", _Enum: ");
|
||||
result.append(_Enum);
|
||||
result.append(", _Translatable: ");
|
||||
result.append(_Translatable);
|
||||
result.append(", _DataType: ");
|
||||
result.append(_DataType);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLKeyImpl
|
||||
|
|
|
@ -1,53 +1,53 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyValueImpl extends WMLGrammarElementImpl implements WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLKeyValueImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_KEY_VALUE;
|
||||
}
|
||||
|
||||
} //WMLKeyValueImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyValueImpl extends WMLGrammarElementImpl implements WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLKeyValueImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_KEY_VALUE;
|
||||
}
|
||||
|
||||
} //WMLKeyValueImpl
|
||||
|
|
|
@ -1,187 +1,187 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLLuaCode;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Lua Code</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLLuaCodeImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLLuaCodeImpl extends WMLKeyValueImpl implements WMLLuaCode
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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 = "";
|
||||
|
||||
/**
|
||||
* 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 WMLLuaCodeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_LUA_CODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_LUA_CODE__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__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 WmlPackage.WML_LUA_CODE__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 WmlPackage.WML_LUA_CODE__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__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();
|
||||
}
|
||||
|
||||
} //WMLLuaCodeImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLLuaCode;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Lua Code</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLLuaCodeImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLLuaCodeImpl extends WMLKeyValueImpl implements WMLLuaCode
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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 = "";
|
||||
|
||||
/**
|
||||
* 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 WMLLuaCodeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_LUA_CODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_LUA_CODE__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__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 WmlPackage.WML_LUA_CODE__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 WmlPackage.WML_LUA_CODE__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__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();
|
||||
}
|
||||
|
||||
} //WMLLuaCodeImpl
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,53 +1,53 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroCallParameter;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Call Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroCallParameterImpl extends WMLGrammarElementImpl implements WMLMacroCallParameter
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLMacroCallParameterImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_CALL_PARAMETER;
|
||||
}
|
||||
|
||||
} //WMLMacroCallParameterImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroCallParameter;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Call Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroCallParameterImpl extends WMLGrammarElementImpl implements WMLMacroCallParameter
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLMacroCallParameterImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_CALL_PARAMETER;
|
||||
}
|
||||
|
||||
} //WMLMacroCallParameterImpl
|
||||
|
|
|
@ -1,250 +1,250 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
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.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Define</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroDefineImpl extends WMLRootExpressionImpl implements WMLMacroDefine
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValuedExpression> expressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String END_NAME_EDEFAULT = "";
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String endName = END_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLMacroDefineImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_DEFINE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValuedExpression> getExpressions()
|
||||
{
|
||||
if (expressions == null)
|
||||
{
|
||||
expressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS);
|
||||
}
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEndName()
|
||||
{
|
||||
return endName;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEndName(String newEndName)
|
||||
{
|
||||
String oldEndName = endName;
|
||||
endName = newEndName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_DEFINE__END_NAME, oldEndName, endName));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).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 WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
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 WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
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(" (endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLMacroDefineImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
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.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Define</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroDefineImpl extends WMLRootExpressionImpl implements WMLMacroDefine
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValuedExpression> expressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String END_NAME_EDEFAULT = "";
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String endName = END_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLMacroDefineImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_DEFINE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValuedExpression> getExpressions()
|
||||
{
|
||||
if (expressions == null)
|
||||
{
|
||||
expressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS);
|
||||
}
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEndName()
|
||||
{
|
||||
return endName;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEndName(String newEndName)
|
||||
{
|
||||
String oldEndName = endName;
|
||||
endName = newEndName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_DEFINE__END_NAME, oldEndName, endName));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).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 WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
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 WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
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(" (endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLMacroDefineImpl
|
||||
|
|
|
@ -1,187 +1,187 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroParameter;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroParameterImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroParameterImpl extends WMLMacroCallParameterImpl implements WMLMacroParameter
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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 = "";
|
||||
|
||||
/**
|
||||
* 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 WMLMacroParameterImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_PARAMETER;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_MACRO_PARAMETER__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_PARAMETER__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 WmlPackage.WML_MACRO_PARAMETER__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 WmlPackage.WML_MACRO_PARAMETER__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_PARAMETER__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();
|
||||
}
|
||||
|
||||
} //WMLMacroParameterImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroParameter;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroParameterImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroParameterImpl extends WMLMacroCallParameterImpl implements WMLMacroParameter
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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 = "";
|
||||
|
||||
/**
|
||||
* 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 WMLMacroParameterImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_PARAMETER;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_MACRO_PARAMETER__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_PARAMETER__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 WmlPackage.WML_MACRO_PARAMETER__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 WmlPackage.WML_MACRO_PARAMETER__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_PARAMETER__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();
|
||||
}
|
||||
|
||||
} //WMLMacroParameterImpl
|
||||
|
|
|
@ -1,344 +1,344 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
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.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Preproc IF</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getElseExpressions <em>Else Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLPreprocIFImpl extends WMLRootExpressionImpl implements WMLPreprocIF
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValuedExpression> expressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getElses() <em>Elses</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElses()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String ELSES_EDEFAULT = "";
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getElses() <em>Elses</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElses()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String elses = ELSES_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getElseExpressions() <em>Else Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElseExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValuedExpression> elseExpressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String END_NAME_EDEFAULT = "";
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String endName = END_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLPreprocIFImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_PREPROC_IF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValuedExpression> getExpressions()
|
||||
{
|
||||
if (expressions == null)
|
||||
{
|
||||
expressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_PREPROC_IF__EXPRESSIONS);
|
||||
}
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getElses()
|
||||
{
|
||||
return elses;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setElses(String newElses)
|
||||
{
|
||||
String oldElses = elses;
|
||||
elses = newElses;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_PREPROC_IF__ELSES, oldElses, elses));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValuedExpression> getElseExpressions()
|
||||
{
|
||||
if (elseExpressions == null)
|
||||
{
|
||||
elseExpressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS);
|
||||
}
|
||||
return elseExpressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEndName()
|
||||
{
|
||||
return endName;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEndName(String newEndName)
|
||||
{
|
||||
String oldEndName = endName;
|
||||
endName = newEndName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_PREPROC_IF__END_NAME, oldEndName, endName));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
return ((InternalEList<?>)getElseExpressions()).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 WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return getElses();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
return getElseExpressions();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
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 WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
setElses((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
getElseExpressions().clear();
|
||||
getElseExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
setElses(ELSES_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
getElseExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return ELSES_EDEFAULT == null ? elses != null : !ELSES_EDEFAULT.equals(elses);
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
return elseExpressions != null && !elseExpressions.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
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(" (Elses: ");
|
||||
result.append(elses);
|
||||
result.append(", endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLPreprocIFImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
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.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Preproc IF</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getElseExpressions <em>Else Expressions</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLPreprocIFImpl extends WMLRootExpressionImpl implements WMLPreprocIF
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValuedExpression> expressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getElses() <em>Elses</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElses()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String ELSES_EDEFAULT = "";
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getElses() <em>Elses</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElses()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String elses = ELSES_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getElseExpressions() <em>Else Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElseExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValuedExpression> elseExpressions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String END_NAME_EDEFAULT = "";
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String endName = END_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLPreprocIFImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_PREPROC_IF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValuedExpression> getExpressions()
|
||||
{
|
||||
if (expressions == null)
|
||||
{
|
||||
expressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_PREPROC_IF__EXPRESSIONS);
|
||||
}
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getElses()
|
||||
{
|
||||
return elses;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setElses(String newElses)
|
||||
{
|
||||
String oldElses = elses;
|
||||
elses = newElses;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_PREPROC_IF__ELSES, oldElses, elses));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValuedExpression> getElseExpressions()
|
||||
{
|
||||
if (elseExpressions == null)
|
||||
{
|
||||
elseExpressions = new EObjectContainmentEList<WMLValuedExpression>(WMLValuedExpression.class, this, WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS);
|
||||
}
|
||||
return elseExpressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEndName()
|
||||
{
|
||||
return endName;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEndName(String newEndName)
|
||||
{
|
||||
String oldEndName = endName;
|
||||
endName = newEndName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_PREPROC_IF__END_NAME, oldEndName, endName));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
return ((InternalEList<?>)getElseExpressions()).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 WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return getElses();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
return getElseExpressions();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
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 WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
setElses((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
getElseExpressions().clear();
|
||||
getElseExpressions().addAll((Collection<? extends WMLValuedExpression>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
setElses(ELSES_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
getElseExpressions().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return ELSES_EDEFAULT == null ? elses != null : !ELSES_EDEFAULT.equals(elses);
|
||||
case WmlPackage.WML_PREPROC_IF__ELSE_EXPRESSIONS:
|
||||
return elseExpressions != null && !elseExpressions.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
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(" (Elses: ");
|
||||
result.append(elses);
|
||||
result.append(", endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLPreprocIFImpl
|
||||
|
|
|
@ -1,53 +1,53 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Root Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLRootExpressionImpl extends WMLExpressionImpl implements WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLRootExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ROOT_EXPRESSION;
|
||||
}
|
||||
|
||||
} //WMLRootExpressionImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Root Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLRootExpressionImpl extends WMLExpressionImpl implements WMLRootExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLRootExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ROOT_EXPRESSION;
|
||||
}
|
||||
|
||||
} //WMLRootExpressionImpl
|
||||
|
|
|
@ -1,176 +1,176 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLRoot;
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLRootImpl extends WMLGrammarElementImpl implements WMLRoot
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLRootExpression> expressions;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLRootImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ROOT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLRootExpression> getExpressions()
|
||||
{
|
||||
if (expressions == null)
|
||||
{
|
||||
expressions = new EObjectContainmentEList<WMLRootExpression>(WMLRootExpression.class, this, WmlPackage.WML_ROOT__EXPRESSIONS);
|
||||
}
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).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 WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
}
|
||||
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 WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLRootExpression>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //WMLRootImpl
|
||||
*/
|
||||
package org.wesnoth.wml.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.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLRoot;
|
||||
import org.wesnoth.wml.WMLRootExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getExpressions <em>Expressions</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLRootImpl extends WMLGrammarElementImpl implements WMLRoot
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExpressions() <em>Expressions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExpressions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLRootExpression> expressions;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLRootImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ROOT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLRootExpression> getExpressions()
|
||||
{
|
||||
if (expressions == null)
|
||||
{
|
||||
expressions = new EObjectContainmentEList<WMLRootExpression>(WMLRootExpression.class, this, WmlPackage.WML_ROOT__EXPRESSIONS);
|
||||
}
|
||||
return expressions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return ((InternalEList<?>)getExpressions()).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 WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return getExpressions();
|
||||
}
|
||||
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 WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
getExpressions().addAll((Collection<? extends WMLRootExpression>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
getExpressions().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__EXPRESSIONS:
|
||||
return expressions != null && !expressions.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //WMLRootImpl
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,53 +1,53 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLTextdomainImpl extends WMLRootExpressionImpl implements WMLTextdomain
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLTextdomainImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_TEXTDOMAIN;
|
||||
}
|
||||
|
||||
} //WMLTextdomainImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLTextdomainImpl extends WMLRootExpressionImpl implements WMLTextdomain
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLTextdomainImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_TEXTDOMAIN;
|
||||
}
|
||||
|
||||
} //WMLTextdomainImpl
|
||||
|
|
|
@ -1,256 +1,256 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroCallParameter;
|
||||
import org.wesnoth.wml.WMLMacroParameter;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLValueImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLValueImpl extends WMLKeyValueImpl implements WMLValue
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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 = "";
|
||||
|
||||
/**
|
||||
* 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 WMLValueImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_VALUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_VALUE__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__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 WmlPackage.WML_VALUE__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 WmlPackage.WML_VALUE__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE:
|
||||
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
|
||||
{
|
||||
if (baseClass == WMLValuedExpression.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroCallParameter.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroParameter.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE: return WmlPackage.WML_MACRO_PARAMETER__VALUE;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
|
||||
{
|
||||
if (baseClass == WMLValuedExpression.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroCallParameter.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroParameter.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_PARAMETER__VALUE: return WmlPackage.WML_VALUE__VALUE;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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();
|
||||
}
|
||||
|
||||
} //WMLValueImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroCallParameter;
|
||||
import org.wesnoth.wml.WMLMacroParameter;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLValueImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLValueImpl extends WMLKeyValueImpl implements WMLValue
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 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 = "";
|
||||
|
||||
/**
|
||||
* 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 WMLValueImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_VALUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_VALUE__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__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 WmlPackage.WML_VALUE__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 WmlPackage.WML_VALUE__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE:
|
||||
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
|
||||
{
|
||||
if (baseClass == WMLValuedExpression.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroCallParameter.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroParameter.class)
|
||||
{
|
||||
switch (derivedFeatureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE: return WmlPackage.WML_MACRO_PARAMETER__VALUE;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
|
||||
{
|
||||
if (baseClass == WMLValuedExpression.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroCallParameter.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
if (baseClass == WMLMacroParameter.class)
|
||||
{
|
||||
switch (baseFeatureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_PARAMETER__VALUE: return WmlPackage.WML_VALUE__VALUE;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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();
|
||||
}
|
||||
|
||||
} //WMLValueImpl
|
||||
|
|
|
@ -1,53 +1,53 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Valued Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLValuedExpressionImpl extends WMLGrammarElementImpl implements WMLValuedExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLValuedExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_VALUED_EXPRESSION;
|
||||
}
|
||||
|
||||
} //WMLValuedExpressionImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.wesnoth.wml.WMLValuedExpression;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Valued Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLValuedExpressionImpl extends WMLGrammarElementImpl implements WMLValuedExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLValuedExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_VALUED_EXPRESSION;
|
||||
}
|
||||
|
||||
} //WMLValuedExpressionImpl
|
||||
|
|
|
@ -1,314 +1,314 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
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.wesnoth.wml.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Factory</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
||||
{
|
||||
/**
|
||||
* Creates the default factory implementation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static WmlFactory init()
|
||||
{
|
||||
try
|
||||
{
|
||||
WmlFactory theWmlFactory = (WmlFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.wesnoth.org/WML");
|
||||
if (theWmlFactory != null)
|
||||
{
|
||||
return theWmlFactory;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
EcorePlugin.INSTANCE.log(exception);
|
||||
}
|
||||
return new WmlFactoryImpl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlFactoryImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EObject create(EClass eClass)
|
||||
{
|
||||
switch (eClass.getClassifierID())
|
||||
{
|
||||
case WmlPackage.WML_ROOT: return createWMLRoot();
|
||||
case WmlPackage.WML_GRAMMAR_ELEMENT: return createWMLGrammarElement();
|
||||
case WmlPackage.WML_TAG: return createWMLTag();
|
||||
case WmlPackage.WML_KEY: return createWMLKey();
|
||||
case WmlPackage.WML_KEY_VALUE: return createWMLKeyValue();
|
||||
case WmlPackage.WML_MACRO_CALL: return createWMLMacroCall();
|
||||
case WmlPackage.WML_MACRO_CALL_PARAMETER: return createWMLMacroCallParameter();
|
||||
case WmlPackage.WML_ARRAY_CALL: return createWMLArrayCall();
|
||||
case WmlPackage.WML_MACRO_DEFINE: return createWMLMacroDefine();
|
||||
case WmlPackage.WML_PREPROC_IF: return createWMLPreprocIF();
|
||||
case WmlPackage.WML_ROOT_EXPRESSION: return createWMLRootExpression();
|
||||
case WmlPackage.WML_EXPRESSION: return createWMLExpression();
|
||||
case WmlPackage.WML_VALUED_EXPRESSION: return createWMLValuedExpression();
|
||||
case WmlPackage.WML_TEXTDOMAIN: return createWMLTextdomain();
|
||||
case WmlPackage.WML_LUA_CODE: return createWMLLuaCode();
|
||||
case WmlPackage.WML_MACRO_PARAMETER: return createWMLMacroParameter();
|
||||
case WmlPackage.WML_VALUE: return createWMLValue();
|
||||
case WmlPackage.MACRO_TOKENS: return createMacroTokens();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLRoot createWMLRoot()
|
||||
{
|
||||
WMLRootImpl wmlRoot = new WMLRootImpl();
|
||||
return wmlRoot;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLGrammarElement createWMLGrammarElement()
|
||||
{
|
||||
WMLGrammarElementImpl wmlGrammarElement = new WMLGrammarElementImpl();
|
||||
return wmlGrammarElement;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLTag createWMLTag()
|
||||
{
|
||||
WMLTagImpl wmlTag = new WMLTagImpl();
|
||||
return wmlTag;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLKey createWMLKey()
|
||||
{
|
||||
WMLKeyImpl wmlKey = new WMLKeyImpl();
|
||||
return wmlKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLKeyValue createWMLKeyValue()
|
||||
{
|
||||
WMLKeyValueImpl wmlKeyValue = new WMLKeyValueImpl();
|
||||
return wmlKeyValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroCall createWMLMacroCall()
|
||||
{
|
||||
WMLMacroCallImpl wmlMacroCall = new WMLMacroCallImpl();
|
||||
return wmlMacroCall;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroCallParameter createWMLMacroCallParameter()
|
||||
{
|
||||
WMLMacroCallParameterImpl wmlMacroCallParameter = new WMLMacroCallParameterImpl();
|
||||
return wmlMacroCallParameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLArrayCall createWMLArrayCall()
|
||||
{
|
||||
WMLArrayCallImpl wmlArrayCall = new WMLArrayCallImpl();
|
||||
return wmlArrayCall;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroDefine createWMLMacroDefine()
|
||||
{
|
||||
WMLMacroDefineImpl wmlMacroDefine = new WMLMacroDefineImpl();
|
||||
return wmlMacroDefine;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLPreprocIF createWMLPreprocIF()
|
||||
{
|
||||
WMLPreprocIFImpl wmlPreprocIF = new WMLPreprocIFImpl();
|
||||
return wmlPreprocIF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLRootExpression createWMLRootExpression()
|
||||
{
|
||||
WMLRootExpressionImpl wmlRootExpression = new WMLRootExpressionImpl();
|
||||
return wmlRootExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLExpression createWMLExpression()
|
||||
{
|
||||
WMLExpressionImpl wmlExpression = new WMLExpressionImpl();
|
||||
return wmlExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLValuedExpression createWMLValuedExpression()
|
||||
{
|
||||
WMLValuedExpressionImpl wmlValuedExpression = new WMLValuedExpressionImpl();
|
||||
return wmlValuedExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLTextdomain createWMLTextdomain()
|
||||
{
|
||||
WMLTextdomainImpl wmlTextdomain = new WMLTextdomainImpl();
|
||||
return wmlTextdomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLLuaCode createWMLLuaCode()
|
||||
{
|
||||
WMLLuaCodeImpl wmlLuaCode = new WMLLuaCodeImpl();
|
||||
return wmlLuaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroParameter createWMLMacroParameter()
|
||||
{
|
||||
WMLMacroParameterImpl wmlMacroParameter = new WMLMacroParameterImpl();
|
||||
return wmlMacroParameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLValue createWMLValue()
|
||||
{
|
||||
WMLValueImpl wmlValue = new WMLValueImpl();
|
||||
return wmlValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public MacroTokens createMacroTokens()
|
||||
{
|
||||
MacroTokensImpl macroTokens = new MacroTokensImpl();
|
||||
return macroTokens;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlPackage getWmlPackage()
|
||||
{
|
||||
return (WmlPackage)getEPackage();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @deprecated
|
||||
* @generated
|
||||
*/
|
||||
@Deprecated
|
||||
public static WmlPackage getPackage()
|
||||
{
|
||||
return WmlPackage.eINSTANCE;
|
||||
}
|
||||
|
||||
} //WmlFactoryImpl
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
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.wesnoth.wml.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Factory</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
||||
{
|
||||
/**
|
||||
* Creates the default factory implementation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static WmlFactory init()
|
||||
{
|
||||
try
|
||||
{
|
||||
WmlFactory theWmlFactory = (WmlFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.wesnoth.org/WML");
|
||||
if (theWmlFactory != null)
|
||||
{
|
||||
return theWmlFactory;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
EcorePlugin.INSTANCE.log(exception);
|
||||
}
|
||||
return new WmlFactoryImpl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlFactoryImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EObject create(EClass eClass)
|
||||
{
|
||||
switch (eClass.getClassifierID())
|
||||
{
|
||||
case WmlPackage.WML_ROOT: return createWMLRoot();
|
||||
case WmlPackage.WML_GRAMMAR_ELEMENT: return createWMLGrammarElement();
|
||||
case WmlPackage.WML_TAG: return createWMLTag();
|
||||
case WmlPackage.WML_KEY: return createWMLKey();
|
||||
case WmlPackage.WML_KEY_VALUE: return createWMLKeyValue();
|
||||
case WmlPackage.WML_MACRO_CALL: return createWMLMacroCall();
|
||||
case WmlPackage.WML_MACRO_CALL_PARAMETER: return createWMLMacroCallParameter();
|
||||
case WmlPackage.WML_ARRAY_CALL: return createWMLArrayCall();
|
||||
case WmlPackage.WML_MACRO_DEFINE: return createWMLMacroDefine();
|
||||
case WmlPackage.WML_PREPROC_IF: return createWMLPreprocIF();
|
||||
case WmlPackage.WML_ROOT_EXPRESSION: return createWMLRootExpression();
|
||||
case WmlPackage.WML_EXPRESSION: return createWMLExpression();
|
||||
case WmlPackage.WML_VALUED_EXPRESSION: return createWMLValuedExpression();
|
||||
case WmlPackage.WML_TEXTDOMAIN: return createWMLTextdomain();
|
||||
case WmlPackage.WML_LUA_CODE: return createWMLLuaCode();
|
||||
case WmlPackage.WML_MACRO_PARAMETER: return createWMLMacroParameter();
|
||||
case WmlPackage.WML_VALUE: return createWMLValue();
|
||||
case WmlPackage.MACRO_TOKENS: return createMacroTokens();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLRoot createWMLRoot()
|
||||
{
|
||||
WMLRootImpl wmlRoot = new WMLRootImpl();
|
||||
return wmlRoot;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLGrammarElement createWMLGrammarElement()
|
||||
{
|
||||
WMLGrammarElementImpl wmlGrammarElement = new WMLGrammarElementImpl();
|
||||
return wmlGrammarElement;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLTag createWMLTag()
|
||||
{
|
||||
WMLTagImpl wmlTag = new WMLTagImpl();
|
||||
return wmlTag;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLKey createWMLKey()
|
||||
{
|
||||
WMLKeyImpl wmlKey = new WMLKeyImpl();
|
||||
return wmlKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLKeyValue createWMLKeyValue()
|
||||
{
|
||||
WMLKeyValueImpl wmlKeyValue = new WMLKeyValueImpl();
|
||||
return wmlKeyValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroCall createWMLMacroCall()
|
||||
{
|
||||
WMLMacroCallImpl wmlMacroCall = new WMLMacroCallImpl();
|
||||
return wmlMacroCall;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroCallParameter createWMLMacroCallParameter()
|
||||
{
|
||||
WMLMacroCallParameterImpl wmlMacroCallParameter = new WMLMacroCallParameterImpl();
|
||||
return wmlMacroCallParameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLArrayCall createWMLArrayCall()
|
||||
{
|
||||
WMLArrayCallImpl wmlArrayCall = new WMLArrayCallImpl();
|
||||
return wmlArrayCall;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroDefine createWMLMacroDefine()
|
||||
{
|
||||
WMLMacroDefineImpl wmlMacroDefine = new WMLMacroDefineImpl();
|
||||
return wmlMacroDefine;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLPreprocIF createWMLPreprocIF()
|
||||
{
|
||||
WMLPreprocIFImpl wmlPreprocIF = new WMLPreprocIFImpl();
|
||||
return wmlPreprocIF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLRootExpression createWMLRootExpression()
|
||||
{
|
||||
WMLRootExpressionImpl wmlRootExpression = new WMLRootExpressionImpl();
|
||||
return wmlRootExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLExpression createWMLExpression()
|
||||
{
|
||||
WMLExpressionImpl wmlExpression = new WMLExpressionImpl();
|
||||
return wmlExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLValuedExpression createWMLValuedExpression()
|
||||
{
|
||||
WMLValuedExpressionImpl wmlValuedExpression = new WMLValuedExpressionImpl();
|
||||
return wmlValuedExpression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLTextdomain createWMLTextdomain()
|
||||
{
|
||||
WMLTextdomainImpl wmlTextdomain = new WMLTextdomainImpl();
|
||||
return wmlTextdomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLLuaCode createWMLLuaCode()
|
||||
{
|
||||
WMLLuaCodeImpl wmlLuaCode = new WMLLuaCodeImpl();
|
||||
return wmlLuaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroParameter createWMLMacroParameter()
|
||||
{
|
||||
WMLMacroParameterImpl wmlMacroParameter = new WMLMacroParameterImpl();
|
||||
return wmlMacroParameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLValue createWMLValue()
|
||||
{
|
||||
WMLValueImpl wmlValue = new WMLValueImpl();
|
||||
return wmlValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public MacroTokens createMacroTokens()
|
||||
{
|
||||
MacroTokensImpl macroTokens = new MacroTokensImpl();
|
||||
return macroTokens;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlPackage getWmlPackage()
|
||||
{
|
||||
return (WmlPackage)getEPackage();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @deprecated
|
||||
* @generated
|
||||
*/
|
||||
@Deprecated
|
||||
public static WmlPackage getPackage()
|
||||
{
|
||||
return WmlPackage.eINSTANCE;
|
||||
}
|
||||
|
||||
} //WmlFactoryImpl
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,498 +1,498 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
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.wesnoth.wml.*;
|
||||
|
||||
/**
|
||||
* <!-- 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.wesnoth.wml.WmlPackage
|
||||
* @generated
|
||||
*/
|
||||
public class WmlAdapterFactory extends AdapterFactoryImpl
|
||||
{
|
||||
/**
|
||||
* The cached model package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static WmlPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlAdapterFactory()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = WmlPackage.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 WmlSwitch<Adapter> modelSwitch =
|
||||
new WmlSwitch<Adapter>()
|
||||
{
|
||||
@Override
|
||||
public Adapter caseWMLRoot(WMLRoot object)
|
||||
{
|
||||
return createWMLRootAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLGrammarElement(WMLGrammarElement object)
|
||||
{
|
||||
return createWMLGrammarElementAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTag(WMLTag object)
|
||||
{
|
||||
return createWMLTagAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLKey(WMLKey object)
|
||||
{
|
||||
return createWMLKeyAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLKeyValue(WMLKeyValue object)
|
||||
{
|
||||
return createWMLKeyValueAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroCall(WMLMacroCall object)
|
||||
{
|
||||
return createWMLMacroCallAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroCallParameter(WMLMacroCallParameter object)
|
||||
{
|
||||
return createWMLMacroCallParameterAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLArrayCall(WMLArrayCall object)
|
||||
{
|
||||
return createWMLArrayCallAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroDefine(WMLMacroDefine object)
|
||||
{
|
||||
return createWMLMacroDefineAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLPreprocIF(WMLPreprocIF object)
|
||||
{
|
||||
return createWMLPreprocIFAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLRootExpression(WMLRootExpression object)
|
||||
{
|
||||
return createWMLRootExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLExpression(WMLExpression object)
|
||||
{
|
||||
return createWMLExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLValuedExpression(WMLValuedExpression object)
|
||||
{
|
||||
return createWMLValuedExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTextdomain(WMLTextdomain object)
|
||||
{
|
||||
return createWMLTextdomainAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return createWMLLuaCodeAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroParameter(WMLMacroParameter object)
|
||||
{
|
||||
return createWMLMacroParameterAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLValue(WMLValue object)
|
||||
{
|
||||
return createWMLValueAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseMacroTokens(MacroTokens object)
|
||||
{
|
||||
return createMacroTokensAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseESerializable(Serializable object)
|
||||
{
|
||||
return createESerializableAdapter();
|
||||
}
|
||||
@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.wesnoth.wml.WMLRoot <em>WML Root</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.wesnoth.wml.WMLRoot
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLRootAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLGrammarElement <em>WML Grammar Element</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.wesnoth.wml.WMLGrammarElement
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLGrammarElementAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTag <em>WML Tag</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.wesnoth.wml.WMLTag
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLTagAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLKey <em>WML Key</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.wesnoth.wml.WMLKey
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLKeyAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLKeyValue <em>WML Key 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.wesnoth.wml.WMLKeyValue
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLKeyValueAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroCall <em>WML Macro Call</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.wesnoth.wml.WMLMacroCall
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroCallAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroCallParameter <em>WML Macro Call Parameter</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.wesnoth.wml.WMLMacroCallParameter
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroCallParameterAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLArrayCall <em>WML Array Call</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.wesnoth.wml.WMLArrayCall
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLArrayCallAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroDefine <em>WML Macro Define</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.wesnoth.wml.WMLMacroDefine
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroDefineAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLPreprocIF <em>WML Preproc IF</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.wesnoth.wml.WMLPreprocIF
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLPreprocIFAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLRootExpression <em>WML Root Expression</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.wesnoth.wml.WMLRootExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLRootExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLExpression <em>WML Expression</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.wesnoth.wml.WMLExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLValuedExpression <em>WML Valued Expression</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.wesnoth.wml.WMLValuedExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLValuedExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTextdomain <em>WML Textdomain</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.wesnoth.wml.WMLTextdomain
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLTextdomainAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLLuaCode <em>WML Lua Code</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.wesnoth.wml.WMLLuaCode
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLLuaCodeAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroParameter <em>WML Macro Parameter</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.wesnoth.wml.WMLMacroParameter
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroParameterAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLValue <em>WML 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.wesnoth.wml.WMLValue
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLValueAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.MacroTokens <em>Macro Tokens</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.wesnoth.wml.MacroTokens
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createMacroTokensAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link java.io.Serializable <em>ESerializable</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 java.io.Serializable
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createESerializableAdapter()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
} //WmlAdapterFactory
|
||||
*/
|
||||
package org.wesnoth.wml.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
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.wesnoth.wml.*;
|
||||
|
||||
/**
|
||||
* <!-- 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.wesnoth.wml.WmlPackage
|
||||
* @generated
|
||||
*/
|
||||
public class WmlAdapterFactory extends AdapterFactoryImpl
|
||||
{
|
||||
/**
|
||||
* The cached model package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static WmlPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlAdapterFactory()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = WmlPackage.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 WmlSwitch<Adapter> modelSwitch =
|
||||
new WmlSwitch<Adapter>()
|
||||
{
|
||||
@Override
|
||||
public Adapter caseWMLRoot(WMLRoot object)
|
||||
{
|
||||
return createWMLRootAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLGrammarElement(WMLGrammarElement object)
|
||||
{
|
||||
return createWMLGrammarElementAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTag(WMLTag object)
|
||||
{
|
||||
return createWMLTagAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLKey(WMLKey object)
|
||||
{
|
||||
return createWMLKeyAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLKeyValue(WMLKeyValue object)
|
||||
{
|
||||
return createWMLKeyValueAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroCall(WMLMacroCall object)
|
||||
{
|
||||
return createWMLMacroCallAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroCallParameter(WMLMacroCallParameter object)
|
||||
{
|
||||
return createWMLMacroCallParameterAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLArrayCall(WMLArrayCall object)
|
||||
{
|
||||
return createWMLArrayCallAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroDefine(WMLMacroDefine object)
|
||||
{
|
||||
return createWMLMacroDefineAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLPreprocIF(WMLPreprocIF object)
|
||||
{
|
||||
return createWMLPreprocIFAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLRootExpression(WMLRootExpression object)
|
||||
{
|
||||
return createWMLRootExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLExpression(WMLExpression object)
|
||||
{
|
||||
return createWMLExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLValuedExpression(WMLValuedExpression object)
|
||||
{
|
||||
return createWMLValuedExpressionAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTextdomain(WMLTextdomain object)
|
||||
{
|
||||
return createWMLTextdomainAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return createWMLLuaCodeAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroParameter(WMLMacroParameter object)
|
||||
{
|
||||
return createWMLMacroParameterAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLValue(WMLValue object)
|
||||
{
|
||||
return createWMLValueAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseMacroTokens(MacroTokens object)
|
||||
{
|
||||
return createMacroTokensAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseESerializable(Serializable object)
|
||||
{
|
||||
return createESerializableAdapter();
|
||||
}
|
||||
@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.wesnoth.wml.WMLRoot <em>WML Root</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.wesnoth.wml.WMLRoot
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLRootAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLGrammarElement <em>WML Grammar Element</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.wesnoth.wml.WMLGrammarElement
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLGrammarElementAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTag <em>WML Tag</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.wesnoth.wml.WMLTag
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLTagAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLKey <em>WML Key</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.wesnoth.wml.WMLKey
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLKeyAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLKeyValue <em>WML Key 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.wesnoth.wml.WMLKeyValue
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLKeyValueAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroCall <em>WML Macro Call</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.wesnoth.wml.WMLMacroCall
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroCallAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroCallParameter <em>WML Macro Call Parameter</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.wesnoth.wml.WMLMacroCallParameter
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroCallParameterAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLArrayCall <em>WML Array Call</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.wesnoth.wml.WMLArrayCall
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLArrayCallAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroDefine <em>WML Macro Define</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.wesnoth.wml.WMLMacroDefine
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroDefineAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLPreprocIF <em>WML Preproc IF</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.wesnoth.wml.WMLPreprocIF
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLPreprocIFAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLRootExpression <em>WML Root Expression</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.wesnoth.wml.WMLRootExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLRootExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLExpression <em>WML Expression</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.wesnoth.wml.WMLExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLValuedExpression <em>WML Valued Expression</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.wesnoth.wml.WMLValuedExpression
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLValuedExpressionAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTextdomain <em>WML Textdomain</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.wesnoth.wml.WMLTextdomain
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLTextdomainAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLLuaCode <em>WML Lua Code</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.wesnoth.wml.WMLLuaCode
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLLuaCodeAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroParameter <em>WML Macro Parameter</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.wesnoth.wml.WMLMacroParameter
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroParameterAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLValue <em>WML 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.wesnoth.wml.WMLValue
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLValueAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.MacroTokens <em>Macro Tokens</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.wesnoth.wml.MacroTokens
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createMacroTokensAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link java.io.Serializable <em>ESerializable</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 java.io.Serializable
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createESerializableAdapter()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
} //WmlAdapterFactory
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -20,7 +20,7 @@ WMLTag:
|
|||
;
|
||||
|
||||
WMLKey hidden(WS):
|
||||
name = ID '=' values += WMLKeyValue* (EOL? '+' EOL? values += WMLKeyValue+)* eol+=(EOL|SL_COMMENT)+;
|
||||
name = ID '=' values += WMLKeyValue* (EOL? '+' EOL? values += WMLKeyValue+)* eol+=(EOL|SL_COMMENT);
|
||||
|
||||
WMLKeyValue:
|
||||
WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
|
|
Loading…
Add table
Reference in a new issue