java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.SoftwareFacetImpl
All Implemented Interfaces:
Serializable, org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.base.reference.entities.EntityElement, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.base.reference.SchemaMixedElement, org.gcube.informationsystem.model.reference.entities.Entity, org.gcube.informationsystem.model.reference.entities.Facet, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.model.reference.ModelElement, SoftwareFacet, Named

public class SoftwareFacetImpl extends org.gcube.informationsystem.model.impl.entities.FacetImpl implements SoftwareFacet
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The description of the software
    protected String
    The group of the software
    protected String
    The name of the software
    protected boolean
    Whether the software is optional
    protected String
    The qualifier of the software
    protected String
    The version of the software

    Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

    additionalProperties, allowedAdditionalKeys

    Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

    contexts, expectedtype, supertypes

    Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

    metadata, uuid

    Fields inherited from interface org.gcube.informationsystem.base.reference.Element

    DATETIME_PATTERN, NAME, TYPE_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity

    NAME

    Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement

    NAME

    Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement

    CONTEXTS_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

    NAME

    Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement

    ID_PROPERTY, METADATA_PROPERTY

    Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

    EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY

    Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named

    NAME_PROPERTY

    Fields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacet

    DESCRIPTION_PROPERTY, GROUP_PROPERTY, NAME, OPTIONAL_PROPERTY, QUALIFIER_PROPERTY, VERSION_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    A human oriented description of the software artifact being described
    The name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)
    The name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)
    A qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64
    The particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)
    boolean
    Used to indicate the software optionality, e.g., optional in maven coordinates
    void
    setDescription(String description)
    Sets a human oriented description of the software artifact being described
    void
    Sets the name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)
    void
    Sets the name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)
    void
    setOptional(boolean optional)
    Sets the software optionality, e.g., optional in maven coordinates
    void
    setQualifier(String qualifier)
    Sets a qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64
    void
    setVersion(String version)
    Sets the particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)

    Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

    addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty

    Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

    getContexts, getExpectedtype, getSupertypes, setContexts

    Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

    getID, getMetadata, setID, setMetadata

    Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl

    getTypeName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.gcube.informationsystem.base.reference.Element

    getTypeName

    Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement

    getID, getMetadata, setID, setMetadata

    Methods inherited from interface org.gcube.informationsystem.model.reference.ERElement

    getContexts

    Methods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

    getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty

    Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

    getExpectedtype, getSupertypes
  • Field Details

    • name

      protected String name
      The name of the software
    • group

      protected String group
      The group of the software
    • version

      protected String version
      The version of the software
    • description

      protected String description
      The description of the software
    • qualifier

      protected String qualifier
      The qualifier of the software
    • optional

      protected boolean optional
      Whether the software is optional
  • Constructor Details

    • SoftwareFacetImpl

      public SoftwareFacetImpl()
  • Method Details

    • getName

      public String getName()
      The name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)
      Specified by:
      getName in interface Named
      Specified by:
      getName in interface SoftwareFacet
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)
      Specified by:
      setName in interface Named
      Specified by:
      setName in interface SoftwareFacet
      Parameters:
      name - the name
    • getGroup

      public String getGroup()
      The name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)
      Specified by:
      getGroup in interface SoftwareFacet
      Returns:
      the group
    • setGroup

      public void setGroup(String group)
      Sets the name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)
      Specified by:
      setGroup in interface SoftwareFacet
      Parameters:
      group - the group
    • getVersion

      public String getVersion()
      The particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)
      Specified by:
      getVersion in interface SoftwareFacet
      Returns:
      the version
    • setVersion

      public void setVersion(String version)
      Sets the particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)
      Specified by:
      setVersion in interface SoftwareFacet
      Parameters:
      version - the version
    • getDescription

      public String getDescription()
      A human oriented description of the software artifact being described
      Specified by:
      getDescription in interface SoftwareFacet
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets a human oriented description of the software artifact being described
      Specified by:
      setDescription in interface SoftwareFacet
      Parameters:
      description - the description
    • getQualifier

      public String getQualifier()
      A qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64
      Specified by:
      getQualifier in interface SoftwareFacet
      Returns:
      the qualifier
    • setQualifier

      public void setQualifier(String qualifier)
      Sets a qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64
      Specified by:
      setQualifier in interface SoftwareFacet
      Parameters:
      qualifier - the qualifier
    • isOptional

      public boolean isOptional()
      Used to indicate the software optionality, e.g., optional in maven coordinates
      Specified by:
      isOptional in interface SoftwareFacet
      Returns:
      true if the software is optional
    • setOptional

      public void setOptional(boolean optional)
      Sets the software optionality, e.g., optional in maven coordinates
      Specified by:
      setOptional in interface SoftwareFacet
      Parameters:
      optional - true if the software is optional