Class AbstractYamlArtifact

  • Direct Known Subclasses:
    YamlArtifact

    public abstract class AbstractYamlArtifact
    extends java.lang.Object
    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 
      Modifier and Type Field Description
      private de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup application  
      private java.lang.String id  
      private java.lang.String name  
      private de.iip_ecosphere.platform.support.iip_aas.Version version  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup getApplication()
      Returns the application setup.
      java.lang.String getId()
      Returns the name of the service.
      java.lang.String getName()
      Returns the name of the service.
      de.iip_ecosphere.platform.support.iip_aas.Version getVersion()
      Returns the version of the service.
      void setApplication​(de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup application)
      Changes the application setup.
      void setId​(java.lang.String id)
      Defines the id of the service.
      void setName​(java.lang.String name)
      Defines the name of the service.
      void setVersion​(de.iip_ecosphere.platform.support.iip_aas.Version version)
      Defines the version of the service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        private java.lang.String id
      • name

        private java.lang.String name
      • version

        private de.iip_ecosphere.platform.support.iip_aas.Version version
      • application

        private de.iip_ecosphere.platform.support.iip_aas.ApplicationSetup application
    • Constructor Detail

      • AbstractYamlArtifact

        public AbstractYamlArtifact()
    • 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