|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.notation.providers.uml.NotationUtilityUml
public final class NotationUtilityUml
This class is a utility for the UML notation.
| Constructor Summary | |
|---|---|
NotationUtilityUml()
The constructor. |
|
| Method Summary | |
|---|---|
static java.lang.String |
formatStereotype(java.lang.String name,
boolean useGuillemets)
Create a string representation of a stereotype, keyword or comma separate list of names. |
static java.lang.String |
generateActionSequence(java.lang.Object a)
Generate a textual representation of the given Action or ActionSequence according the UML standard notation. |
static java.lang.String |
generateMultiplicity(java.lang.Object element,
boolean showSingularMultiplicity)
Generate the text of a multiplicity. |
protected static java.lang.String |
generatePath(java.lang.Object modelElement)
|
static java.lang.String |
generateStereotype(java.lang.Object st,
boolean useGuillemets)
Generate the text for one or more stereotype(s). |
static java.lang.String |
generateVisibility2(java.lang.Object o)
Returns a visibility String either for a VisibilityKind or a model element. |
void |
init()
|
static boolean |
isValue(java.lang.String key,
java.util.Map map)
Utility function to determine the presence of a key. |
protected static void |
parseModelElement(java.lang.Object me,
java.lang.String text)
Parse a string on the format: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotationUtilityUml()
| Method Detail |
|---|
public void init()
protected static void parseModelElement(java.lang.Object me,
java.lang.String text)
throws java.text.ParseException
[ << stereotype >>] [+|-|#|~] [full_pathname ::] [name]
me - The ModelElement text describes.text - A String on the above format.
java.text.ParseException - when it detects an error in the attribute string. See also
ParseError.getErrorOffset().
public static boolean isValue(java.lang.String key,
java.util.Map map)
key - the string for the keymap - the Map to check for the presence
and value of the key
public static java.lang.String generateVisibility2(java.lang.Object o)
o - a modelelement or a visibilitykind
protected static java.lang.String generatePath(java.lang.Object modelElement)
modelElement - the UML element to generate for
public static java.lang.String generateStereotype(java.lang.Object st,
boolean useGuillemets)
st - One of:
useGuillemets - true if Unicode double angle bracket quote
characters should be used.
public static java.lang.String formatStereotype(java.lang.String name,
boolean useGuillemets)
useGuillemets.
name - the name of the stereotypeuseGuillemets - true if Unicode double angle bracket quote
characters should be used.
public static java.lang.String generateMultiplicity(java.lang.Object element,
boolean showSingularMultiplicity)
element - a multiplicity or an element which has a multiplicityshowSingularMultiplicity - if false return the empty string for 1..1
multiplicities.
public static java.lang.String generateActionSequence(java.lang.Object a)
a - the UML Action or ActionSequence
|
||||||||||
| 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 |