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.jboogie.openapi

Class SmId

com.gentleware.jboogie.kernel.Id
    inheritcom.gentleware.jboogie.openapi.SmId

public class SmId


A unique (but non-persistent) identifier of a semantic model element.

It is used to support Undo/Redo: Commands must be able to reference a Element (e.g. UmlClass) even though the instance does not currently exists (e.g. is deleted). When an instance is recreated due to a redo operation it gets the same Id, so that subsequent redos reference the correct object.

Created: 15.02.2003 13:29:39

Authors:
Stephen Kelvin


 Attribute Summary
public static String  RSMID_INDICATOR
 
private boolean  _isProducedByProvider
 
arrow_up
 

 Constructor Summary
public   SmId(Project project, String customPrefix)
DO NOT USE THIS CONSTRUCTOR ANYMORE, USE PROJECT.GETNEXTSMID() INSTEAD Creates a new Id. 
arrow_up
 

 Method Summary
public final void   detach()
 
public static boolean   exists(Project project, RefObject element)
Checks if a SmID for the given element exists. 
public RefObject   getElement()
 
public String   getIdIndicator()
 
public static Collection   getModelElementSmIds(Project project, Collection modelElements)
 
public static Collection   getModelElementsFromSmIds(Collection smIds)
 
public SmElement   getSmElement()
 
public boolean   isProducedByProvider()
 
public void   setProducedByProvider()
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

RSMID_INDICATOR

public static String RSMID_INDICATOR

arrow_up


_isProducedByProvider

private boolean _isProducedByProvider

arrow_up
 Constructor Detail

SmId

public SmId SmId(Project project, String customPrefix)


DO NOT USE THIS CONSTRUCTOR ANYMORE, USE PROJECT.GETNEXTSMID() INSTEAD Creates a new Id.  
Parameters:
project -
customPrefix -
Returns:
arrow_up
 Method Detail

detach

public final void detach()

arrow_up


exists

public static boolean exists(Project project, RefObject element)


Checks if a SmID for the given element exists.  
Parameters:
project - project for which the check should be performed
element - element to check
Returns:
true if SmId exists
arrow_up


getElement

public RefObject getElement()

Returns:
arrow_up


getIdIndicator

public String getIdIndicator()

Returns:
arrow_up


getModelElementSmIds

public static Collection getModelElementSmIds(Project project, Collection modelElements)

Parameters:
project -
modelElements -
Returns:
arrow_up


getModelElementsFromSmIds

public static Collection getModelElementsFromSmIds(Collection smIds)

Parameters:
smIds -
Returns:
arrow_up


getSmElement

public SmElement getSmElement()

Returns:
arrow_up


isProducedByProvider

public boolean isProducedByProvider()

Returns:
arrow_up


setProducedByProvider

public void setProducedByProvider()

arrow_up
Created  2004 - 10 - 21

    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 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

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