com.ashridgetech.jamda.uml
Class Association

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

public class Association
extends ModelElement

A UML Association.

Version:
1.0
Author:
paulb

Nested Class Summary
static class Association.End
          Represents a UML AssociationEnd.
 
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
Association(ru.novosoft.uml.foundation.core.MAssociation ma, ModelPackage mp)
          Creates new Association from a NSUML MAssociation object.
 
Method Summary
 void checkValid()
          Check whether this object is valid.
 Association.End getEndA()
          Get the first end of the association.
 Association.End getEndB()
          Get the second end of the association.
 java.util.List getEnds()
          Get the ends of the Association.
 java.lang.String getName()
          Get the name of this Association, including 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.
protected  void load()
           
 
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, 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

Association

public Association(ru.novosoft.uml.foundation.core.MAssociation ma,
                   ModelPackage mp)
Creates new Association from a NSUML MAssociation object.

Method Detail

getName

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

Overrides:
getName in class ModelElement

getEndA

public Association.End getEndA()
Get the first end of the association.

Returns:
the end

getEndB

public Association.End getEndB()
Get the second end of the association.

Returns:
the end

getEnds

public java.util.List getEnds()
Get the ends of the Association.

Returns:
the parent type

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.

load

protected void load()
Overrides:
load in class ModelElement

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


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.