Class DashboardMapper.MapperParams
java.lang.Object
de.iip_ecosphere.platform.configuration.cfg.DashboardMapper.MapperParams
- Enclosing interface:
DashboardMapper
Represents the mapper parameters.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMapperParams(String mainModelName, File modelFolder) Creates a params instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the main model name.Returns the metamodel folder.Returns the model folder.Returns the output file.Returns the plugin id.Returns the REST API URL.booleanReturns whether a pluginId was defined.booleanReturns whether a postURL was defined.booleanReturns whether the mapper shall produce a mapping for processes running in containers.setInContainer(boolean inContainer) Defines whether the mapper shall produce a mapping for processes running in containers.setMainModelName(String mainModelName) Defines the main model name.setMetaModelFolder(File metaModelFolder) Defines the metamodel folder.setModelFolder(File modelFolder) Defines the model folder.setOutputFile(File outputFile) Defines the output file.setPluginId(String pluginId) Sets the plugin id.setPostUrl(String postUrl) Sets the REST API URL.
-
Field Details
-
mainModelName
-
modelFolder
-
metaModelFolder
-
outputFile
-
pluginId
-
postUrl
-
inContainer
private boolean inContainer
-
-
Constructor Details
-
MapperParams
Creates a params instance.- Parameters:
mainModelName- the name of the configuration model to load/parsemodelFolder- the model folder
-
-
Method Details
-
getMainModelName
Returns the main model name.- Returns:
- the name of the configuration model to load/parse
-
setMainModelName
Defines the main model name.- Parameters:
mainModelName- the name of the configuration model to load/parse- Returns:
- this for chaining
-
getModelFolder
Returns the model folder.- Returns:
- the folder where the configuration model can be found
-
setModelFolder
Defines the model folder.- Parameters:
modelFolder- the folder where the configuration model can be found- Returns:
- this for chaining
-
getMetaModelFolder
Returns the metamodel folder.- Returns:
- the optional folder where the meta model can be found, may be null for none
-
setMetaModelFolder
Defines the metamodel folder.- Parameters:
metaModelFolder- optional folder where the meta model can be found, may be null for none- Returns:
- this for chaining
-
getOutputFile
Returns the output file.- Returns:
- optional output file where the dashboard specification shall be wrote to, if null a default location will be assumed
-
setOutputFile
Defines the output file.- Parameters:
outputFile- optional output file where the dashboard specification shall be wrote to, if null a default location will be assumed- Returns:
- this for chaining
-
getPluginId
Returns the plugin id.- Returns:
- the optional plugin id to use (may be null for the default, must be loaded before)
-
setPluginId
Sets the plugin id.- Parameters:
pluginId- the optional plugin id to use (may be null for the default, must be loaded before)- Returns:
- this for chaining
-
hasPluginId
public boolean hasPluginId()Returns whether a pluginId was defined.- Returns:
truefor there is a pluginId,falseelse
-
getPostUrl
Returns the REST API URL.- Returns:
- the URL for posting the result directly to a HTTP/REST API, may be null or empty for none
-
setPostUrl
Sets the REST API URL.- Parameters:
postUrl- the URL for posting the result directly to a HTTP/REST API, may be null or empty for none- Returns:
- this for chaining
-
hasPostUrl
public boolean hasPostUrl()Returns whether a postURL was defined.- Returns:
truefor there is a postUrl,falseelse
-
isInContainer
public boolean isInContainer()Returns whether the mapper shall produce a mapping for processes running in containers.- Returns:
- whether container configuration values are preferred
-
setInContainer
Defines whether the mapper shall produce a mapping for processes running in containers.- Parameters:
inContainer- whether container configuration values are preferred- Returns:
- this for chaining
-