Class DataContractPricing
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractPricing
This class represents the pricing information for the data described by an Open Data Contract Standard (ODCS)
data contract.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.getId()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).inthashCode()Return hash code based on properties.voidSet up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).voidsetPriceAmount(Number priceAmount) Set up the subscription price per unit of measure.voidsetPriceCurrency(String priceCurrency) Set up the currency of the subscription price (for example USD).voidsetPriceUnit(String priceUnit) Set up the unit of measure used to calculate the cost (for example megabyte).toString()Standard toString method.
-
Constructor Details
-
DataContractPricing
public DataContractPricing()Default constructor
-
-
Method Details
-
getId
Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).- Returns:
- string identifier
-
setId
Set up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).- Parameters:
id- string identifier
-
getPriceAmount
Return the subscription price per unit of measure.- Returns:
- numeric amount
-
setPriceAmount
Set up the subscription price per unit of measure.- Parameters:
priceAmount- numeric amount
-
getPriceCurrency
Return the currency of the subscription price (for example USD).- Returns:
- string currency code
-
setPriceCurrency
Set up the currency of the subscription price (for example USD).- Parameters:
priceCurrency- string currency code
-
getPriceUnit
Return the unit of measure used to calculate the cost (for example megabyte).- Returns:
- string unit
-
setPriceUnit
Set up the unit of measure used to calculate the cost (for example megabyte).- Parameters:
priceUnit- string unit
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-