de.armax.ax.devtools.uml.mdr
Class AXassociationEndMdrImpl

java.lang.Object
  extended byde.armax.ax.devtools.uml.AXmodelElementAbstract
      extended byde.armax.ax.devtools.uml.mdr.AXmodelElementMdrImpl
          extended byde.armax.ax.devtools.uml.mdr.AXassociationEndMdrImpl
All Implemented Interfaces:
AXassociationEnd, AXmodelElement

public class AXassociationEndMdrImpl
extends AXmodelElementMdrImpl
implements AXassociationEnd

Author:
Peter Wieland, ARMAX mindware GmbH

Field Summary
static java.lang.String AK_AGGREGATE_NAME
           
static java.lang.String AK_COMPOSITE_NAME
           
static java.lang.String AK_NONE_NAME
           
 
Fields inherited from class de.armax.ax.devtools.uml.mdr.AXmodelElementMdrImpl
model
 
Fields inherited from interface de.armax.ax.devtools.uml.AXassociationEnd
AK_AGGREGATE, AK_COMPOSITE, AK_NONE, INTERFACE
 
Constructor Summary
AXassociationEndMdrImpl(org.omg.uml.foundation.core.AssociationEnd assocEnd, AXmodelMdrImpl model, java.util.HashMap taggedValues)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Two elements are considered equal if their qualified names are equal.
 int getAggregationKind()
          Get the aggregation kind of this association end.
 AXmultiplicity getMultiplicity()
          Get the multiplicity of this association end.
 AXassociationEnd getOppositeEnd()
          Get the opposite end of this association end.
 AXclass getOwner()
          Get the owner of this association end.
 boolean isAggregate()
          Check weather this association end has aggregation kind AXassociationEnd.AK_AGGREGATE.
 boolean isComposite()
          Check weather this association end has aggregation kind AXassociationEnd.AK_COMPOSITE.
 boolean isNavigable()
          Check weather this association end is navigable.
 
Methods inherited from class de.armax.ax.devtools.uml.mdr.AXmodelElementMdrImpl
existTaggedValue, getModel, getName, getNamespaceName, getRealElement, getStereotype, getTaggedValue, getTaggedValue, getTaggedValues, getTaggedValueTags
 
Methods inherited from class de.armax.ax.devtools.uml.AXmodelElementAbstract
getNameForCollectionDefine, getNameForCollectionMethod, getNameForCollectionVariable, getNameForDefine, getNameForMethod, getNameForVariable, getPackage, getQualifiedName, getSufficientlyQualifiedName, getSufficientlyQualifiedName, getWellKnownPackages, hasStereotype, isSameNamespace, isSameNamespace, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.armax.ax.devtools.uml.AXmodelElement
existTaggedValue, getModel, getName, getNameForCollectionDefine, getNameForCollectionMethod, getNameForCollectionVariable, getNameForDefine, getNameForMethod, getNameForVariable, getNamespaceName, getPackage, getQualifiedName, getRealElement, getStereotype, getSufficientlyQualifiedName, getSufficientlyQualifiedName, getTaggedValue, getTaggedValue, getTaggedValues, getTaggedValueTags, getWellKnownPackages, hasStereotype, isSameNamespace, isSameNamespace
 

Field Detail

AK_NONE_NAME

public static final java.lang.String AK_NONE_NAME
See Also:
Constant Field Values

AK_AGGREGATE_NAME

public static final java.lang.String AK_AGGREGATE_NAME
See Also:
Constant Field Values

AK_COMPOSITE_NAME

public static final java.lang.String AK_COMPOSITE_NAME
See Also:
Constant Field Values
Constructor Detail

AXassociationEndMdrImpl

public AXassociationEndMdrImpl(org.omg.uml.foundation.core.AssociationEnd assocEnd,
                               AXmodelMdrImpl model,
                               java.util.HashMap taggedValues)
Method Detail

getAggregationKind

public int getAggregationKind()
Description copied from interface: AXassociationEnd

Get the aggregation kind of this association end.

One of AXassociationEnd.AK_NONE, AXassociationEnd.AK_AGGREGATE or AXassociationEnd.AK_COMPOSITE.

Specified by:
getAggregationKind in interface AXassociationEnd
Returns:
the aggregation kind of this association end

isComposite

public boolean isComposite()
Description copied from interface: AXassociationEnd

Check weather this association end has aggregation kind AXassociationEnd.AK_COMPOSITE.

This is a convenience method and should return the value of (getAggregationKind() == AK_COMPOSITE)

Specified by:
isComposite in interface AXassociationEnd
Returns:
true if and only if this association end has aggregation kind AK_COMPOSITE

isAggregate

public boolean isAggregate()
Description copied from interface: AXassociationEnd

Check weather this association end has aggregation kind AXassociationEnd.AK_AGGREGATE.

This is a convenience method and should return the value of (getAggregationKind() == AK_AGGREGATE)

Specified by:
isAggregate in interface AXassociationEnd
Returns:
true if and only if this association end has aggregation kind AK_AGGREGATE

isNavigable

public boolean isNavigable()
Description copied from interface: AXassociationEnd

Check weather this association end is navigable.

Specified by:
isNavigable in interface AXassociationEnd
Returns:
true if and only if this association end is navigable.

getMultiplicity

public AXmultiplicity getMultiplicity()
Description copied from interface: AXassociationEnd

Get the multiplicity of this association end.

Specified by:
getMultiplicity in interface AXassociationEnd
Returns:
the multiplicity of this association end.

getOppositeEnd

public AXassociationEnd getOppositeEnd()
Description copied from interface: AXassociationEnd

Get the opposite end of this association end.

Specified by:
getOppositeEnd in interface AXassociationEnd
Returns:
the opposite end that builds an association together with this end.

getOwner

public AXclass getOwner()
Description copied from interface: AXassociationEnd

Get the owner of this association end.

Specified by:
getOwner in interface AXassociationEnd
Returns:
the owning class of this association end.

equals

public boolean equals(java.lang.Object o)
Description copied from interface: AXmodelElement

Two elements are considered equal if their qualified names are equal.

Specified by:
equals in interface AXmodelElement
Overrides:
equals in class AXmodelElementAbstract


Copyright © 2003 ARMAX mindware GmbH. All Rights Reserved.