org.argouml.uml.notation.uml
Class ModelElementNameNotationUml

java.lang.Object
  extended byorg.argouml.uml.notation.ValueHandler
      extended byorg.argouml.uml.notation.ModelElementNameNotation
          extended byorg.argouml.uml.notation.uml.ModelElementNameNotationUml
All Implemented Interfaces:
NotationProvider4

public class ModelElementNameNotationUml
extends ModelElementNameNotation

Handles the notation of the name of a modelelement in UML, ie a string on the format:

     [ << stereotype >>] [+|-|#] [name]
 


Field Summary
 
Fields inherited from class org.argouml.uml.notation.ModelElementNameNotation
myModelElement
 
Constructor Summary
ModelElementNameNotationUml(Object name)
          The constructor.
 
Method Summary
protected  String generatePath()
           
protected  String generateStereotypes()
           
protected  String generateVisibility()
           
 String getParsingHelp()
           
 String parse(String text)
          Parses a model element, ie reads a string that contains the stereotype, visibility and name, and assigns the properties to the passed MModelElement.
protected  void parseModelElement(Object me, String text)
           
 String toString()
           
 
Methods inherited from class org.argouml.uml.notation.ValueHandler
getValue, isValue, putValue, putValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelElementNameNotationUml

public ModelElementNameNotationUml(Object name)
The constructor.

Method Detail

parse

public String parse(String text)
Parses a model element, ie reads a string that contains the stereotype, visibility and name, and assigns the properties to the passed MModelElement.

Parameters:
text - the text given by the user to be parsed to adapt the model
Returns:
after parsing, the modelelement is generated again, to normalize the given text
See Also:
NotationProvider4.parse(java.lang.String)

getParsingHelp

public String getParsingHelp()
Returns:
a i18 key that represents a help string giving an explanation to the user of the syntax
See Also:
NotationProvider4.getParsingHelp()

toString

public String toString()
See Also:
Object.toString()

generateStereotypes

protected String generateStereotypes()

generatePath

protected String generatePath()
Returns:
a string which represents the path

generateVisibility

protected String generateVisibility()
Returns:
a string representing the visibility

parseModelElement

protected void parseModelElement(Object me,
                                 String text)
                          throws ParseException
Parameters:
me - The ModelElement text describes.
text - A String on the above format.
Throws:
ParseException - when it detects an error in the attribute string. See also ParseError.getErrorOffset().


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook