org.argouml.notation.providers.uml
Class ExtensionPointNotationUml

java.lang.Object
  extended by org.argouml.notation.NotationProvider
      extended by org.argouml.notation.providers.ExtensionPointNotation
          extended by org.argouml.notation.providers.uml.ExtensionPointNotationUml

public class ExtensionPointNotationUml
extends ExtensionPointNotation

The notation for an extension point for UML.


Constructor Summary
ExtensionPointNotationUml(java.lang.Object ep)
          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.
 void parseExtensionPointFig(java.lang.Object ep, java.lang.String text)
          Parse an extension point.
 java.lang.String toString(java.lang.Object modelElement, NotationSettings settings)
          Generate the text for an extension point.
 
Methods inherited from class org.argouml.notation.NotationProvider
addElementListener, addElementListener, addElementListener, cleanListener, formatNameList, formatNameList, initialiseListener, removeAllElementListeners, removeElementListener, updateListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionPointNotationUml

public ExtensionPointNotationUml(java.lang.Object ep)
The constructor.

Parameters:
ep - the represented Extension Point
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

parseExtensionPointFig

public void parseExtensionPointFig(java.lang.Object ep,
                                   java.lang.String text)
Parse an extension point.

The syntax is "name: location", "name:", "location" or "". The fields of the extension point are updated appropriately.

Parameters:
ep - The extension point concerned
text - The text to parse

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)
Generate the text for an extension point.

The representation is "name: location". The "name: " is omitted if there is no name given.

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