com.ashridgetech.jamda.uml
Class Generalization

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

class Generalization
extends ModelElement

A UML Generalization. For package scope use only.

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
protected Generalization(ru.novosoft.uml.foundation.core.MGeneralization mg, ModelPackage mp)
          Creates new Generalization from a NSUML MGeneralization object during loading.
  Generalization(ModelPackage parentPackage, StructuredType childType, StructuredType parentType)
          Creates a new Generalization.
 
Method Summary
protected static java.lang.String checkTypes(ModelElement child, ModelElement parent)
           
 void checkValid()
          Check whether this object is valid.
 ModelElement getChildType()
          Get the child type (the subtype).
 java.lang.String getName()
          Get the name of this Generalization.
 ModelElement getParentType()
          Get the parent type (the supertype).
 
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, getSubElementStore, 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

Generalization

public Generalization(ModelPackage parentPackage,
                      StructuredType childType,
                      StructuredType parentType)
Creates a new Generalization.


Generalization

protected Generalization(ru.novosoft.uml.foundation.core.MGeneralization mg,
                         ModelPackage mp)
Creates new Generalization from a NSUML MGeneralization object during loading.

Method Detail

getName

public java.lang.String getName()
Get the name of this Generalization.

Overrides:
getName in class ModelElement
Returns:
the name of this Generalization if it has one, the id otherwise

getChildType

public ModelElement getChildType()
Get the child type (the subtype).

Returns:
the child type

getParentType

public ModelElement getParentType()
Get the parent type (the supertype).

Returns:
the parent type

checkValid

public void checkValid()
                throws java.lang.IllegalStateException
Check whether this object is valid. Subclasses should call the superclass method if they override this method.

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

checkTypes

protected static java.lang.String checkTypes(ModelElement child,
                                             ModelElement parent)


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.