org.argouml.uml
Class ProfileJava
java.lang.Object
|
+--org.argouml.uml.Profile
|
+--org.argouml.uml.ProfileJava
- public class ProfileJava
- extends Profile
This class implements the abstract class Profile for use in modelling
Java language projects. Eventually, this class may be replaced by
a configurable profile.
Method Summary |
private void |
buildPath(java.lang.StringBuffer buffer,
java.lang.Object element,
java.lang.String pathSep)
|
protected java.lang.String |
defaultAssocEndName(java.lang.Object assocEnd,
java.lang.Object namespace)
|
protected java.lang.String |
defaultAssocName(java.lang.Object assoc,
java.lang.Object ns)
|
protected java.lang.String |
defaultGeneralizationName(java.lang.Object gen,
java.lang.Object namespace)
|
protected java.lang.String |
defaultName(java.lang.Object element,
java.lang.Object namespace)
|
java.lang.String |
formatCollection(java.util.Iterator iter,
java.lang.Object namespace)
This method produces a string the represents the collection
of model elements in the context of the specified namespace. |
java.lang.String |
formatElement(java.lang.Object element,
java.lang.Object namespace)
This method produces a string that represents the specific
model element in the context of the specified namespace. |
protected java.lang.String |
getElementSeparator()
|
protected java.lang.String |
getEmptyCollection()
|
static ProfileJava |
getInstance()
|
protected java.lang.String |
getPathSeparator()
|
java.lang.Object |
getProfileModel()
|
static java.lang.Object |
loadProfileModel()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
protected static Logger cat
_instance
private static ProfileJava _instance
_defaultModel
java.lang.Object _defaultModel
ProfileJava
private ProfileJava()
getInstance
public static ProfileJava getInstance()
formatElement
public java.lang.String formatElement(java.lang.Object element,
java.lang.Object namespace)
- Description copied from class:
Profile
- This method produces a string that represents the specific
model element in the context of the specified namespace.
- Specified by:
formatElement
in class Profile
- Parameters:
element
- element to represent.namespace
- context namespace (may be null).
- Returns:
- a string representing the model element
defaultAssocEndName
protected java.lang.String defaultAssocEndName(java.lang.Object assocEnd,
java.lang.Object namespace)
defaultAssocName
protected java.lang.String defaultAssocName(java.lang.Object assoc,
java.lang.Object ns)
defaultGeneralizationName
protected java.lang.String defaultGeneralizationName(java.lang.Object gen,
java.lang.Object namespace)
defaultName
protected java.lang.String defaultName(java.lang.Object element,
java.lang.Object namespace)
getPathSeparator
protected java.lang.String getPathSeparator()
buildPath
private void buildPath(java.lang.StringBuffer buffer,
java.lang.Object element,
java.lang.String pathSep)
getElementSeparator
protected java.lang.String getElementSeparator()
getEmptyCollection
protected java.lang.String getEmptyCollection()
formatCollection
public java.lang.String formatCollection(java.util.Iterator iter,
java.lang.Object namespace)
- Description copied from class:
Profile
- This method produces a string the represents the collection
of model elements in the context of the specified namespace.
- Specified by:
formatCollection
in class Profile
- Parameters:
iter
- iterator over collectionnamespace
- context namespace (may be null).
- Returns:
- a string representing the collection
getProfileModel
public java.lang.Object getProfileModel()
- Specified by:
getProfileModel
in class Profile
loadProfileModel
public static java.lang.Object loadProfileModel()