org.argouml.uml.notation.uml
Class ModelElementNameNotationUml
java.lang.Object
org.argouml.uml.notation.ValueHandler
org.argouml.uml.notation.ModelElementNameNotation
org.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]
ModelElementNameNotationUml
public ModelElementNameNotationUml(Object name)
- The constructor.
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().