|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.application.api.Notation
Provides centralized methods dealing with notation.
Field Summary | |
---|---|
static Logger |
cat
Deprecated. in 0.15.3 public access - will become private |
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 NotationName |
NOTATION_ARGO
The name of the default Argo notation. |
private static boolean |
reportedNotationProblem
|
private static Notation |
SINGLETON
|
Constructor Summary | |
---|---|
private |
Notation()
|
Method Summary | |
---|---|
void |
finalize()
Remove the notation change listener. |
static NotationName |
findNotation(java.lang.String s)
|
static java.lang.String |
generate(NotationContext ctx,
java.lang.Object o)
|
static java.lang.String |
generate(NotationContext ctx,
java.lang.Object o,
boolean documented)
General purpose static generator for any object that wishes to set the documented flag. |
static java.lang.String |
generate(NotationName nn,
java.lang.Object o)
|
static java.lang.String |
generate(NotationName nn,
java.lang.Object o,
boolean documented)
General purpose static generator for any object that wishes to set the documented flag. |
static java.lang.String |
generateAction(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateAction(NotationName notation,
java.lang.Object m)
|
static java.lang.String |
generateAssociation(NotationContext ctx,
java.lang.Object a)
|
protected java.lang.String |
generateAssociation(NotationName notation,
java.lang.Object a)
|
static java.lang.String |
generateAssociationEnd(NotationContext ctx,
java.lang.Object ae)
|
protected java.lang.String |
generateAssociationEnd(NotationName notation,
java.lang.Object ae)
|
static java.lang.String |
generateAssociationRole(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateAssociationRole(NotationName notation,
java.lang.Object m)
|
static java.lang.String |
generateAttribute(NotationContext ctx,
java.lang.Object attr)
|
static java.lang.String |
generateAttribute(NotationContext ctx,
java.lang.Object attr,
boolean documented)
|
protected java.lang.String |
generateAttribute(NotationName notation,
java.lang.Object attr,
boolean documented)
|
static java.lang.String |
generateClassifier(NotationContext ctx,
java.lang.Object cls)
|
protected java.lang.String |
generateClassifier(NotationName notation,
java.lang.Object cls)
|
static java.lang.String |
generateClassifierRef(NotationContext ctx,
java.lang.Object cls)
|
protected java.lang.String |
generateClassifierRef(NotationName notation,
java.lang.Object m)
|
protected java.lang.String |
generateExpression(NotationName notation,
java.lang.Object expr)
|
static java.lang.String |
generateExtensionPoint(NotationContext ctx,
java.lang.Object ep)
Static accessor for extension point generation. |
protected java.lang.String |
generateExtensionPoint(NotationName notation,
java.lang.Object ep)
General accessor for an extension point. |
static java.lang.String |
generateGuard(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateGuard(NotationName notation,
java.lang.Object m)
|
static java.lang.String |
generateMessage(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateMessage(NotationName notation,
java.lang.Object m)
|
static java.lang.String |
generateMultiplicity(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateMultiplicity(NotationName notation,
java.lang.Object m)
|
protected java.lang.String |
generateName(NotationName notation,
java.lang.String name)
|
static java.lang.String |
generateOperation(NotationContext ctx,
java.lang.Object op)
|
static java.lang.String |
generateOperation(NotationContext ctx,
java.lang.Object op,
boolean documented)
|
protected java.lang.String |
generateOperation(NotationName notation,
java.lang.Object op,
boolean documented)
|
static java.lang.String |
generatePackage(NotationContext ctx,
java.lang.Object p)
|
protected java.lang.String |
generatePackage(NotationName notation,
java.lang.Object pkg)
|
static java.lang.String |
generateParameter(NotationContext ctx,
java.lang.Object param)
|
protected java.lang.String |
generateParameter(NotationName notation,
java.lang.Object param)
|
static java.lang.String |
generateState(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateState(NotationName notation,
java.lang.Object m)
|
static java.lang.String |
generateStateBody(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateStateBody(NotationName notation,
java.lang.Object stt)
|
static java.lang.String |
generateStereotype(NotationContext ctx,
java.lang.Object s)
|
protected java.lang.String |
generateStereotype(NotationName notation,
java.lang.Object s)
|
static java.lang.String |
generateTaggedValue(NotationContext ctx,
java.lang.Object s)
|
protected java.lang.String |
generateTaggedValue(NotationName notation,
java.lang.Object s)
|
static java.lang.String |
generateTransition(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateTransition(NotationName notation,
java.lang.Object m)
|
static java.lang.String |
generateVisibility(NotationContext ctx,
java.lang.Object m)
|
protected java.lang.String |
generateVisibility(NotationName notation,
java.lang.Object m)
|
static java.util.ArrayList |
getAvailableNotations()
List of available notations. |
static NotationName |
getDefaultNotation()
|
NotationProvider |
getDefaultProvider()
|
static int |
getDefaultShadowWidth()
get the default width for Fig shadows. |
static Notation |
getInstance()
|
static NotationName |
getNotation(NotationContext context)
|
private NotationProvider |
getProvider(NotationName notation)
|
static boolean |
getUseGuillemots()
|
static NotationName |
makeNotation(java.lang.String k1,
java.lang.String k2,
javax.swing.Icon icon)
Create a versioned notation name with an icon. |
void |
propertyChange(java.beans.PropertyChangeEvent pce)
Called after the notation default property gets changed. |
static void |
setDefaultNotation(NotationName n)
|
static void |
setDefaultShadowWidth(int width)
set the default width for Fig Shadow. |
static void |
setUseGuillemots(boolean useGuillemots)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Logger cat
private static NotationName NOTATION_ARGO
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 Notation SINGLETON
private static boolean reportedNotationProblem
Constructor Detail |
private Notation()
Method Detail |
public void finalize()
finalize
should never happen, but play it safe.
finalize
in class java.lang.Object
private NotationProvider getProvider(NotationName notation)
public static void setDefaultNotation(NotationName n)
public static NotationName findNotation(java.lang.String s)
public static NotationName getDefaultNotation()
protected java.lang.String generateExtensionPoint(NotationName notation, java.lang.Object ep)
General accessor for an extension point.
notation
- Name of the notation to be used.ep
- The extension point to generate for.
protected java.lang.String generateOperation(NotationName notation, java.lang.Object op, boolean documented)
protected java.lang.String generateAttribute(NotationName notation, java.lang.Object attr, boolean documented)
protected java.lang.String generateParameter(NotationName notation, java.lang.Object param)
protected java.lang.String generateName(NotationName notation, java.lang.String name)
protected java.lang.String generatePackage(NotationName notation, java.lang.Object pkg)
protected java.lang.String generateExpression(NotationName notation, java.lang.Object expr)
protected java.lang.String generateClassifier(NotationName notation, java.lang.Object cls)
protected java.lang.String generateStereotype(NotationName notation, java.lang.Object s)
protected java.lang.String generateTaggedValue(NotationName notation, java.lang.Object s)
protected java.lang.String generateAssociation(NotationName notation, java.lang.Object a)
protected java.lang.String generateAssociationEnd(NotationName notation, java.lang.Object ae)
protected java.lang.String generateMultiplicity(NotationName notation, java.lang.Object m)
protected java.lang.String generateState(NotationName notation, java.lang.Object m)
protected java.lang.String generateStateBody(NotationName notation, java.lang.Object stt)
protected java.lang.String generateTransition(NotationName notation, java.lang.Object m)
protected java.lang.String generateVisibility(NotationName notation, java.lang.Object m)
protected java.lang.String generateAction(NotationName notation, java.lang.Object m)
protected java.lang.String generateGuard(NotationName notation, java.lang.Object m)
protected java.lang.String generateMessage(NotationName notation, java.lang.Object m)
protected java.lang.String generateClassifierRef(NotationName notation, java.lang.Object m)
protected java.lang.String generateAssociationRole(NotationName notation, java.lang.Object m)
public static Notation getInstance()
public static java.lang.String generateExtensionPoint(NotationContext ctx, java.lang.Object ep)
Static accessor for extension point generation. Invokes our protected accessor from the singleton instance with the "documented" flag set false.
ctx
- Context used to identify the notationep
- The extension point to generate for.
public static java.lang.String generateOperation(NotationContext ctx, java.lang.Object op)
public static java.lang.String generateOperation(NotationContext ctx, java.lang.Object op, boolean documented)
public static java.lang.String generateAttribute(NotationContext ctx, java.lang.Object attr)
public static java.lang.String generateAttribute(NotationContext ctx, java.lang.Object attr, boolean documented)
public static java.lang.String generateParameter(NotationContext ctx, java.lang.Object param)
public static java.lang.String generatePackage(NotationContext ctx, java.lang.Object p)
public static java.lang.String generateClassifier(NotationContext ctx, java.lang.Object cls)
public static java.lang.String generateStereotype(NotationContext ctx, java.lang.Object s)
public static java.lang.String generateTaggedValue(NotationContext ctx, java.lang.Object s)
public static java.lang.String generateAssociation(NotationContext ctx, java.lang.Object a)
public static java.lang.String generateAssociationEnd(NotationContext ctx, java.lang.Object ae)
public static java.lang.String generateMultiplicity(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateState(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateStateBody(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateTransition(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateVisibility(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateAction(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateGuard(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateMessage(NotationContext ctx, java.lang.Object m)
public static java.lang.String generateClassifierRef(NotationContext ctx, java.lang.Object cls)
public static java.lang.String generateAssociationRole(NotationContext ctx, java.lang.Object m)
public static java.lang.String generate(NotationContext ctx, java.lang.Object o, boolean documented)
General purpose static generator for any object that wishes to set the documented flag.
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
MOperation
and MAttribute
.
public static java.lang.String generate(NotationName nn, java.lang.Object o, boolean documented)
General purpose static generator for any object that wishes to set the documented flag.
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
MOperation
and MAttribute
.
public static java.lang.String generate(NotationContext ctx, java.lang.Object o)
public static java.lang.String generate(NotationName nn, java.lang.Object o)
public static NotationName getNotation(NotationContext context)
public void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange
in interface java.beans.PropertyChangeListener
public NotationProvider getDefaultProvider()
public static java.util.ArrayList getAvailableNotations()
public static NotationName makeNotation(java.lang.String k1, java.lang.String k2, javax.swing.Icon icon)
public static boolean getUseGuillemots()
public static void setUseGuillemots(boolean useGuillemots)
public static int getDefaultShadowWidth()
public static void setDefaultShadowWidth(int width)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |