|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.uml.Procedure
Represents the semantics of an Operation
. Responsible for knowing the language
in which the semantics are expressed and translating them into another language if possible.
This class does not represent a UML ModelElement
.
Nested Class Summary | |
static class |
Procedure.Language
Typesafe enum to represent the language of a Procedure body. |
Constructor Summary | |
Procedure(Procedure.Language language,
java.lang.String body)
Creates a new Procedure |
Method Summary | |
java.lang.String |
getBody()
Get the body of this Procedure . |
java.lang.String |
getCode(Procedure.Language language)
Get the code for this Procedure in the given language. |
java.lang.String |
getJavaCode()
Get the code for this Procedure in the Java language. |
Procedure.Language |
getLanguage()
Get the language of this Procedure . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Procedure(Procedure.Language language, java.lang.String body)
Method Detail |
public Procedure.Language getLanguage()
Procedure
.
public java.lang.String getBody()
Procedure
.
public java.lang.String getCode(Procedure.Language language)
Procedure
in the given language.
language
- the language in which the code is required
java.lang.IllegalArgumentException
- if this Procedure
cannot be expressed in language
public java.lang.String getJavaCode()
Procedure
in the Java language.
java.lang.IllegalArgumentException
- if this Procedure
cannot be expressed in Java
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |