|
||||||||||
| 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.ClassifierRoleNotation
org.argouml.notation.providers.uml.ClassifierRoleNotationUml
public class ClassifierRoleNotationUml
The UML notation for a ClassifierRole.
The following is supported:
baselist := [base] [, base]* classifierRole := [name] [/ role] [: baselist]The
role and baselist can be given in
any order.
The name is the Instance name, not used for a ClassifierRole.
This syntax is compatible with the UML 1.3 and 1.4 specification.
| Constructor Summary | |
|---|---|
ClassifierRoleNotationUml(java.lang.Object classifierRole)
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 java.lang.Object |
parseClassifierRole(java.lang.Object cls,
java.lang.String s)
Parses a ClassifierRole represented by the following line of the format: |
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.ClassifierRoleNotation |
|---|
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 ClassifierRoleNotationUml(java.lang.Object classifierRole)
classifierRole - the UML ClassifierRole| 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 java.lang.Object parseClassifierRole(java.lang.Object cls,
java.lang.String s)
throws java.text.ParseException
baselist := [base] [, base]* classifierRole := [name] [/ role] [: baselist]
role and baselist can be given in
any order.This syntax is compatible with the UML 1.3 specification. (formerly: "name: base" )
cls - the classifier role to apply any changes tos - the String to parse
java.text.ParseException - when it detects an error in the attribute string.
See also ParseError.getErrorOffset().
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 |