|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.application.api.Notation
Provides centralized methods dealing with notation.
Field Summary | |
static ConfigurationKey |
KEY_DEFAULT_NOTATION
The configuration key for the preferred notation. |
static ConfigurationKey |
KEY_DEFAULT_SHADOW_WIDTH
Default value for the shadow size of classes, interfaces etc. |
static ConfigurationKey |
KEY_SHOW_INITIAL_VALUE
Indicates if the user wants to see the initial value. |
static ConfigurationKey |
KEY_SHOW_MULTIPLICITY
Indicates if the user wants to see multiplicity in attributes and classes. |
static ConfigurationKey |
KEY_SHOW_PROPERTIES
Indicates if the user wants to see the properties (everything between braces), that is for example the concurrency. |
static ConfigurationKey |
KEY_SHOW_STEREOTYPES
The configuration key that indicates whether to show stereotypes in the navigation panel. |
static ConfigurationKey |
KEY_SHOW_VISIBILITY
Indicates if the user wants to see visibility signs (public, private, protected or # + -). |
static ConfigurationKey |
KEY_UML_NOTATION_ONLY
Indicates if the user only wants to see UML notation. |
static ConfigurationKey |
KEY_USE_GUILLEMOTS
The configuration key that indicates whether to use guillemots or greater/lessthan characters in stereotypes. |
private static Logger |
LOG
Define a static log4j category variable for ArgoUML notation. |
private static NotationName |
notationArgo
The name of the default Argo notation. |
private static Notation |
SINGLETON
|
Constructor Summary | |
private |
Notation()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final Logger LOG
private static NotationName notationArgo
public static final ConfigurationKey KEY_DEFAULT_NOTATION
public static final ConfigurationKey KEY_SHOW_STEREOTYPES
public static final ConfigurationKey KEY_USE_GUILLEMOTS
public static final ConfigurationKey KEY_UML_NOTATION_ONLY
public static final ConfigurationKey KEY_SHOW_VISIBILITY
public static final ConfigurationKey KEY_SHOW_MULTIPLICITY
public static final ConfigurationKey KEY_SHOW_INITIAL_VALUE
public static final ConfigurationKey KEY_SHOW_PROPERTIES
public static final ConfigurationKey KEY_DEFAULT_SHADOW_WIDTH
private static final Notation SINGLETON
Constructor Detail |
private Notation()
Method Detail |
public void finalize()
finalize
should never happen, but play it safe.
private static NotationProvider2 getProvider(NotationName notation)
public static void setDefaultNotation(NotationName n)
n
- the NotationName that will become defaultpublic static NotationName findNotation(String s)
s
- the String
public static NotationName getDefaultNotation()
protected static String generateExtensionPoint(NotationName notation, Object ep)
notation
- Name of the notation to be used.ep
- The extension point to generate for.
private static String generateOperation(NotationName notation, Object op, boolean documented)
private static String generateAttribute(NotationName notation, Object attr, boolean documented)
private static String generateParameter(NotationName notation, Object param)
private static String generateName(NotationName notation, String name)
private static String generatePackage(NotationName notation, Object pkg)
private static String generateExpression(NotationName notation, Object expr)
private static String generateClassifier(NotationName notation, Object cls)
private static String generateStereotype(NotationName notation, Object s)
private static String generateTaggedValue(NotationName notation, Object s)
private static String generateAssociation(NotationName notation, Object a)
private static String generateAssociationEnd(NotationName notation, Object ae)
private static String generateMultiplicity(NotationName notation, Object m)
private static String generateState(NotationName notation, Object m)
private static String generateSubmachine(NotationName notation, Object m)
private static String generateObjectFlowState(NotationName notation, Object m)
private static String generateClassifierInState(NotationName notation, Object m)
private static String generateStateBody(NotationName notation, Object stt)
private static String generateTransition(NotationName notation, Object m)
private static String generateVisibility(NotationName notation, Object m)
private static String generateAction(NotationName notation, Object m)
private static String generateActionState(NotationName notation, Object m)
private static String generateGuard(NotationName notation, Object m)
private static String generateMessage(NotationName notation, Object m)
private static String generateClassifierRef(NotationName notation, Object m)
private static String generateAssociationRole(NotationName notation, Object m)
public static Notation getInstance()
public static String generateExtensionPoint(NotationContext ctx, Object ep)
ctx
- Context used to identify the notationep
- The extension point to generate for.
public static String generateOperation(NotationContext ctx, Object op)
ctx
- Context used to identify the notationop
- The operation to generate for.
public static String generateOperation(NotationContext ctx, Object op, boolean documented)
ctx
- Context used to identify the notationop
- The operation to generate for.documented
- true
if documentation shall be generated.
public static String generateAttribute(NotationContext ctx, Object attr)
ctx
- Context used to identify the notationattr
- The attribute to generate for.
public static String generateAttribute(NotationContext ctx, Object attr, boolean documented)
ctx
- Context used to identify the notationattr
- The attribute to generate for.documented
- true
if documentation shall be generated.
public static String generateParameter(NotationContext ctx, Object param)
ctx
- Context used to identify the notationparam
- The parameter to generate for.
public static String generatePackage(NotationContext ctx, Object p)
ctx
- Context used to identify the notationp
- The UML element to generate for.
public static String generateClassifier(NotationContext ctx, Object cls)
ctx
- Context used to identify the notationcls
- The UML element to generate for.
public static String generateStereotype(NotationContext ctx, Object s)
ctx
- Context used to identify the notations
- The UML element to generate for.
public static String generateTaggedValue(NotationContext ctx, Object s)
ctx
- Context used to identify the notations
- The UML element to generate for.
public static String generateAssociation(NotationContext ctx, Object a)
ctx
- Context used to identify the notationa
- The UML element to generate for.
public static String generateAssociationEnd(NotationContext ctx, Object ae)
ctx
- Context used to identify the notationae
- The UML element to generate for.
public static String generateMultiplicity(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateState(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateStateBody(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateTransition(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateVisibility(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateAction(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateGuard(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateMessage(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generateClassifierRef(NotationContext ctx, Object cls)
ctx
- Context used to identify the notationcls
- The UML element to generate for.
public static String generateAssociationRole(NotationContext ctx, Object m)
ctx
- Context used to identify the notationm
- The UML element to generate for.
public static String generate(NotationContext ctx, Object o, boolean documented)
Uses the class of the object to determine which method to invoke. Only actually looks for MOperation and MAttribute. All others invoke the simpler version with no documented flag, so taking the default version.
ctx
- The context to look up the notation generator.o
- The object to generate.documented
- A flag of unknown meaning. Only has any effect for
Operations and Attributes.
public static String generate(NotationName nn, Object o, boolean documented)
Uses the class of the object to determine which method to invoke. Only actually looks for MOperation and MAttribute. All others invoke the simpler version with no documented flag, so taking the default version.
nn
- The notation name.o
- The object to generate.documented
- A flag of unknown meaning. Only has any effect for
Operations and Attributes.
public static String generate(NotationContext ctx, Object o)
ctx
- Context used to identify the notationo
- The UML element to generate for.
public static String generate(NotationName nn, Object o)
nn
- The NotationName to be used for the generationo
- The UML element to generate for.
public static NotationName getNotation(NotationContext context)
context
- the notation context
public void propertyChange(PropertyChangeEvent pce)
propertyChange
in interface PropertyChangeListener
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public static NotationProvider2 getDefaultProvider()
public static ArrayList getAvailableNotations()
public static NotationName makeNotation(String k1, String k2, Icon icon)
k1
- the name (?)k2
- the version (?)icon
- the icon
public static boolean getUseGuillemots()
true
if guillemots (« and ») are used
instead of << and >>.public static void setUseGuillemots(boolean useGuillemots)
useGuillemots
- true
if guillemots («
and ») shall be used instead of << and >>.public static int getDefaultShadowWidth()
public static void setDefaultShadowWidth(int width)
width
- the Fig shadow width
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |