io.sarl.lang.codebuilder.builders
Class SarlCapacityBuilderImpl
All Superinterfaces:
ISarlCapacityBuilder
class SarlCapacityBuilderImpl
extends AbstractBuilder
implements ISarlCapacityBuilder
Builder of a Sarl SarlCapacity.
Property Summary
Modifier and type Property and description
SarlCapacity sarlCapacity
Replies the generated SarlCapacity.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
ISarlActionBuilder addDefSarlAction(String)
Create a SarlAction.
void addExtends(String)
Add the super type.
void addModifier(String)
Add a modifier.
ISarlActionBuilder addOverrideSarlAction(String)
Create a SarlAction.
ISarlActionBuilder addSarlAction(String)
Create a SarlAction
void eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
org.eclipse.emf.ecore.resource.Resource eResource
Replies the resource to which the SarlCapacity is attached.
SarlCapacity getSarlCapacity
Replies the generated SarlCapacity.
void setDocumentation(String)
Change the documentation of the element.
java.lang.String toString
Property Details
sarlCapacity
val sarlCapacity : SarlCapacity
Replies the generated SarlCapacity.

This property is an alias for the action: getSarlCapacity

Constructor Details
new
new
Action Details
addDefSarlAction(String)
def addDefSarlAction(String) : ISarlActionBuilder
Create a SarlAction.
Parameters:
name - the name of the SarlAction.
Returns:
the builder.
addExtends(String)
def addExtends(String)
Add the super type.
Parameters:
superType - the qualified name of the super type.
addModifier(String)
def addModifier(String)
Add a modifier.
Parameters:
modifier - the modifier to add.
addOverrideSarlAction(String)
def addOverrideSarlAction(String) : ISarlActionBuilder
Create a SarlAction.
Parameters:
name - the name of the SarlAction.
Returns:
the builder.
addSarlAction(String)
def addSarlAction(String) : ISarlActionBuilder
Create a SarlAction. *

This function is equivalent to #addDefSarlAction.
Parameters:
name - the name of the SarlAction.
Returns:
the builder.
eInit(SarlScript,String,IJvmTypeProvider)
def eInit(SarlScript,String,IJvmTypeProvider)
Initialize the Ecore element when inside a script.
eResource
def eResource : org.eclipse.emf.ecore.resource.Resource
Replies the resource to which the SarlCapacity is attached.
getSarlCapacity
def getSarlCapacity : SarlCapacity
Replies the generated SarlCapacity.
setDocumentation(String)
def setDocumentation(String)
Change the documentation of the element.

The documentation will be displayed just before the element.
Parameters:
doc - the documentation.
toString
def toString : java.lang.String