|
||||||||||
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.OperationNotation
org.argouml.notation.providers.uml.OperationNotationUml
public class OperationNotationUml
The UML notation for an Operation or a Reception.
Constructor Summary | |
---|---|
OperationNotationUml(java.lang.Object operation)
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. |
void |
parseOperation(java.lang.String s,
java.lang.Object op)
Parse a line of text and aligns the Operation to the specification given. |
void |
parseOperationFig(java.lang.Object classifier,
java.lang.Object operation,
java.lang.String text)
Parse a string representing one ore more ';' separated operations. |
java.lang.String |
toString(java.lang.Object modelElement,
NotationSettings settings)
Generate an operation according to the UML notation: |
Methods inherited from class org.argouml.notation.providers.OperationNotation |
---|
initialiseListener, updateListener |
Methods inherited from class org.argouml.notation.NotationProvider |
---|
addElementListener, addElementListener, addElementListener, cleanListener, formatNameList, formatNameList, removeAllElementListeners, removeElementListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationNotationUml(java.lang.Object operation)
operation
- the operation that is representedMethod Detail |
---|
public void parse(java.lang.Object modelElement, java.lang.String text)
NotationProvider
parse
in class NotationProvider
modelElement
- the modelelement to adapttext
- the string given by the user to be parsed
to adapt the modelpublic void parseOperationFig(java.lang.Object classifier, java.lang.Object operation, java.lang.String text) throws java.text.ParseException
classifier
- Classifier The classifier the operation(s) belong tooperation
- Operation The operation on which the editing happenedtext
- The string to parse
java.text.ParseException
- for invalid inputpublic void parseOperation(java.lang.String s, java.lang.Object op) throws java.text.ParseException
Stereotypes can be given between any element in the line on the form: <<stereotype1,stereotype2,stereotype3>>
The following properties are recognized to have special meaning: abstract, concurrency, concurrent, guarded, leaf, query, root and sequential.
This syntax is compatible with the UML 1.3 spec.
(formerly visibility name (parameter list) : return-type-expression {property-string} ) (formerly 2nd: [visibility] [keywords] returntype name(params)[;] )
s
- The String to parse.op
- The Operation to adjust to the specification in s.
java.text.ParseException
- when it detects an error in the attribute string. See also
ParseError.getErrorOffset().public java.lang.String getParsingHelp()
getParsingHelp
in class NotationProvider
public java.lang.String toString(java.lang.Object modelElement, NotationSettings settings)
stereotype visibility name (parameter-list) : return-type-expression {property-string}For the return-type-expression: only the types of the return parameters are shown. Depending on settings in Notation, visibility and properties are shown/not shown.
toString
in class NotationProvider
modelElement
- UML Operation elementsettings
- notation settings
NotationProvider.toString(java.lang.Object, org.argouml.notation.NotationSettings)
|
||||||||||
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 |