com.ashridgetech.jamda.uml
Class Stereotype

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.ModelElement
        |
        +--com.ashridgetech.jamda.uml.Stereotype

public class Stereotype
extends ModelElement

A UML Stereotype. Referenced by various other UML metamodel classes.

Version:
1.0
Author:
paulb

Nested Class Summary
 
Nested classes inherited from class com.ashridgetech.jamda.uml.ModelElement
ModelElement.DuplicateElementException, ModelElement.ElementListStore, ModelElement.ElementNameListStore, ModelElement.ElementNameStore, ModelElement.ElementStore, ModelElement.TaggedValue, ModelElement.UnknownElementException
 
Field Summary
 
Fields inherited from class com.ashridgetech.jamda.uml.ModelElement
DUMMY_STORE
 
Constructor Summary
  Stereotype(Model model, java.lang.String name, Model.ElementType baseClass)
          Creates new Stereotype with a new NSUML MStereotype object.
protected Stereotype(ru.novosoft.uml.foundation.core.MStereotype ms, Model model)
          Creates new Stereotype from a NSUML MStereotype object.
 
Method Summary
 void checkValid()
          Check whether this object is valid.
 Model.ElementType getBaseClass()
          Get the base element type of this Stereotype.
 java.lang.String getName()
          Get the name of this Stereotype, including the names of the base classes.
protected static java.lang.String getName(ru.novosoft.uml.foundation.core.MStereotype nsStereotype)
          Get the name of a Stereotype, including the names of the base classes.
 java.lang.String getShortName()
          Get the name of this Stereotype, without the names of the base classes.
protected  ModelElement.ElementStore getSubElementStore(java.lang.Class meClass)
          Overridden to return the sub-element ModelElement.ElementStore into which an object of the class meClass should be stored.
 TagDefinition getTagDefinition(java.lang.String name)
          Get the TagDefinition in this Model with a given name
 java.util.Collection getTagDefinitions()
          Get all the TagDefinitions in this Stereotype.
 
Methods inherited from class com.ashridgetech.jamda.uml.ModelElement
add, addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDescription, getDirectSource, getElement, getElementType, getFullName, getId, getModel, getNsElement, getOriginalSource, getParentElement, getProperties, getStereotypes, getStringTaggedValue, getTaggedValue, getTaggedValues, getXpathContext, hasStereotype, hasTaggedValue, init, initLoad, isInitialised, load, load, load, loadElement, logChange, logger, logger, logLoad, logLoadWarning, logNew, logWarning, removeTaggedValue, select, setComment, setDirectSource, setTaggedValue, setTaggedValue, setTaggedValue, setTaggedValues, stereotype, tag, tagError, toString, type, type, type, xpath, xpathList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stereotype

public Stereotype(Model model,
                  java.lang.String name,
                  Model.ElementType baseClass)
Creates new Stereotype with a new NSUML MStereotype object.


Stereotype

protected Stereotype(ru.novosoft.uml.foundation.core.MStereotype ms,
                     Model model)
Creates new Stereotype from a NSUML MStereotype object.

Method Detail

getName

protected static java.lang.String getName(ru.novosoft.uml.foundation.core.MStereotype nsStereotype)
Get the name of a Stereotype, including the names of the base classes.


getName

public java.lang.String getName()
Get the name of this Stereotype, including the names of the base classes.

Overrides:
getName in class ModelElement
See Also:
getShortName()

getShortName

public java.lang.String getShortName()
Get the name of this Stereotype, without the names of the base classes.

See Also:
getName(ru.novosoft.uml.foundation.core.MStereotype)

getBaseClass

public Model.ElementType getBaseClass()
Get the base element type of this Stereotype.


getTagDefinitions

public java.util.Collection getTagDefinitions()
Get all the TagDefinitions in this Stereotype.

Returns:
an unmodifiable list of TagDefinition objects

getTagDefinition

public TagDefinition getTagDefinition(java.lang.String name)
Get the TagDefinition in this Model with a given name

Parameters:
name - the name of the required TagDefinition
Returns:
the TagDefinition whose name is name, or null if there is no such object

checkValid

public void checkValid()
                throws java.lang.IllegalStateException
Check whether this object is valid. Ensure that the Stereotype only has one base class.

Overrides:
checkValid in class ModelElement
Throws:
java.lang.IllegalStateException - if a problem is found

getSubElementStore

protected ModelElement.ElementStore getSubElementStore(java.lang.Class meClass)
Overridden to return the sub-element ModelElement.ElementStore into which an object of the class meClass should be stored.

Overrides:
getSubElementStore in class ModelElement
Returns:
the store to use, or the superclass implementation if the class of the object is not stored by this class.


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.