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, 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)
           
 java.lang.Object getAnnotation(java.lang.String schemeID, java.lang.String annotationSpecificationID)
           
 java.util.List<java.lang.Object> getAnnotations(java.lang.String schemeID)
           
 java.util.List<java.lang.Object> getAnnotations(java.lang.String schemeID, java.lang.String annotationSpecificationID)
           
 IStereotypeInstance getStereotypeInstanceByName(java.lang.String name)
          Returns a StereotypeInstance with the name supplied.
 java.util.Collection<IStereotypeInstance> getStereotypeInstances()
          Returns an array of stereotype instances.
 boolean hasAnnotations(java.lang.String schemeID)
           
 boolean hasAnnotations(java.lang.String schemeID, java.lang.String annotationSpecificationID)
           
 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)

getAnnotations

java.util.List<java.lang.Object> getAnnotations(java.lang.String schemeID)

getAnnotation

java.lang.Object getAnnotation(java.lang.String schemeID,
                               java.lang.String annotationSpecificationID)

getAnnotations

java.util.List<java.lang.Object> getAnnotations(java.lang.String schemeID,
                                                java.lang.String annotationSpecificationID)

hasAnnotations

boolean hasAnnotations(java.lang.String schemeID)

hasAnnotations

boolean hasAnnotations(java.lang.String schemeID,
                       java.lang.String annotationSpecificationID)