public class DefaultModelComponentContributor extends AbstractModelComponentContributor
IModelComponentContent
interface.Constructor and Description |
---|
DefaultModelComponentContributor(IModule module)
Default constructor, initializing all fields.
|
Modifier and Type | Method and Description |
---|---|
void |
addDependencyStereotype(Stereotype stereotype)
Return the set of dependency stereotypes that must be added to a model component.
|
void |
addFiles(String exportedFile,
String exportRelativePath)
Adds a file path to the set of files path that must be added to a model component.
|
void |
addNameSpace(NameSpace namespace)
Adds a namespace to the set of namespaces that must be added to a model component.
|
void |
addNoteType(NoteType noteType)
Adds a note type to the set of note types that must be added to a model component.
|
void |
addPropertyTableDefinition(PropertyTableDefinition propertySet)
Adds a property set to the set of property sets that must be added to a model component
|
void |
addPropertyType(PropertyType propertyType)
Adds a property type to the set of property types that must be added to a model component
|
void |
addRequirementElement(AnalystElement element)
Adds an analyst element to the set of elements that must be added to a model component.
|
void |
addTagType(TagType tagType)
Adds a tagged value to the set of tagged value types that must be added to a model component.
|
Set<Stereotype> |
getDependencyStereotypes()
Return the set of dependency stereotypes that must be added to a model component.
|
Set<MObject> |
getElements()
Return the set of Elements that must be added to a model component.
|
Set<ExportedFileEntry> |
getFiles()
Return the set of files path that must be added to a model component.
|
Set<NoteType> |
getNoteTypes()
Return the set of note types that must be added to a model component.
|
Set<TagType> |
getTagTypes()
Return the set of tagged value types that must be added to a model component.
|
getModule
protected Set<ExportedFileEntry> files
public DefaultModelComponentContributor(IModule module)
public void addDependencyStereotype(Stereotype stereotype)
Only dependencies that own one of the stereotype of the set will be exported in the model component.
stereotype
- the stereotype to addpublic void addFiles(String exportedFile, String exportRelativePath)
The provided paths must be relative to the project path. If the provided path does not match a file in the project, it will be ignored.
exportedFile
- the file to package in the model component.exportRelativePath
- the path to deploy the file into.public void addNameSpace(NameSpace namespace)
namespace
- the namespace to addpublic void addNoteType(NoteType noteType)
noteType
- the note type to addpublic void addPropertyTableDefinition(PropertyTableDefinition propertySet)
propertySet
- the property set to addpublic void addPropertyType(PropertyType propertyType)
propertyType
- the property type to addpublic void addRequirementElement(AnalystElement element)
element
- the element to addpublic void addTagType(TagType tagType)
tagType
- the type to addpublic Set<Stereotype> getDependencyStereotypes()
The Strings returned by the method are the names of the stereotypes that extends the Dependency link. Only dependencies that own one of the stereotype of the set will be exported in the model component.
public Set<MObject> getElements()
public Set<ExportedFileEntry> getFiles()
The provided paths must be relative to the project path. If the provided path does not match a file in the project, it will be ignored.
public Set<NoteType> getNoteTypes()