org.eclipse.tigerstripe.workbench.profile.stereotype
Interface IStereotypeCapable

All Known Subinterfaces:
IAbstractArtifact, IAssociationArtifact, IAssociationClassArtifact, IAssociationEnd, IDatatypeArtifact, IDependencyArtifact, IEnumArtifact, IEventArtifact, IExceptionArtifact, IField, ILiteral, IManagedEntityArtifact, IMethod, IMethod.IArgument, IModelComponent, IPackageArtifact, IPrimitiveTypeArtifact, IQueryArtifact, ISessionArtifact, IUpdateProcedureArtifact

public interface IStereotypeCapable

Interface to be implemented by all components of the model that can be annotated with Stereotypes.

Author:
Eric Dillon

Method Summary
 void addStereotypeInstance(IStereotypeInstance instance)
           
 IStereotypeInstance getStereotypeInstanceByName(java.lang.String name)
          Returns a StereotypeInstance with the name supplied.
 java.util.Collection<IStereotypeInstance> getStereotypeInstances()
          Returns an array of stereotype instances.
 java.lang.String getStereotypeString()
          Returns a String with the Stereotype lavel a-la-UML <> or "" if no stereotype instance
 boolean hasStereotypeInstance(java.lang.String name)
          Checks for the presence of the named stereotype.
 void removeStereotypeInstance(IStereotypeInstance instance)
           
 void removeStereotypeInstances(java.util.Collection<IStereotypeInstance> instances)
           
 

Method Detail

getStereotypeInstances

java.util.Collection<IStereotypeInstance> getStereotypeInstances()
Returns an array of stereotype instances. These are the stereotypes (also referred to as annotations) that are applied to this model component. If there are no stereotypes applied to this component, the method returns an empty array.

Returns:
array of IStereotypeInstance.

getStereotypeInstanceByName

IStereotypeInstance getStereotypeInstanceByName(java.lang.String name)
Returns a StereotypeInstance with the name supplied. If there is no instance with that name, null is returned.

Parameters:
name -
Returns:
IStereotypeInstance

hasStereotypeInstance

boolean hasStereotypeInstance(java.lang.String name)
Checks for the presence of the named stereotype.

Parameters:
name -
Returns:

addStereotypeInstance

void addStereotypeInstance(IStereotypeInstance instance)

removeStereotypeInstance

void removeStereotypeInstance(IStereotypeInstance instance)

removeStereotypeInstances

void removeStereotypeInstances(java.util.Collection<IStereotypeInstance> instances)

getStereotypeString

java.lang.String getStereotypeString()
Returns a String with the Stereotype lavel a-la-UML <> or "" if no stereotype instance

Returns: