|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.notation.NotationProvider
org.argouml.notation.providers.EnumerationLiteralNotation
org.argouml.notation.providers.uml.EnumerationLiteralNotationUml
public class EnumerationLiteralNotationUml
The notation for an Enumeration Literal.
The supported notation is:
[ "<<" stereotype ">>" ] name [ ";" name ]*
This means:As explained in issue 5000, the real implemented BNF is something like:
["<<" stereotype ["," stereotype]* ">>"] name [ ";" ["<<" stereotype ["," stereotype]* ">>"] name]*
| Constructor Summary | |
|---|---|
EnumerationLiteralNotationUml(java.lang.Object enumLiteral)
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 void |
parseEnumerationLiteral(java.lang.String text,
java.lang.Object literal)
|
protected void |
parseEnumerationLiteralFig(java.lang.Object enumeration,
java.lang.Object literal,
java.lang.String text)
Parse a string representing one or more ";" separated enumeration literals. |
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.EnumerationLiteralNotation |
|---|
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 |
|---|
public EnumerationLiteralNotationUml(java.lang.Object enumLiteral)
enumLiteral - the UML element| Method Detail |
|---|
public java.lang.String getParsingHelp()
getParsingHelp in class NotationProvider
public void parse(java.lang.Object modelElement,
java.lang.String text)
NotationProvider
parse in class NotationProvidermodelElement - the modelelement to adapttext - the string given by the user to be parsed
to adapt the model
protected void parseEnumerationLiteralFig(java.lang.Object enumeration,
java.lang.Object literal,
java.lang.String text)
throws java.text.ParseException
enumeration - the enumeration that the literal belongs toliteral - the literal on which the editing will happentext - the string to parse
java.text.ParseException - for invalid input - so that the right
message may be shown to the user
protected void parseEnumerationLiteral(java.lang.String text,
java.lang.Object literal)
throws java.text.ParseException
java.text.ParseException
public java.lang.String toString(java.lang.Object modelElement,
NotationSettings settings)
NotationProvider
toString in class NotationProvidermodelElement - the base UML elementsettings - settings that control rendering of the text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |