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.
Field Summary |
protected static org.apache.log4j.Category |
cat
|
Method Summary |
protected java.lang.String |
defaultAssocEndName(ru.novosoft.uml.foundation.core.MAssociationEnd assocEnd,
ru.novosoft.uml.foundation.core.MNamespace namespace)
|
protected java.lang.String |
defaultAssocName(ru.novosoft.uml.foundation.core.MAssociation assoc,
ru.novosoft.uml.foundation.core.MNamespace ns)
|
protected java.lang.String |
defaultGeneralizationName(ru.novosoft.uml.foundation.core.MGeneralization gen,
ru.novosoft.uml.foundation.core.MNamespace ns)
|
protected java.lang.String |
defaultName(ru.novosoft.uml.foundation.core.MModelElement element,
ru.novosoft.uml.foundation.core.MNamespace namespace)
|
java.lang.String |
formatCollection(java.util.Iterator iter,
ru.novosoft.uml.foundation.core.MNamespace namespace)
This method produces a string the represents the collection
of model elements in the context of the specified namespace. |
java.lang.String |
formatElement(ru.novosoft.uml.foundation.core.MModelElement element,
ru.novosoft.uml.foundation.core.MNamespace 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()
|
ru.novosoft.uml.model_management.MModel |
getProfileModel()
|
static ru.novosoft.uml.model_management.MModel |
loadProfileModel()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
protected static org.apache.log4j.Category cat
getInstance
public static ProfileJava getInstance()
formatElement
public java.lang.String formatElement(ru.novosoft.uml.foundation.core.MModelElement element,
ru.novosoft.uml.foundation.core.MNamespace 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(ru.novosoft.uml.foundation.core.MAssociationEnd assocEnd,
ru.novosoft.uml.foundation.core.MNamespace namespace)
defaultAssocName
protected java.lang.String defaultAssocName(ru.novosoft.uml.foundation.core.MAssociation assoc,
ru.novosoft.uml.foundation.core.MNamespace ns)
defaultGeneralizationName
protected java.lang.String defaultGeneralizationName(ru.novosoft.uml.foundation.core.MGeneralization gen,
ru.novosoft.uml.foundation.core.MNamespace ns)
defaultName
protected java.lang.String defaultName(ru.novosoft.uml.foundation.core.MModelElement element,
ru.novosoft.uml.foundation.core.MNamespace namespace)
getPathSeparator
protected java.lang.String getPathSeparator()
getElementSeparator
protected java.lang.String getElementSeparator()
getEmptyCollection
protected java.lang.String getEmptyCollection()
formatCollection
public java.lang.String formatCollection(java.util.Iterator iter,
ru.novosoft.uml.foundation.core.MNamespace 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 ru.novosoft.uml.model_management.MModel getProfileModel()
- Specified by:
getProfileModel
in class Profile
loadProfileModel
public static ru.novosoft.uml.model_management.MModel loadProfileModel()