Class DataContractPricing

java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractPricing

public class DataContractPricing extends Object
This class represents the pricing information for the data described by an Open Data Contract Standard (ODCS) data contract.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).
    Return the subscription price per unit of measure.
    Return the currency of the subscription price (for example USD).
    Return the unit of measure used to calculate the cost (for example megabyte).
    int
    Return hash code based on properties.
    void
    Set up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).
    void
    setPriceAmount(Number priceAmount)
    Set up the subscription price per unit of measure.
    void
    setPriceCurrency(String priceCurrency)
    Set up the currency of the subscription price (for example USD).
    void
    setPriceUnit(String priceUnit)
    Set up the unit of measure used to calculate the cost (for example megabyte).
    Standard toString method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DataContractPricing

      public DataContractPricing()
      Default constructor
  • Method Details

    • getId

      public String getId()
      Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).
      Returns:
      string identifier
    • setId

      public void setId(String id)
      Set up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).
      Parameters:
      id - string identifier
    • getPriceAmount

      public Number getPriceAmount()
      Return the subscription price per unit of measure.
      Returns:
      numeric amount
    • setPriceAmount

      public void setPriceAmount(Number priceAmount)
      Set up the subscription price per unit of measure.
      Parameters:
      priceAmount - numeric amount
    • getPriceCurrency

      public String getPriceCurrency()
      Return the currency of the subscription price (for example USD).
      Returns:
      string currency code
    • setPriceCurrency

      public void setPriceCurrency(String priceCurrency)
      Set up the currency of the subscription price (for example USD).
      Parameters:
      priceCurrency - string currency code
    • getPriceUnit

      public String getPriceUnit()
      Return the unit of measure used to calculate the cost (for example megabyte).
      Returns:
      string unit
    • setPriceUnit

      public void setPriceUnit(String priceUnit)
      Set up the unit of measure used to calculate the cost (for example megabyte).
      Parameters:
      priceUnit - string unit
    • toString

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

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int