Class Product

  • All Implemented Interfaces:
    java.io.Serializable

    public class Product
    extends java.lang.Object
    implements java.io.Serializable
    Product - supplementary product class
    Author:
    Karl Eilebrecht
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Product​(java.lang.String productId, java.lang.String productName)
      Creates product
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getProductId()
      Returns the system-id of the product
      java.lang.String getProductName()
      Returns the name of the product
      void setProductId​(java.lang.String productId)
      Sets the product-ID
      void setProductName​(java.lang.String productName)
      Sets the name of the product
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Product

        public Product​(java.lang.String productId,
                       java.lang.String productName)
        Creates product
        Parameters:
        productId - system-id of this product
        productName - name of the product
    • Method Detail

      • getProductName

        public java.lang.String getProductName()
        Returns the name of the product
        Returns:
        name of product
      • setProductName

        public void setProductName​(java.lang.String productName)
        Sets the name of the product
        Parameters:
        productName - name of product
      • setProductId

        public void setProductId​(java.lang.String productId)
        Sets the product-ID
        Parameters:
        productId - identifier
      • getProductId

        public java.lang.String getProductId()
        Returns the system-id of the product
        Returns:
        product id
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object