public class DigitalProductProperties extends CollectionProperties
DigitalProductProperties describes the properties that describe a digital product.
  • Constructor Details

    • DigitalProductProperties

      public DigitalProductProperties()
      Default constructor
    • DigitalProductProperties

      public DigitalProductProperties(DigitalProductProperties template)
      Copy/clone constructor.
      Parameters:
      template - template object to copy.
  • Method Details

    • getUserDefinedStatus

      public String getUserDefinedStatus()
      Return the status of the product.
      Returns:
      string
    • setUserDefinedStatus

      public void setUserDefinedStatus(String userDefinedStatus)
      Set up the status of the product
      Parameters:
      userDefinedStatus - string
    • getProductName

      public String getProductName()
      Return the product name.
      Returns:
      string name
    • setProductName

      public void setProductName(String productName)
      Set up the product name.
      Parameters:
      productName - string name
    • getIdentifier

      public String getIdentifier()
      Return the product's identifier
      Returns:
      string
    • setIdentifier

      public void setIdentifier(String identifier)
      Set up the product's identifier.
      Parameters:
      identifier - string
    • getProductType

      public String getProductType()
      Return the type of product.
      Returns:
      string name
    • setProductType

      public void setProductType(String productType)
      Set up the type of product.
      Parameters:
      productType - string name
    • getIntroductionDate

      public Date getIntroductionDate()
      Return the date that the product was added to the market.
      Returns:
      date
    • setIntroductionDate

      public void setIntroductionDate(Date introductionDate)
      Set up the date that the product was added to the market.
      Parameters:
      introductionDate - date
    • getMaturity

      public String getMaturity()
      Return the maturity level of the product.
      Returns:
      string name
    • setMaturity

      public void setMaturity(String maturity)
      Set up the maturity level of the product.
      Parameters:
      maturity - string name
    • getServiceLife

      public String getServiceLife()
      Return the estimated lifetime of the product.
      Returns:
      text
    • setServiceLife

      public void setServiceLife(String serviceLife)
      Set up the estimated lifetime of the product.
      Parameters:
      serviceLife - text
    • getCurrentVersion

      public String getCurrentVersion()
      Return the identifier of the current version.
      Returns:
      string name
    • setCurrentVersion

      public void setCurrentVersion(String currentVersion)
      Set up the identifier of the current version.
      Parameters:
      currentVersion - string name
    • getNextVersionDate

      public Date getNextVersionDate()
      Return the date of the next version of the digital service.
      Returns:
      date
    • setNextVersionDate

      public void setNextVersionDate(Date nextVersionDate)
      Set up the date of the next version of the digital service.
      Parameters:
      nextVersionDate - date
    • getWithdrawDate

      public Date getWithdrawDate()
      Return the date when the product is being withdrawn.
      Returns:
      date
    • setWithdrawDate

      public void setWithdrawDate(Date withdrawDate)
      Set up the date when the product is being withdrawn.
      Parameters:
      withdrawDate - date
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class CollectionProperties
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class CollectionProperties
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class CollectionProperties
      Returns:
      int hash code