com.ashridgetech.jamda.uml
Class StandardTypeDef

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.StandardElementDef
        |
        +--com.ashridgetech.jamda.uml.StandardTypeDef
Direct Known Subclasses:
StandardClassDef, StandardDataTypeDef, StandardInterfaceDef

public abstract class StandardTypeDef
extends StandardElementDef

Abstract baseclass for classes which define a standard Type that is required in a Model.

Author:
PBoocock

Constructor Summary
protected StandardTypeDef(java.lang.String name)
          Called by subclasses.
 
Method Summary
abstract  Type getType(Model model)
          Must be implemented by subclasses to get the Type required by this definition from a given Model.
 java.lang.String getTypeName()
          Get the full name of the Type required.
 boolean hasElement(Model model)
          Check whether the Type required by this definition is present in a given Model.
 
Methods inherited from class com.ashridgetech.jamda.uml.StandardElementDef
createElement, getDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardTypeDef

protected StandardTypeDef(java.lang.String name)
Called by subclasses.

Parameters:
name - the full name of the Type
Method Detail

getTypeName

public java.lang.String getTypeName()
Get the full name of the Type required.

Returns:
the name

hasElement

public boolean hasElement(Model model)
Check whether the Type required by this definition is present in a given Model.

Specified by:
hasElement in class StandardElementDef
Parameters:
model - the Model in which the check is to be performed
Returns:
true if the Type is present

getType

public abstract Type getType(Model model)
Must be implemented by subclasses to get the Type required by this definition from a given Model.

Parameters:
model - the Model in which the Type is to be found
Returns:
the Type


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.