public class Price
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Price.Type
Valid values are
rent, purchase, package or subscription. |
| Constructor and Description |
|---|
Price() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Currency |
getCurrency()
use ISO 4217
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. |
java.net.URL |
getInfo()
if the type is "package" or "subscription", then info is a URL pointing to package or subscription information.
|
java.math.BigDecimal |
getPrice()
price is the price of the media object.
|
Price.Type |
getType()
Valid values are "rent", "purchase", "package" or "subscription".
|
int |
hashCode() |
void |
setCurrency(java.util.Currency currency)
use ISO 4217
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. |
void |
setInfo(java.net.URL info)
if the type is "package" or "subscription", then info is a URL pointing to package or subscription information.
|
void |
setPrice(java.math.BigDecimal price)
price is the price of the media object.
|
void |
setType(Price.Type type)
Valid values are "rent", "purchase", "package" or "subscription".
|
java.lang.String |
toString() |
public Price.Type getType()
public void setType(Price.Type type)
type - the typepublic java.math.BigDecimal getPrice()
public void setPrice(java.math.BigDecimal price)
price - the pricepublic java.util.Currency getCurrency()
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. This is an optional attribute.public void setCurrency(java.util.Currency currency)
http://en.wikipedia.org/wiki/ISO_4217 for currency codes. This is an optional attribute.currency - ISO 4217 currency codepublic java.net.URL getInfo()
public void setInfo(java.net.URL info)
info - urlpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2025. All rights reserved.