UML

org.topcased.modeler.uml.classdiagram
Class ClassCreationUtils

java.lang.Object
  extended by AbstractCreationUtils
      extended by org.topcased.modeler.uml.classdiagram.ClassCreationUtils

public class ClassCreationUtils
extends AbstractCreationUtils

This utility class allows to create a GraphElement associated with a Model Object

** Generated **

Constructor Summary
ClassCreationUtils(DiagramGraphConf diagramConf)
          Constructor
 
Method Summary
 GraphElement createGraphElement(EObject obj, java.lang.String presentation)
           
protected  GraphElement createGraphElementAssociation(org.eclipse.uml2.uml.Association element, java.lang.String presentation)
           
protected  GraphElement createGraphElementAssociationClass(org.eclipse.uml2.uml.AssociationClass element, java.lang.String presentation)
           
protected  GraphElement createGraphElementClass(org.eclipse.uml2.uml.Class element, java.lang.String presentation)
           
protected  GraphElement createGraphElementComment(org.eclipse.uml2.uml.Comment element, java.lang.String presentation)
           
protected  GraphElement createGraphElementDataType(org.eclipse.uml2.uml.DataType element, java.lang.String presentation)
           
protected  GraphElement createGraphElementDependency(org.eclipse.uml2.uml.Dependency element, java.lang.String presentation)
           
protected  GraphElement createGraphElementEnumeration(org.eclipse.uml2.uml.Enumeration element, java.lang.String presentation)
           
protected  GraphElement createGraphElementEnumerationLiteral(org.eclipse.uml2.uml.EnumerationLiteral element, java.lang.String presentation)
           
protected  GraphElement createGraphElementGeneralization(org.eclipse.uml2.uml.Generalization element, java.lang.String presentation)
           
protected  GraphElement createGraphElementInstanceSpecification(org.eclipse.uml2.uml.InstanceSpecification element, java.lang.String presentation)
           
protected  GraphElement createGraphElementInterface(org.eclipse.uml2.uml.Interface element, java.lang.String presentation)
           
protected  GraphElement createGraphElementInterfaceRealization(org.eclipse.uml2.uml.InterfaceRealization element, java.lang.String presentation)
           
protected  GraphElement createGraphElementOperation(org.eclipse.uml2.uml.Operation element, java.lang.String presentation)
           
protected  GraphElement createGraphElementPackage(org.eclipse.uml2.uml.Package element, java.lang.String presentation)
           
protected  GraphElement createGraphElementPackageImport(org.eclipse.uml2.uml.PackageImport element, java.lang.String presentation)
           
protected  GraphElement createGraphElementPackageMerge(org.eclipse.uml2.uml.PackageMerge element, java.lang.String presentation)
           
protected  GraphElement createGraphElementPrimitiveType(org.eclipse.uml2.uml.PrimitiveType element, java.lang.String presentation)
           
protected  GraphElement createGraphElementProperty(org.eclipse.uml2.uml.Property element, java.lang.String presentation)
           
protected  GraphElement createGraphElementSlot(org.eclipse.uml2.uml.Slot element, java.lang.String presentation)
           
protected  GraphElement createGraphElementUsage(org.eclipse.uml2.uml.Usage element, java.lang.String presentation)
           
 EObject createModelObject(EObject obj)
          Create the ModelObject with its initial children
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassCreationUtils

public ClassCreationUtils(DiagramGraphConf diagramConf)
Constructor

Parameters:
diagramConf - the Diagram Graphical Configuration
Method Detail

createGraphElement

public GraphElement createGraphElement(EObject obj,
                                       java.lang.String presentation)

See Also:
org.topcased.modeler.editor.ICreationUtils#createGraphElement(org.eclipse.emf.ecore.EObject, java.lang.String)
** Generated **

createGraphElementPackage

protected GraphElement createGraphElementPackage(org.eclipse.uml2.uml.Package element,
                                                 java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementClass

protected GraphElement createGraphElementClass(org.eclipse.uml2.uml.Class element,
                                               java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **
NOT

createGraphElementDataType

protected GraphElement createGraphElementDataType(org.eclipse.uml2.uml.DataType element,
                                                  java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **
NOT

createGraphElementInterface

protected GraphElement createGraphElementInterface(org.eclipse.uml2.uml.Interface element,
                                                   java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **
NOT

createGraphElementOperation

protected GraphElement createGraphElementOperation(org.eclipse.uml2.uml.Operation element,
                                                   java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementProperty

protected GraphElement createGraphElementProperty(org.eclipse.uml2.uml.Property element,
                                                  java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementInstanceSpecification

protected GraphElement createGraphElementInstanceSpecification(org.eclipse.uml2.uml.InstanceSpecification element,
                                                               java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **
NOT

createGraphElementSlot

protected GraphElement createGraphElementSlot(org.eclipse.uml2.uml.Slot element,
                                              java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementEnumeration

protected GraphElement createGraphElementEnumeration(org.eclipse.uml2.uml.Enumeration element,
                                                     java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementEnumerationLiteral

protected GraphElement createGraphElementEnumerationLiteral(org.eclipse.uml2.uml.EnumerationLiteral element,
                                                            java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementPrimitiveType

protected GraphElement createGraphElementPrimitiveType(org.eclipse.uml2.uml.PrimitiveType element,
                                                       java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **
NOT

createGraphElementAssociation

protected GraphElement createGraphElementAssociation(org.eclipse.uml2.uml.Association element,
                                                     java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **
NOT

createGraphElementAssociationClass

protected GraphElement createGraphElementAssociationClass(org.eclipse.uml2.uml.AssociationClass element,
                                                          java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **
NOT

createGraphElementGeneralization

protected GraphElement createGraphElementGeneralization(org.eclipse.uml2.uml.Generalization element,
                                                        java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementInterfaceRealization

protected GraphElement createGraphElementInterfaceRealization(org.eclipse.uml2.uml.InterfaceRealization element,
                                                              java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementDependency

protected GraphElement createGraphElementDependency(org.eclipse.uml2.uml.Dependency element,
                                                    java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementUsage

protected GraphElement createGraphElementUsage(org.eclipse.uml2.uml.Usage element,
                                               java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementPackageImport

protected GraphElement createGraphElementPackageImport(org.eclipse.uml2.uml.PackageImport element,
                                                       java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementPackageMerge

protected GraphElement createGraphElementPackageMerge(org.eclipse.uml2.uml.PackageMerge element,
                                                      java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createGraphElementComment

protected GraphElement createGraphElementComment(org.eclipse.uml2.uml.Comment element,
                                                 java.lang.String presentation)

Parameters:
element - the model element
presentation - the presentation of the graphical element
Returns:
the complete GraphElement
** Generated **

createModelObject

public EObject createModelObject(EObject obj)
Create the ModelObject with its initial children

Parameters:
obj - the model object
Returns:
the model object with its children
** Generated **

UML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.