|
|||||||||||
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.StandardTagDef
Defines a standard TagDefinition which is required in a Model
.
Constructor Summary | |
StandardTagDef(java.lang.String name,
TagDefinition.TagType tagType,
int lowerMultiplicity,
int upperMultiplicity)
Creates a new instance of StandardTagDef which does not belong to a Stereotype |
|
StandardTagDef(java.lang.String name,
TagDefinition.TagType tagType,
StandardStereotypeDef stereotypeDef,
int lowerMultiplicity,
int upperMultiplicity)
Creates a new instance of StandardTagDef |
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. |
int |
getLowerMultiplicity()
Get the lower multiplicity of the required TagDefinition . |
StandardStereotypeDef |
getStereotypeDef()
Get the definition of the Stereotype to which the required TagDefinition belongs. |
TagDefinition |
getTagDefinition(Model model)
Get the TagDefinition
required by this definition from a given Model . |
java.lang.String |
getTagName()
Get the name of the required TagDefinition . |
TagDefinition.TagType |
getTagType()
Get the type of the required TagDefinition . |
int |
getUpperMultiplicity()
Get the upper multiplicity of the required TagDefinition . |
boolean |
hasElement(Model model)
Check whether the TagDefinition
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 StandardTagDef(java.lang.String name, TagDefinition.TagType tagType, StandardStereotypeDef stereotypeDef, int lowerMultiplicity, int upperMultiplicity)
name
- the TagDefinition
nametagType
- the UML element type, or String or Boolean, to which this tag referspublic StandardTagDef(java.lang.String name, TagDefinition.TagType tagType, int lowerMultiplicity, int upperMultiplicity)
Stereotype
name
- the TagDefinition
nametagType
- the UML element type, or String or Boolean, to which this tag refersMethod Detail |
public StandardStereotypeDef getStereotypeDef()
Stereotype
to which the required TagDefinition
belongs.
Stereotype
public java.lang.String getTagName()
TagDefinition
.
public TagDefinition.TagType getTagType()
TagDefinition
.
public int getLowerMultiplicity()
TagDefinition
.
public int getUpperMultiplicity()
TagDefinition
.
public boolean hasElement(Model model)
TagDefinition
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
TagDefinition
is presentprotected ModelElement createElement(Model model)
Model
.
createElement
in class StandardElementDef
model
- the Model
in which the element is to be created
ModelElement
public TagDefinition getTagDefinition(Model model)
TagDefinition
required by this definition from a given Model
.
model
- the Model
in which the TagDefinition
is to be found
TagDefinition
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 |