|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelComponent
A component for a Tigerstripe Model.
| Nested Class Summary | |
|---|---|
static class |
IModelComponent.EMultiplicity
An enum of the possible values for the multiplicity of an component. |
static class |
IModelComponent.EVisibility
An enum of the possible values for the visibility of a component. |
| Method Summary | |
|---|---|
java.lang.Object |
getAnnotation(java.lang.String scheme,
java.lang.String annotationType)
Returns the first annotation defined against this object for the given scheme and annotationType |
java.util.List<java.lang.Object> |
getAnnotations()
Returns a list of all the annotations for this object |
java.util.List<java.lang.Object> |
getAnnotations(java.lang.String scheme)
Returns a list of all the annotations for for the given scheme for this object |
java.util.List<java.lang.Object> |
getAnnotations(java.lang.String scheme,
java.lang.String annotationType)
Returns the list of annotations defined against this object for the given scheme and annotationType |
java.lang.String |
getComment()
Returns the comment (or plain-english description) associated with this model component. |
IModelComponentMetadata |
getMetadata()
Returns the metadata about this Artifact type |
java.lang.String |
getName()
Returns the name associated with this component. |
ITigerstripeModelProject |
getProject()
Returns the project that this Model Component belongs to. |
IModelComponent.EVisibility |
getVisibility()
Returns an integer value indicating the visibility of this component. |
boolean |
hasAnnotations()
Returns true if there is any annotation defined against this object |
boolean |
hasAnnotations(java.lang.String scheme)
Returns true if there is any annotation defined against this object for the given scheme |
boolean |
hasAnnotations(java.lang.String scheme,
java.lang.String annotationType)
Returns true if there is any annotation defined against this object for the given scheme and given annotationType |
boolean |
isInActiveFacet()
Returns true if this component is included in the current active facet. |
void |
setComment(java.lang.String comment)
Set the comment for this component. |
void |
setName(java.lang.String name)
Sets the name associated with this component |
void |
setVisibility(IModelComponent.EVisibility visibility)
Sets the visibility of this component. |
IStatus |
validate()
|
| Methods inherited from interface org.eclipse.tigerstripe.workbench.profile.stereotype.IStereotypeCapable |
|---|
addStereotypeInstance, getStereotypeInstanceByName, getStereotypeInstances, hasStereotypeInstance, removeStereotypeInstance, removeStereotypeInstances |
| Method Detail |
|---|
java.lang.String getName()
void setName(java.lang.String name)
java.lang.String getComment()
void setComment(java.lang.String comment)
comment - IModelComponent.EVisibility getVisibility()
void setVisibility(IModelComponent.EVisibility visibility)
visibility -
boolean isInActiveFacet()
throws TigerstripeException
TigerstripeExceptionIStatus validate()
IModelComponentMetadata getMetadata()
java.util.List<java.lang.Object> getAnnotations()
java.util.List<java.lang.Object> getAnnotations(java.lang.String scheme)
getAnnotations in interface IStereotypeCapablescheme - -
the scheme to limit the return to
java.lang.Object getAnnotation(java.lang.String scheme,
java.lang.String annotationType)
getAnnotation in interface IStereotypeCapablescheme - -
the scheme to match, e.g. "tigerstripe"annotationType - -
the annotation type to match. Match is done on the fully
qualified name of the annotation type using endsWidth(..), so
"org.eclipse.tigerstripe.annotation.example.Person" or
"Person" would work, e.g.
java.util.List<java.lang.Object> getAnnotations(java.lang.String scheme,
java.lang.String annotationType)
getAnnotations in interface IStereotypeCapablescheme - -
the scheme to match, e.g. "tigerstripe"annotationType - -
the annotation type to match. Match is done on the fully
qualified name of the annotation type using endsWidth(..), so
"org.eclipse.tigerstripe.annotation.example.Person" or
"Person" would work, e.g.
boolean hasAnnotations()
boolean hasAnnotations(java.lang.String scheme)
hasAnnotations in interface IStereotypeCapablescheme - -
the scheme to match, for example "tigerstripe"
boolean hasAnnotations(java.lang.String scheme,
java.lang.String annotationType)
hasAnnotations in interface IStereotypeCapablescheme - -
the scheme to match, for example "tigerstripe"annotationType - -
the annotation type to match. Match is done on the fully
qualified name of the annotation type using endsWidth(..), so
"org.eclipse.tigerstripe.annotation.example.Person" or
"Person" would work, e.g.
ITigerstripeModelProject getProject()
throws TigerstripeException
TigerstripeException - if the project is invalid (descriptor missing, etc..)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||