FileDocCategorySizeDatePackage
ProviderInfo.javaAPI DocphoneME MR2 API (J2ME)3835Wed May 02 18:00:44 BST 2007com.sun.j2me.payment

ProviderInfo

public class ProviderInfo extends Object
This class represents a provider specific part of the payment information. It can be read from the application manifest file or obtained from the associated update URL.
version
1.2

Fields Summary
private String
name
private String
adapter
private String
currency
private String
configuration
private double[]
prices
private String[]
paySpecificPriceInfo
Constructors Summary
public ProviderInfo(String name, String adapter, String configuration, String currency, double[] prices, String[] paySpecificPriceInfo)
Creates a new instance of ProviderInfo.

param
name the name of the provider
param
adapter the registered adapter
param
configuration the adapter configuration for the provider
param
currency the currency of the payment
param
prices the price for each price tag
param
paySpecificPriceInfo the provider specific price information for each price tag

        this.name = name;
        this.adapter = adapter;
        this.currency = currency;
        this.configuration = configuration;
        this.prices = prices;
        this.paySpecificPriceInfo = paySpecificPriceInfo;
    
Methods Summary
public final java.lang.StringgetAdapter()
Returns the adapter name.

return
the adapter name

        return adapter;
    
public final java.lang.StringgetConfiguration()
Returns the adapter configuration for the provider.

return
the adapter configuration

        return configuration;
    
public final java.lang.StringgetCurrency()
Returns the currency of the payment.

return
the currency

        return currency;
    
public final java.lang.StringgetName()
Returns the provider name.

return
the provider name

        return name;
    
public final intgetNumPriceTags()
Returns the number of price tags defined for the provider.

return
the number of price tags

        return (prices != null) ? prices.length : 0;
    
public final java.lang.StringgetPaySpecificPriceInfo(int index)
Returns the provider specific price information for the given price tag.

param
index the price tag index
return
the provider specific price information

        return paySpecificPriceInfo[index];
    
public final doublegetPrice(int index)
Returns the price for the given price tag.

param
index the price tag index
return
the price

        return prices[index];