|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.notation.NotationProvider
org.argouml.notation.providers.TransitionNotation
org.argouml.notation.providers.uml.TransitionNotationUml
public class TransitionNotationUml
UML Notation for the text shown next to a Transition.
| Constructor Summary | |
|---|---|
TransitionNotationUml(java.lang.Object transition)
The constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
generateParameter(java.lang.Object parameter)
Generates the representation of a parameter on the display (diagram). |
java.lang.String |
getParsingHelp()
|
void |
initialiseListener(java.beans.PropertyChangeListener listener,
java.lang.Object modelElement)
Initialise the appropriate model change listeners for the given modelelement to the given listener. |
void |
parse(java.lang.Object modelElement,
java.lang.String text)
Parses the given text, and adapts the modelElement and maybe related elements accordingly. |
protected java.lang.Object |
parseTransition(java.lang.Object trans,
java.lang.String s)
Parse a transition description line of the form: |
java.lang.String |
toString(java.lang.Object modelElement,
NotationSettings settings)
Generate a string representation for the given model element. |
| Methods inherited from class org.argouml.notation.NotationProvider |
|---|
addElementListener, addElementListener, addElementListener, cleanListener, formatNameList, formatNameList, removeAllElementListeners, removeElementListener, updateListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransitionNotationUml(java.lang.Object transition)
transition - the transition represented by this notation| Method Detail |
|---|
public void parse(java.lang.Object modelElement,
java.lang.String text)
NotationProvider
parse in class NotationProvidermodelElement - the modelelement to adapttext - the string given by the user to be parsed
to adapt the model
protected java.lang.Object parseTransition(java.lang.Object trans,
java.lang.String s)
throws java.text.ParseException
"event-signature [guard-condition] / action-expression".
If the last character of this line
is a ";", then it is ignored.The "event-signature" may be one of the 4 formats:
An alternative solution would be to create a CallEvent by default, and when editing an existing event, do not change the type.
TODO: This function fails when the event-signature contains a "[" or a "/".
trans - the transition object to which this string appliess - the string to be parsed
java.text.ParseException - when no matching [] are foundpublic java.lang.String getParsingHelp()
getParsingHelp in class NotationProvider
public java.lang.String toString(java.lang.Object modelElement,
NotationSettings settings)
NotationProvider
toString in class NotationProvidermodelElement - the base UML elementsettings - settings that control rendering of the text
public java.lang.String generateParameter(java.lang.Object parameter)
kind name : type-expression = default-value
parameter - the parameter
public void initialiseListener(java.beans.PropertyChangeListener listener,
java.lang.Object modelElement)
NotationProvider
initialiseListener in class NotationProviderlistener - the given listenermodelElement - the modelelement that we provide
notation for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |