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

Class Multicity

com.gentleware.poseidon.uml.model_management.Multicity

public final class Multicity


Multicity represent an UML multiplicity independent of any MDR class, so that multiplicities can be created and accessed without affecting the repository ("multicity" (Multizit?t) is Gentleware's abbreviation for multiplicity :-).

The most common multiplicities are predefined: "0..1", "1", "*", "1..*".


 Inner Classifier Summary
private static   Multicity.Range
 
arrow_up
 

 Attribute Summary
public static Multicity  M0_1
Multicity representing "0..1"  
public static Multicity  M0_N
Multicity representing "0..*" or "*"  
public static Multicity  M1_1
Multicity representing "1"  
public static Multicity  M1_N
Multicity representing "1..*"  
public static int  N
The integer constant defining upper bound multicity "*" (any). 
arrow_up
 

 Association Summary
private Range[]  _ranges
 
arrow_up
 

 Constructor Summary
public   Multicity(int lower, int upper)
Creates a new Multicity with the specified bounds  
public   Multicity(Multicity.Range[] ranges)
 
public   Multicity(String multicityText)
 
arrow_up
 

 Method Summary
public static Multicity   createMulticity(Multiplicity multiplicity)
 
public boolean   equals(Object obj)
This wrapper multiplicity is equal to a given multiplicity, if the given multi. 
public boolean   equals(Multiplicity mult)
 
public boolean   equals(Multicity wrapper)
 
public int   getLower(int rangeIndex)
 
public int   getRangeCount()
 
public int   getUpper(int rangeIndex)
 
public int   hashCode()
 
public String   toString()
Converts the bounds the correct UML string representation using "*" for any multiplicity. 
public String   toString(String multiplicityTextAnyRange)
 
arrow_up
 

Tagged Values
static false
 

 Inner Classifier Detail

Multicity.Range

private static  Multicity.Range

arrow_up
 Attribute Detail

M0_1

public static Multicity M0_1

Multicity representing "0..1"  
arrow_up


M0_N

public static Multicity M0_N

Multicity representing "0..*" or "*"  
arrow_up


M1_1

public static Multicity M1_1

Multicity representing "1"  
arrow_up


M1_N

public static Multicity M1_N

Multicity representing "1..*"  
arrow_up


N

public static int N

The integer constant defining upper bound multicity "*" (any). Must not be used for lower bound.  
arrow_up
 Association Detail

_ranges

private Range[] _ranges

arrow_up
 Constructor Detail

Multicity

public Multicity Multicity(int lower, int upper)


Creates a new Multicity with the specified bounds  
Parameters:
lower -
upper -
Returns:
arrow_up


Multicity

public Multicity Multicity(Multicity.Range[] ranges)

Parameters:
ranges -
Returns:
arrow_up


Multicity

public Multicity Multicity(String multicityText)

Parameters:
multicityText -
Returns:
arrow_up
 Method Detail

createMulticity

public static Multicity createMulticity(Multiplicity multiplicity)

Parameters:
multiplicity -
Returns:
arrow_up


equals

public boolean equals(Object obj)


This wrapper multiplicity is equal to a given multiplicity, if the given multi. has exactly one range and the bounds of the range are equal to the bounds of this bounds.  
Parameters:
obj -
Returns:
arrow_up


equals

public boolean equals(Multiplicity mult)

Parameters:
mult -
Returns:
arrow_up


equals

public boolean equals(Multicity wrapper)

Parameters:
wrapper -
Returns:
arrow_up


getLower

public int getLower(int rangeIndex)

Parameters:
rangeIndex -
Returns:
arrow_up


getRangeCount

public int getRangeCount()

Returns:
arrow_up


getUpper

public int getUpper(int rangeIndex)

Parameters:
rangeIndex -
Returns:
arrow_up


hashCode

public int hashCode()

Returns:
arrow_up


toString

public String toString()


Converts the bounds the correct UML string representation using "*" for any multiplicity.  
Returns:
arrow_up


toString

public String toString(String multiplicityTextAnyRange)

Parameters:
multiplicityTextAnyRange -
Returns:
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.