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


public class PreparedMultiplicity

This class contains the prepared information for an multiplicity. The information can directly be used in the code generation.
See also:
com.gentleware.poseidon.generator.PreparedElement
com.gentleware.poseidon.generator.ElementPreparator
ModelElementPreparator


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

 Constructor Summary
public   PreparedMultiplicity()
Creates a new instance. 
public   PreparedMultiplicity( Multiplicity multi , ModelElementPreparator preparator )
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
 

 

 Attribute Detail

UNDEFINED

public static int UNDEFINED

 
arrow_up
 
 

SINGLE

public static int SINGLE

 
arrow_up
 
 

SINGLE_OPTIONAL

public static int SINGLE_OPTIONAL

 
arrow_up
 
 

LIMITED_SET

public static int LIMITED_SET

 
arrow_up
 
 

LIMITED_SET_OPTIONAL

public static int LIMITED_SET_OPTIONAL

 
arrow_up
 
 

UNLIMITED_SET

public static int UNLIMITED_SET

 
arrow_up
 
 

UNLIMITED_SET_OPTIONAL

public static int UNLIMITED_SET_OPTIONAL

 
arrow_up
 

 Constructor Detail

PreparedMultiplicity

public PreparedMultiplicity PreparedMultiplicity()

Creates a new instance. 
arrow_up
 
 

PreparedMultiplicity

public PreparedMultiplicity PreparedMultiplicity( Multiplicity multi , ModelElementPreparator preparator )

Creates a new 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
 

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