org.argouml.notation.providers.uml
Class MultiplicityNotationUml
java.lang.Object
org.argouml.notation.NotationProvider
org.argouml.notation.providers.MultiplicityNotation
org.argouml.notation.providers.uml.MultiplicityNotationUml
public class MultiplicityNotationUml
- extends MultiplicityNotation
The UML notation for a Multiplicity.
This NotationProvider is a bit special, in that it does not
generate for the given UML element, but for its multiplicity.
|
Method Summary |
java.lang.String |
getParsingHelp()
|
void |
parse(java.lang.Object multiplicityOwner,
java.lang.String text)
Parses the given text, and adapts the modelElement and
maybe related elements accordingly. |
protected java.lang.Object |
parseMultiplicity(java.lang.Object multiplicityOwner,
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiplicityNotationUml
public MultiplicityNotationUml(java.lang.Object multiplicityOwner)
- Parameters:
multiplicityOwner - the UML element to represent the multiplicity of
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
parse
public void parse(java.lang.Object multiplicityOwner,
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:
multiplicityOwner - the modelelement to adapttext - the string given by the user to be parsed
to adapt the model
parseMultiplicity
protected java.lang.Object parseMultiplicity(java.lang.Object multiplicityOwner,
java.lang.String s1)
throws java.text.ParseException
- Throws:
java.text.ParseException
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 elementsettings - settings that control rendering of the text
- Returns:
- the string written in the correct notation