net.sf.quarrel.uml
Class RelationshipType

java.lang.Object
  extended byorg.apache.commons.lang.enums.Enum
      extended bynet.sf.quarrel.uml.RelationshipType
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class RelationshipType
extends org.apache.commons.lang.enums.Enum

An enumaration of relationship types supported in the UML model.

See Also:
Serialized Form

Field Summary
static RelationshipType Aggregation
          A composition relationship having a multiplicity between the two elements.
static RelationshipType Association
          A relationship that relates two or more other instances of concepts or
static RelationshipType Composition
          A relationship where an element includes one or more elements as parts which exists as a part of the whole and participate in the same life cycle.
static RelationshipType Dependency
          A relationship that signifies that one model element requires other model elements for it specification or implementation.
static RelationshipType Generalization
          An association between more general elements and more specific elements.
static RelationshipType Import
          Not sure where this is used.
static RelationshipType Merge
          Not sure where this is used.
static RelationshipType Realization
          A relationship between an element which defines a set of behaviors, such as an interface, and an element which implements that interface.
static RelationshipType Usage
          A relationship where an Actor uses a Use Case
 
Fields inherited from class org.apache.commons.lang.enums.Enum
iToString
 
Method Summary
static RelationshipType getInstance(java.lang.String name)
          Looks the instance of the enumeration for the specified name.
 
Methods inherited from class org.apache.commons.lang.enums.Enum
compareTo, equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Dependency

public static final RelationshipType Dependency
A relationship that signifies that one model element requires other model elements for it specification or implementation.


Association

public static final RelationshipType Association
A relationship that relates two or more other instances of concepts or


Realization

public static final RelationshipType Realization
A relationship between an element which defines a set of behaviors, such as an interface, and an element which implements that interface.


Composition

public static final RelationshipType Composition
A relationship where an element includes one or more elements as parts which exists as a part of the whole and participate in the same life cycle.


Generalization

public static final RelationshipType Generalization
An association between more general elements and more specific elements. More commanly refered as the "extends" relationship.


Aggregation

public static final RelationshipType Aggregation
A composition relationship having a multiplicity between the two elements.


Usage

public static final RelationshipType Usage
A relationship where an Actor uses a Use Case


Merge

public static final RelationshipType Merge
Not sure where this is used.


Import

public static final RelationshipType Import
Not sure where this is used.

Method Detail

getInstance

public static RelationshipType getInstance(java.lang.String name)
Looks the instance of the enumeration for the specified name.

Parameters:
name - the String to look up.
Returns:
the instance of RelationshipType with the given name.
Throws:
java.lang.IllegalArgumentException - - if a match is not found


Copyright © 2006-2007. All Rights Reserved.