public class DefaultModelComponentContributor extends AbstractModelComponentContributor
IModelComponentContributor
interface.Modifier and Type | Field and Description |
---|---|
protected java.util.Set<ExportedFileEntry> |
files |
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 |
addElement(MObject element)
Adds a model element that must be added to a model component.
|
void |
addFiles(java.lang.String exportedFile,
java.lang.String exportRelativePath)
Adds a file path to the set of files path 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 |
addTagType(TagType tagType)
Adds a tagged value to the set of tagged value types that must be added to a model component.
|
java.util.Set<Stereotype> |
getDependencyStereotypes()
Return the set of dependency stereotypes that must be added to a model component.
|
java.util.Set<MObject> |
getElements()
Return the set of Elements that must be added to a model component.
|
java.util.Set<ExportedFileEntry> |
getFiles()
Return the set of files path that must be added to a model component.
|
java.util.Set<NoteType> |
getNoteTypes()
Return the set of note types that must be added to a model component.
|
java.util.Set<TagType> |
getTagTypes()
Return the set of tagged value types that must be added to a model component.
|
getModule
public DefaultModelComponentContributor(IModule module)
module
- the module contibuting to the model component.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(java.lang.String exportedFile, java.lang.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 addNoteType(NoteType noteType)
noteType
- the note type to addpublic void addTagType(TagType tagType)
tagType
- the type to addpublic java.util.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 java.util.Set<MObject> getElements()
public java.util.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 java.util.Set<NoteType> getNoteTypes()
public java.util.Set<TagType> getTagTypes()
public void addElement(MObject element)
element
- the model element to add.