com.ashridgetech.jamda.uml
Class StructuredType.Aggregation

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.StructuredType.Aggregation
Enclosing class:
StructuredType

public static class StructuredType.Aggregation
extends java.lang.Object

Typesafe enum to represent the aggregation of Association.Ends and Attributes in a type.


Field Summary
static StructuredType.Aggregation AGGREGATE
           
static StructuredType.Aggregation COMPOSITE
           
static StructuredType.Aggregation NONE
           
 
Method Summary
static StructuredType.Aggregation getInstance(java.lang.String name)
          Get the instance of this class with the given name.
 boolean isAggregated()
          Show whether this level of aggregation is aggregated ie AGGREGATE or CONTAINED
 java.lang.String toString()
          Return the name as used to obtain this instance from #getInstance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final StructuredType.Aggregation NONE

AGGREGATE

public static final StructuredType.Aggregation AGGREGATE

COMPOSITE

public static final StructuredType.Aggregation COMPOSITE
Method Detail

getInstance

public static StructuredType.Aggregation getInstance(java.lang.String name)
Get the instance of this class with the given name.

Parameters:
name - the name of the instance, as returned by toString
Returns:
the object with the value name
Throws:
java.lang.IllegalArgumentException - if there is no instance with the value name

isAggregated

public boolean isAggregated()
Show whether this level of aggregation is aggregated ie AGGREGATE or CONTAINED


toString

public java.lang.String toString()
Return the name as used to obtain this instance from #getInstance.

Overrides:
toString in class java.lang.Object


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.