com.ashridgetech.jamda.uml
Class StandardClassDef

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.StandardElementDef
        |
        +--com.ashridgetech.jamda.uml.StandardTypeDef
              |
              +--com.ashridgetech.jamda.uml.StandardClassDef

public class StandardClassDef
extends StandardTypeDef

Defines a standard Class which is required in a Model.

Author:
PBoocock

Constructor Summary
StandardClassDef(java.lang.String fullName)
          Creates a new StandardClassDef for a ClassType.
 
Method Summary
protected  ModelElement createElement(Model model)
          Create the element required by this definition in a given Model.
 ClassType getClass(Model model)
          Get the ClassType required by this definition from a given Model.
 java.lang.String getDescription()
          Get a description of the element required.
 Type getType(Model model)
          Get the Type required by this definition from a given Model.
 boolean hasElement(Model model)
          Check whether the ClassType required by this definition is present in a given Model.
 
Methods inherited from class com.ashridgetech.jamda.uml.StandardTypeDef
getTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardClassDef

public StandardClassDef(java.lang.String fullName)
Creates a new StandardClassDef for a ClassType.

Parameters:
fullName - the full name of the class
Method Detail

hasElement

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

Overrides:
hasElement in class StandardTypeDef
Parameters:
model - the Model in which the check is to be performed
Returns:
true if the Class is present

createElement

protected ModelElement createElement(Model model)
Create the element required by this definition in a given Model.

Specified by:
createElement in class StandardElementDef
Parameters:
model - the Model in which the element is to be created
Returns:
the new ModelElement

getClass

public ClassType getClass(Model model)
Get the ClassType required by this definition from a given Model.

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

getType

public Type getType(Model model)
Get the Type required by this definition from a given Model.

Specified by:
getType in class StandardTypeDef
Parameters:
model - the Model in which the Type is to be found
Returns:
as returned by getClass(com.ashridgetech.jamda.uml.Model)

getDescription

public java.lang.String getDescription()
Get a description of the element required.

Specified by:
getDescription in class StandardElementDef
Returns:
the description


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.