public class NullRhapsodyFileMapper extends java.lang.Object implements RhapsodyFileMapper
"interfaceFileMapper"
is not defined and thus avoids
some NullPointerException
.Modifier and Type | Field and Description |
---|---|
static RhapsodyFileMapper |
INSTANCE
The unique instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addFileName(ModelElement element,
java.lang.String filename)
Add a filename to an element association list
Only 2 files are accepted by code generation, beyond the list is emptied.
|
java.lang.String |
addMainFileName(ModelElement element,
java.lang.String filename)
Define the single main file associated to the active configuration object
|
java.lang.String |
addMakeFileName(ModelElement element,
java.lang.String filename)
Define the single makefile associated to the active configuration object
|
java.lang.String |
addTargetFileName(ModelElement element,
java.lang.String filename)
Define the single target file (built application or library) associated
to the active configuration object
|
public static final RhapsodyFileMapper INSTANCE
public java.lang.String addFileName(ModelElement element, java.lang.String filename)
RhapsodyFileMapper
addFileName
in interface RhapsodyFileMapper
element
- A ModelElement-based object except
Configuration, for example: Package,
Class, Attribute, Operation, etc...filename
- full path filenamepublic java.lang.String addMainFileName(ModelElement element, java.lang.String filename)
RhapsodyFileMapper
addMainFileName
in interface RhapsodyFileMapper
element
- the active Configuration object onlyfilename
- full path filenamepublic java.lang.String addMakeFileName(ModelElement element, java.lang.String filename)
RhapsodyFileMapper
addMakeFileName
in interface RhapsodyFileMapper
element
- the active Configuration object onlyfilename
- full path filenamepublic java.lang.String addTargetFileName(ModelElement element, java.lang.String filename)
RhapsodyFileMapper
addTargetFileName
in interface RhapsodyFileMapper
element
- the active Configuration object onlyfilename
- full path filename