Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon

Class PoseidonProjectConnector


public final class PoseidonProjectConnector

Facade to projects. One project maps to one file. A project contains the model information, the graphical diagram information, and some other information relating to one file. Currently, the only kind of supported project is one containing UML-style information.

A UML project contains one or more (currently, in version 1.x, only one) models. The documentation for the UML model can be found on the Gentleware website for download and online reading.

See also:
org.omg.uml.modelmanagement.Model


 Method Summary
public static void   addDiagramMember( ArgoDiagram diagram )
Add a diagram to the current project. 
public static void   addModelMember(Object model )
Add a model to the current project. 
public static List   getDiagrams()
Returns all diagrams in the project. 
public static URL   getFile()
Gets the URL of the current project file. 
public static Object   getModel()
Returns the first (currently, the only) UML model of the current project. 
public static List   getModels()
Returns all UML models of the current project. 
public static boolean   getNeedsSave()
Gets the saved status of the current project. 
public static void   makeEmptyProject()
Opens the project with the given name, asks when changes need to be saved. 
public static void   openProject(String filename )
 
public boolean   setName(String newName )
Sets the name of the current project. 
public static void   setNeedsSave(boolean needsSave )
Sets the saved status to a new state (and thereby enables or disables the save button). 
arrow_up
 

 

 Method Detail

addDiagramMember

public static void addDiagramMember( ArgoDiagram diagram )

Add a diagram to the current project. Currently, the tree does not notice this immediately; you have to change the perspective in order to see the addition. 
arrow_up
 
 

addModelMember

public static void addModelMember(Object model )

Add a model to the current project. Currently, the tree does not notice this immediately; you have to change the perspective in order to see the addition. 
arrow_up
 
 

getDiagrams

public static List getDiagrams()

Returns all diagrams in the project. Poseidon enforces this list to have at least one element. 
arrow_up
 
 

getFile

public static URL getFile()

Gets the URL of the current project file. If the file was never saved, it returns null. 
arrow_up
 
 

getModel

public static Object getModel()

Returns the first (currently, the only) UML model of the current project.
Returns:
A UML model.
 
arrow_up
 
 

getModels

public static List getModels()

Returns all UML models of the current project. Currently, this list contains only one member. 
arrow_up
 
 

getNeedsSave

public static boolean getNeedsSave()

Gets the saved status of the current project. 
arrow_up
 
 

makeEmptyProject

public static void makeEmptyProject()

Opens the project with the given name, asks when changes need to be saved.  
arrow_up
 
 

openProject

public static void openProject(String filename )

 
arrow_up
 
 

setName

public boolean setName(String newName )

Sets the name of the current project.
Returns:
True if the name could be set, false if a PropertyVeto or MalformedURL was thrown.
 
arrow_up
 
 

setNeedsSave

public static void setNeedsSave(boolean needsSave )

Sets the saved status to a new state (and thereby enables or disables the save button). 
arrow_up
 

Created  2003 - 3 - 4

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2001 Gentleware AG, Vogt-Kölln-Str.30, 22527 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.