org.argouml.notation.providers.uml
Class CallStateNotationUml

java.lang.Object
  extended by org.argouml.notation.NotationProvider
      extended by org.argouml.notation.providers.CallStateNotation
          extended by org.argouml.notation.providers.uml.CallStateNotationUml

public class CallStateNotationUml
extends CallStateNotation

The UML notation for a CallState.

A call state is shown with the name of the operation being called in the symbol, along with the name of the classifier that hosts the operation in parentheses under it.

Despite being shown on 2 lines, this is considered 1 text. The user may enter the text in 1 or 2 lines, but ArgoUML shows it as 2 lines.


Constructor Summary
CallStateNotationUml(java.lang.Object callState)
          The constructor.
 
Method Summary
 java.lang.String getParsingHelp()
           
 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 parseCallState(java.lang.Object callState, java.lang.String s1)
           
 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.providers.CallStateNotation
initialiseListener
 
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

CallStateNotationUml

public CallStateNotationUml(java.lang.Object callState)
The constructor.

Parameters:
callState - the UML CallState
Method Detail

parse

public void parse(java.lang.Object modelElement,
                  java.lang.String text)
Description copied from class: NotationProvider
Parses the given text, and adapts the modelElement and maybe related elements accordingly.

Specified by:
parse in class NotationProvider
Parameters:
modelElement - the modelelement to adapt
text - the string given by the user to be parsed to adapt the model

parseCallState

protected java.lang.Object parseCallState(java.lang.Object callState,
                                          java.lang.String s1)
                                   throws java.text.ParseException
Throws:
java.text.ParseException

getParsingHelp

public java.lang.String getParsingHelp()
Specified by:
getParsingHelp in class NotationProvider
Returns:
a i18 key that represents a help string giving an explanation to the user of the syntax

toString

public java.lang.String toString(java.lang.Object modelElement,
                                 NotationSettings settings)
Description copied from class: NotationProvider
Generate a string representation for the given model element.

Specified by:
toString in class NotationProvider
Parameters:
modelElement - the base UML element
settings - settings that control rendering of the text
Returns:
the string written in the correct notation


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook