Class AbstractYamlArtifact
java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractYamlArtifact
- Direct Known Subclasses:
YamlArtifact
Basic information about an artifact containing services, abstract because template-based service objects do not
work with SnakeYaml. By default, reference types are created based on the attribute definition in the class. As
soon as mechanisms are available to handle this, these additional classes may collapse into a more simple hierarchy.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.iip_aas.ApplicationSetupReturns the application setup.getId()Returns the name of the service.getName()Returns the name of the service.de.iip_ecosphere.platform.support.VersionReturns the version of the service.voidsetApplication(de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup application) Changes the application setup.voidDefines the id of the service.voidDefines the name of the service.voidsetVersion(de.iip_ecosphere.platform.support.Version version) Defines the version of the service.
-
Field Details
-
id
-
name
-
version
private de.iip_ecosphere.platform.support.Version version -
application
private de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup application
-
-
Constructor Details
-
AbstractYamlArtifact
public AbstractYamlArtifact()
-
-
Method Details
-
getApplication
public de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup getApplication()Returns the application setup.- Returns:
- the application setup
-
getId
Returns the name of the service.- Returns:
- the name
-
getName
Returns the name of the service.- Returns:
- the name
-
getVersion
public de.iip_ecosphere.platform.support.Version getVersion()Returns the version of the service.- Returns:
- the version
-
setApplication
public void setApplication(de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup application) Changes the application setup.- Parameters:
application- the application setup
-
setId
Defines the id of the service. [required by SnakeYaml]- Parameters:
id- the id
-
setName
Defines the name of the service. [required by SnakeYaml]- Parameters:
name- the name
-
setVersion
public void setVersion(de.iip_ecosphere.platform.support.Version version) Defines the version of the service. [required by SnakeYaml]- Parameters:
version- the version
-