Class EasySetup
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.EasySetup
Settings for EASy-Producer.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns additional IVML folders to be considered when loading the configuration model.getBase()Returns the target base for making relative artifact paths absolute.Returns the target folder for artifact generation.Returns the IVML configuration folder containing the platform configuration.Returns the IVML folder containing the platform meta model as well as the VIL and VTL scripts.Returns the IVML model name.Returns whether EASy-Producer verbose output, in particular during startup, shall be emitted.static StringReturns the folder for testing EASy models.voidreset()Resets the setup to default values, e.g., for testing.voidsetAdditionalIvmlFolders(List<File> additionalIvmlFolders) Returns additional IVML folders to be considered when loading the configuration model.voidDefines the base folder for making relative paths absolute.voidsetGenTarget(File genTarget) Defines the target folder for artifact generation.voidsetIvmlConfigFolder(File ivmlConfigFolder) Defines the IVML configuration folder containing the platform configuration.voidsetIvmlMetaModelFolder(File ivmlMetaModelFolder) Defines the IVML meta model folder containing the platform meta model.voidsetIvmlModelName(String ivmlModelName) Returns the IVML model name.voidsetLogLevel(EasyLogLevel logLevel) Defines whether EASy-Producer verbose output, in particular during startup, shall be emitted.
-
Field Details
-
PLATFORM_META_MODEL_NAME
- See Also:
-
base
-
genTarget
-
ivmlMetaModelFolder
-
ivmlConfigFolder
-
additionalIvmlFolders
-
ivmlModelName
-
logLevel
-
-
Constructor Details
-
EasySetup
public EasySetup()
-
-
Method Details
-
getTestingEasyModelParent
Returns the folder for testing EASy models.- Returns:
- the folder, per default ".", or the value in "-Dokto.test.easy.model.parent"
-
reset
public void reset()Resets the setup to default values, e.g., for testing. -
getIvmlModelName
Returns the IVML model name.- Returns:
- the IVML model name, by default "IIPEcosphere"
-
getBase
Returns the target base for making relative artifact paths absolute.- Returns:
- the base folder, by default
..
-
getGenTarget
Returns the target folder for artifact generation. Shall be withingetBase().- Returns:
- the target folder, by default
gen.
-
getIvmlMetaModelFolder
Returns the IVML folder containing the platform meta model as well as the VIL and VTL scripts.- Returns:
- the IVML folder folder, by default
modelif it exists orsrc/main/easy.
-
getIvmlConfigFolder
Returns the IVML configuration folder containing the platform configuration.- Returns:
- the IVML configuration folder if different from
getIvmlMetaModelFolder(), by default null.
-
setIvmlModelName
Returns the IVML model name. [required by SnakeYaml]- Parameters:
ivmlModelName- the IVML model name
-
setBase
Defines the base folder for making relative paths absolute. [required by SnakeYaml]- Parameters:
base- the base folder.
-
setGenTarget
Defines the target folder for artifact generation. [required by SnakeYaml]- Parameters:
genTarget- the target folder.
-
setIvmlMetaModelFolder
Defines the IVML meta model folder containing the platform meta model. This folder is not interpreted relative togetBase(). [required by SnakeYaml]- Parameters:
ivmlMetaModelFolder- the IVML meta model folder
-
setIvmlConfigFolder
Defines the IVML configuration folder containing the platform configuration. This folder is not interpreted relative togetBase(). [required by SnakeYaml]- Parameters:
ivmlConfigFolder- the IVML configuration folder, shall be null if it is the same asgetIvmlMetaModelFolder(), ignored if given and the same asgetIvmlMetaModelFolder()
-
getLogLevel
Returns whether EASy-Producer verbose output, in particular during startup, shall be emitted.- Returns:
truefor verbose output,falseelse
-
setLogLevel
Defines whether EASy-Producer verbose output, in particular during startup, shall be emitted. [required by SnakeYaml]- Parameters:
logLevel- the easy logging level
-
getAdditionalIvmlFolders
Returns additional IVML folders to be considered when loading the configuration model. Usually, additional IVML folders are only used in very specialized (test) setups, e.g., to reuse a part of the model while the remainder of the (managed) configuration is for separation purposes in a different folder on the same level.- Returns:
- the additional IVML folders, may be null for undefined
-
setAdditionalIvmlFolders
Returns additional IVML folders to be considered when loading the configuration model. Usually, additional IVML folders are only used in very specialized (test) setups, e.g., to reuse a part of the model while the remainder of the (managed) configuration is for separation purposes in a different folder on the same level.- Parameters:
additionalIvmlFolders- the additional IVML folders (may be null for none, or empty)
-