com.ashridgetech.jamda.transform
Class UmlInterfaceCreator
java.lang.Object
|
+--com.ashridgetech.jamda.transform.UmlTypeCreator
|
+--com.ashridgetech.jamda.transform.UmlInterfaceCreator
- All Implemented Interfaces:
- ElementTransformer
- Direct Known Subclasses:
- BusinessInterfaceCreator
- public abstract class UmlInterfaceCreator
- extends UmlTypeCreator
Generates a new InterfaceType
from a given source
StructuredType
.
Each instance may only be used to generate one element.
Subclasses must implement UmlTypeCreator.setup()
. They may wish
to override makeNewInterface()
, UmlTypeCreator.getNewName()
or UmlTypeCreator.getPackage()
.
- Author:
- Paul Boocock
version 1.0
Constructor Summary |
UmlInterfaceCreator()
Construct a UmlInterfaceCreator
for a Java interface . |
Methods inherited from class com.ashridgetech.jamda.transform.UmlTypeCreator |
addOperation, addOperation, addOperation, addProperty, checkReadyToCreate, extraStandardDefClasses, getModel, getNewName, getNewType, getPackage, getPackageName, getSource, getSuffix, logChange, logCreate, logger, setModel, setPackageName, setSource, setSuffix, setup, standardElementDefClasses, transform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UmlInterfaceCreator
public UmlInterfaceCreator()
- Construct a
UmlInterfaceCreator
for a Java interface
.
getNewInterface
public InterfaceType getNewInterface()
- Get the new
InterfaceType
being created. Only valid
after UmlTypeCreator.transform(com.ashridgetech.jamda.uml.ModelElement)
has called makeNewType()
.
- Returns:
- the new element
makeNewType
protected final StructuredType makeNewType()
- {@inheritDoc}
- Specified by:
makeNewType
in class UmlTypeCreator
- Returns:
- the new element.
makeNewInterface
protected InterfaceType makeNewInterface()
- Make a new
InterfaceType
element. This implementation
creates a new InterfaceType
belonging to the package
returned by UmlTypeCreator.getPackage()
, with the name returned by UmlTypeCreator.getNewName()
.
- Returns:
- the new element.
toString
public java.lang.String toString()
- Overrides:
toString
in class UmlTypeCreator
Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.