org.eclipse.tigerstripe.model
Interface IAssociationEnd

All Superinterfaces:
IModelComponent, IRelationship.IRelationshipEnd, IStereotypeCapable

public interface IAssociationEnd
extends IModelComponent, IRelationship.IRelationshipEnd


Nested Class Summary
static class IAssociationEnd.EAggregationEnum
          An enum of the possible values for the aggregation of an end.
static class IAssociationEnd.EChangeableEnum
          An enum of the possible values for the changeability of an end.
static class IAssociationEnd.EMultiplicity
          An enum of the possible values for the multiplicity of an end.
 
Field Summary
 
Fields inherited from interface org.eclipse.tigerstripe.model.IModelComponent
VISIBILITY_PACKAGE, VISIBILITY_PRIVATE, VISIBILITY_PROTECTED, VISIBILITY_PUBLIC
 
Method Summary
 IAssociationEnd.EAggregationEnum getAggregation()
          Returns the aggregation type of the end.
 IAssociationEnd.EChangeableEnum getChangeable()
          Returns the changeability type of the end.
 IAbstractArtifact getContainingArtifact()
          Returns the IArtifact that is the "container" for the end.
 IAbstractArtifact getContainingAssociation()
          Returns the Association that is the "container" for the end.
 IType getIType()
          Returns the type of the end.
 IAssociationEnd.EMultiplicity getMultiplicity()
          Returns the multiplicity of the end.
 IType getType()
          Deprecated. use getIType for consistency
 boolean isNavigable()
          Returns the navigabilty of the End.
 boolean isOrdered()
          Returns the ordered attribute of the End.
 boolean isUnique()
           
 IType makeIType()
           
 void setAggregation(IAssociationEnd.EAggregationEnum aggregation)
           
 void setChangeable(IAssociationEnd.EChangeableEnum changeable)
           
 void setMultiplicity(IAssociationEnd.EMultiplicity multiplicity)
           
 void setNavigable(boolean isNavigable)
           
 void setOrdered(boolean isOrdered)
           
 void setType(IType type)
           
 void setUnique(boolean isUnique)
           
 java.util.List<org.eclipse.tigerstripe.internal.api.utils.TigerstripeError> validate()
           
 
Methods inherited from interface org.eclipse.tigerstripe.model.IModelComponent
addStereotypeInstance, getComment, getName, getVisibility, isInActiveFacet, removeStereotypeInstance, removeStereotypeInstances, setComment, setName, setVisibility
 
Methods inherited from interface org.eclipse.tigerstripe.profile.stereotype.IStereotypeCapable
getStereotypeInstances
 
Methods inherited from interface org.eclipse.tigerstripe.model.IRelationship.IRelationshipEnd
getContainingRelationship, getName, getNameForType, getOtherEnd
 

Method Detail

getContainingAssociation

IAbstractArtifact getContainingAssociation()
Returns the Association that is the "container" for the end. This is an alias for getContainingArtifact()

Returns:
the containing artifact.

setNavigable

void setNavigable(boolean isNavigable)

setAggregation

void setAggregation(IAssociationEnd.EAggregationEnum aggregation)

setChangeable

void setChangeable(IAssociationEnd.EChangeableEnum changeable)

setMultiplicity

void setMultiplicity(IAssociationEnd.EMultiplicity multiplicity)

getContainingArtifact

IAbstractArtifact getContainingArtifact()
Returns the IArtifact that is the "container" for the end. This will always be an association or associationClass artifact.

Returns:
the containing artifact.

isUnique

boolean isUnique()

setOrdered

void setOrdered(boolean isOrdered)

isNavigable

boolean isNavigable()
Returns the navigabilty of the End.

Returns:
true if navigable.

isOrdered

boolean isOrdered()
Returns the ordered attribute of the End.

Returns:
true if ordered.

setType

void setType(IType type)

getChangeable

IAssociationEnd.EChangeableEnum getChangeable()
Returns the changeability type of the end.

Returns:
enumeration of the changeability type.

setUnique

void setUnique(boolean isUnique)

makeIType

IType makeIType()

getIType

IType getIType()
Returns the type of the end.

Specified by:
getIType in interface IRelationship.IRelationshipEnd
Returns:
IType - the type of the end

getMultiplicity

IAssociationEnd.EMultiplicity getMultiplicity()
Returns the multiplicity of the end.

Returns:
enumeration of the multiplicity type.

getType

@Deprecated
IType getType()
Deprecated. use getIType for consistency

Returns the type of the end.

Returns:
IType - the type of the end

validate

java.util.List<org.eclipse.tigerstripe.internal.api.utils.TigerstripeError> validate()

getAggregation

IAssociationEnd.EAggregationEnum getAggregation()
Returns the aggregation type of the end.

Returns:
enumeration of the aggregation type.