/** * * * */ package org.wesnoth.wml; /** * * A representation of the model object 'WML Expression'. * * *

* The following features are supported: *

*

* * @see org.wesnoth.wml.WmlPackage#getWMLExpression() * @model * @generated */ public interface WMLExpression extends WMLValuedExpression { /** * Returns the value of the 'Name' attribute. * The default value is "". * *

* If the meaning of the 'Name' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Name' 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 Name}' attribute. * * * @param value the new value of the 'Name' attribute. * @see #getName() * @generated */ void setName(String value); /** * Returns the value of the 'Lua Based' attribute. * The default value is "false". * *

* If the meaning of the 'Lua Based' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Lua Based' 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 Lua Based}' attribute. * * * @param value the new value of the 'Lua Based' attribute. * @see #is_LuaBased() * @generated */ void set_LuaBased(boolean value); /** * Returns the value of the 'Definition Location' attribute. * The default value is "". * *

* If the meaning of the 'Definition Location' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Definition Location' 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 Definition Location}' attribute. * * * @param value the new value of the 'Definition Location' attribute. * @see #get_DefinitionLocation() * @generated */ void set_DefinitionLocation(String value); /** * Returns the value of the 'Definition Offset' attribute. * The default value is "0". * *

* If the meaning of the 'Definition Offset' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Definition Offset' 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 Definition Offset}' attribute. * * * @param value the new value of the 'Definition Offset' attribute. * @see #get_DefinitionOffset() * @generated */ void set_DefinitionOffset(int value); /** * Returns the value of the 'Cardinality' attribute. * The default value is " ". * *

* If the meaning of the 'Cardinality' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Cardinality' 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 Cardinality}' attribute. * * * @param value the new value of the 'Cardinality' attribute. * @see #get_Cardinality() * @generated */ void set_Cardinality(char value); /** * * * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'1\';'" * @generated */ boolean is_Required(); /** * * * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'-\';'" * @generated */ boolean is_Forbidden(); /** * * * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'?\';'" * @generated */ boolean is_Optional(); /** * * * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='return _Cardinality == \'*\';'" * @generated */ boolean is_Repeatable(); /** * * * @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(); /** * * * @model kind="operation" * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ( this instanceof WMLTag );'" * @generated */ boolean isWMLTag(); /** * * * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='if ( !( this instanceof WMLTag ) ) return null; return ( WMLTag ) this;'" * @generated */ WMLTag asWMLTag(); /** * * * @model kind="operation" * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ( this instanceof WMLKey );'" * @generated */ boolean isWMLKey(); /** * * * @model annotation="http://www.eclipse.org/emf/2002/GenModel body='if ( !( this instanceof WMLKey ) ) return null; return ( WMLKey ) this;'" * @generated */ WMLKey asWMLKey(); } // WMLExpression