com.ashridgetech.jamda.uml
Class StandardElementDef

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.StandardElementDef
Direct Known Subclasses:
StandardStereotypeDef, StandardTagDef, StandardTypeDef

public abstract class StandardElementDef
extends java.lang.Object

The base class for definitions of standard elements. Also defines the enumerated values for UML base class names.

Author:
PBoocock

Constructor Summary
StandardElementDef()
           
 
Method Summary
protected abstract  ModelElement createElement(Model model)
          Must be implemented by subclasses to create the element required by this definition n a given Model.
abstract  java.lang.String getDescription()
          Must be implemented by subclasses to return a description of the element required.
abstract  boolean hasElement(Model model)
          Must be implemented by subclasses to check whether the element required by this definition is present in a given Model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardElementDef

public StandardElementDef()
Method Detail

hasElement

public abstract boolean hasElement(Model model)
Must be implemented by subclasses to check whether the element required by this definition is present in a given Model.

Parameters:
model - the Model in which the check is to be performed
Returns:
true if the element is present

createElement

protected abstract ModelElement createElement(Model model)
Must be implemented by subclasses to create the element required by this definition n a given Model.

Parameters:
model - the Model in which the element is to be created
Returns:
the new ModelElement

getDescription

public abstract java.lang.String getDescription()
Must be implemented by subclasses to return a description of the element required.

Returns:
the description


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.