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.uml.generator

Class PreparedMultiplicity

com.gentleware.poseidon.generator.PreparedElement
    inheritcom.gentleware.poseidon.uml.generator.PreparedModelElement
        inheritcom.gentleware.poseidon.uml.generator.PreparedMultiplicity

public class PreparedMultiplicity


This class contains the prepared information for an multiplicity. The information can directly be used in the code generation.
See also:
ModelElementPreparator


 Attribute Summary
public static int  LIMITED_SET
 
public static int  LIMITED_SET_OPTIONAL
 
public static int  SINGLE
 
public static int  SINGLE_OPTIONAL
 
public static int  UNDEFINED
 
public static int  UNLIMITED_SET
 
public static int  UNLIMITED_SET_OPTIONAL
 
arrow_up
 

 Association Summary
public PreparedAssociationEnd  preparedAssociationEnd
 
public PreparedAttribute  preparedAttribute
 
arrow_up
 

 Constructor Summary
public   PreparedMultiplicity()
Creates a new instance. 
arrow_up
 

 Method Summary
public int   getLower()
Returns the lower bound of the multiplicity. 
public int   getMultiplicityConstant()
Returns the related multiplicity as a constant. 
public int   getUpper()
Returns the lower bound of the multiplicity. 
public void   init(Object multi, ElementPreparator preparator)
Initializes this instance. 
public boolean   isLimitedSet()
Tests if the related multiplicity represents a limited multiplicity. 
public boolean   isSingleMultiplicity()
Tests, if the related multiplicity represents a single multiplicity. 
public boolean   isUnlimitedSet()
Tests, if the related multiplicity represents a limited multiplicity. 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 17
gentleware-imported-package-statement-line-number 1
 

 Attribute Detail

LIMITED_SET

public static int LIMITED_SET

arrow_up


LIMITED_SET_OPTIONAL

public static int LIMITED_SET_OPTIONAL

arrow_up


SINGLE

public static int SINGLE

arrow_up


SINGLE_OPTIONAL

public static int SINGLE_OPTIONAL

arrow_up


UNDEFINED

public static int UNDEFINED

arrow_up


UNLIMITED_SET

public static int UNLIMITED_SET

arrow_up


UNLIMITED_SET_OPTIONAL

public static int UNLIMITED_SET_OPTIONAL

arrow_up
 Association Detail

preparedAssociationEnd

public PreparedAssociationEnd preparedAssociationEnd

arrow_up


preparedAttribute

public PreparedAttribute preparedAttribute

arrow_up
 Constructor Detail

PreparedMultiplicity

public com.gentleware.poseidon.uml.generator.PreparedMultiplicity PreparedMultiplicity()


Creates a new instance.  
Returns:
arrow_up
 Method Detail

getLower

public int getLower()


Returns the lower bound of the multiplicity.  
Returns:
The lower bound of the multiplicity.
arrow_up


getMultiplicityConstant

public int getMultiplicityConstant()


Returns the related multiplicity as a constant.  
Returns:
The related multiplicity as a constant.
arrow_up


getUpper

public int getUpper()


Returns the lower bound of the multiplicity.  
Returns:
The lower bound of the multiplicity.
arrow_up


init

public void init(Object multi, ElementPreparator preparator)


Initializes this instance. It will be related to the given model element and handled by the given preparator. The information of the given model element will be prepared here.  
Parameters:
multi - The model element this instance should be related to.
preparator - The preparator handling this instance.
arrow_up


isLimitedSet

public boolean isLimitedSet()


Tests if the related multiplicity represents a limited multiplicity.  
Returns:
True if the upper multiplicity > 1 and not N , otherwise false.
arrow_up


isSingleMultiplicity

public boolean isSingleMultiplicity()


Tests, if the related multiplicity represents a single multiplicity.  
Returns:
True, if the upper multiplicity is 1, otherwise false.
arrow_up


isUnlimitedSet

public boolean isUnlimitedSet()


Tests, if the related multiplicity represents a limited multiplicity.  
Returns:
True, if the upper multiplicity = -1, otherwise false.
arrow_up
Created  2004 - 12 - 1

    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.