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 Category cat
           
 
Method Summary
protected  java.lang.String defaultAssocEndName(MAssociationEnd assocEnd, MNamespace namespace)
           
protected  java.lang.String defaultAssocName(MAssociation assoc, MNamespace ns)
           
protected  java.lang.String defaultGeneralizationName(MGeneralization gen, MNamespace ns)
           
protected  java.lang.String defaultName(MModelElement element, MNamespace namespace)
           
 java.lang.String formatCollection(java.util.Iterator iter, 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(MModelElement element, 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()
           
 MModel getProfileModel()
           
static MModel loadProfileModel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static Category cat
Method Detail

getInstance

public static ProfileJava getInstance()

formatElement

public java.lang.String formatElement(MModelElement element,
                                      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(MAssociationEnd assocEnd,
                                               MNamespace namespace)

defaultAssocName

protected java.lang.String defaultAssocName(MAssociation assoc,
                                            MNamespace ns)

defaultGeneralizationName

protected java.lang.String defaultGeneralizationName(MGeneralization gen,
                                                     MNamespace ns)

defaultName

protected java.lang.String defaultName(MModelElement element,
                                       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,
                                         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 collection
namespace - context namespace (may be null).
Returns:
a string representing the collection

getProfileModel

public MModel getProfileModel()
Specified by:
getProfileModel in class Profile

loadProfileModel

public static MModel loadProfileModel()


ArgoUML © 1996-2003 (20040229)ArgoUML Project HomeArgoUML Cookbook