|
||||||||||
| 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.AttributeNotation
org.argouml.notation.providers.uml.AttributeNotationUml
public class AttributeNotationUml
The notation for an attribute for UML.
| Constructor Summary | |
|---|---|
protected |
AttributeNotationUml()
The constructor. |
| Method Summary | |
|---|---|
static AttributeNotationUml |
getInstance()
|
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 |
parseAttribute(java.lang.String text,
java.lang.Object attribute)
Parse a line on the form: |
void |
parseAttributeFig(java.lang.Object classifier,
java.lang.Object attribute,
java.lang.String text)
Parse a string representing one ore more ';' separated attributes. |
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.AttributeNotation |
|---|
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 |
|---|
protected AttributeNotationUml()
| Method Detail |
|---|
public static final AttributeNotationUml getInstance()
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
public void parseAttributeFig(java.lang.Object classifier,
java.lang.Object attribute,
java.lang.String text)
throws java.text.ParseException
classifier - Classifier The classifier the attribute(s) belong toattribute - Attribute The attribute on which the editing happenedtext - The string to parse
java.text.ParseException - for invalid input
protected void parseAttribute(java.lang.String text,
java.lang.Object attribute)
throws java.text.ParseException
visibility name [: type-expression] [= initial-value]
{[name] [= [value]] [, ...]}
This syntax is compatible with the UML 1.3 spec. (formerly: visibility name [multiplicity] : type-expression = initial-value {property-string} ) (2nd formerly: [visibility] [keywords] type name [= init] [;] )
text - The String to parse.attribute - The attribute to modify to comply
with the instructions 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)
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 |