|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.uml.StandardElementDef | +--com.ashridgetech.jamda.uml.StandardStereotypeDef
Defines a standard Stereotype
which is required in a Model
.
Constructor Summary | |
StandardStereotypeDef(java.lang.String name,
Model.ElementType base)
Creates a new instance of StandardStereotypeDef . |
|
StandardStereotypeDef(java.lang.String name,
Model.ElementType base,
java.lang.Class elementClass)
Creates a new instance of StandardStereotypeDef |
Method Summary | |
protected ModelElement |
createElement(Model model)
Create the element required by this definition in a given Model . |
java.lang.String |
getDescription()
Get a description of the element required. |
java.lang.Class |
getElementClass()
Get the Class used for the elements to which the Stereotype applies. |
Stereotype |
getStereotype(Model model)
Get the Stereotype
required by this definition from a given Model . |
java.lang.String |
getStereotypeName()
Get the name of the Stereotype required. |
boolean |
hasElement(Model model)
Check whether the Stereotype
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 |
public StandardStereotypeDef(java.lang.String name, Model.ElementType base, java.lang.Class elementClass)
StandardStereotypeDef
name
- the name of the Stereotype
base
- the type of the element to which the Stereotype
applieselementClass
- the Class
used for the elements to which the Stereotype
applies
- may be null to use the standard ModelElement
classpublic StandardStereotypeDef(java.lang.String name, Model.ElementType base)
StandardStereotypeDef
. The standard ModelElement
class
is used for the elements to which the Stereotype
applies.
name
- the name of the Stereotype
base
- the type of the element to which the Stereotype
appliesMethod Detail |
public java.lang.String getStereotypeName()
public java.lang.Class getElementClass()
Class
used for the elements to which the Stereotype
applies.
ModelElement
class is to be usedpublic boolean hasElement(Model model)
Stereotype
required by this definition is present in a given Model
.
hasElement
in class StandardElementDef
model
- the Model
in which the check is to be performed
Stereotype
is presentprotected ModelElement createElement(Model model)
Model
.
createElement
in class StandardElementDef
model
- the Model
in which the element is to be created
ModelElement
public Stereotype getStereotype(Model model)
Stereotype
required by this definition from a given Model
.
model
- the Model
in which the Stereotype
is to be found
Stereotype
public java.lang.String getDescription()
getDescription
in class StandardElementDef
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |