Class AbstractYamlArtifact
- java.lang.Object
-
- de.iip_ecosphere.platform.services.environment.AbstractYamlArtifact
-
- Direct Known Subclasses:
YamlArtifact
public abstract class AbstractYamlArtifact extends java.lang.ObjectBasic 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 Modifier and Type Field Description private de.iip_ecosphere.platform.support.iip_aas.ApplicationSetupapplicationprivate java.lang.Stringidprivate java.lang.Stringnameprivate de.iip_ecosphere.platform.support.iip_aas.Versionversion
-
Constructor Summary
Constructors Constructor Description AbstractYamlArtifact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.iip_ecosphere.platform.support.iip_aas.ApplicationSetupgetApplication()Returns the application setup.java.lang.StringgetId()Returns the name of the service.java.lang.StringgetName()Returns the name of the service.de.iip_ecosphere.platform.support.iip_aas.VersiongetVersion()Returns the version of the service.voidsetApplication(de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup application)Changes the application setup.voidsetId(java.lang.String id)Defines the id of the service.voidsetName(java.lang.String name)Defines the name of the service.voidsetVersion(de.iip_ecosphere.platform.support.iip_aas.Version version)Defines the version of the service.
-
-
-
Method Detail
-
getApplication
public de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup getApplication()
Returns the application setup.- Returns:
- the application setup
-
getId
public java.lang.String getId()
Returns the name of the service.- Returns:
- the name
-
getName
public java.lang.String getName()
Returns the name of the service.- Returns:
- the name
-
getVersion
public de.iip_ecosphere.platform.support.iip_aas.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
public void setId(java.lang.String id)
Defines the id of the service. [required by SnakeYaml]- Parameters:
id- the id
-
setName
public void setName(java.lang.String name)
Defines the name of the service. [required by SnakeYaml]- Parameters:
name- the name
-
setVersion
public void setVersion(de.iip_ecosphere.platform.support.iip_aas.Version version)
Defines the version of the service. [required by SnakeYaml]- Parameters:
version- the version
-
-