public abstract class DefaultCaseChange<T> extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements org.killbill.billing.catalog.api.rules.CaseChange
| Constructor and Description |
|---|
DefaultCaseChange() |
protected PhaseType phaseType
protected abstract T getResult()
public T getResult(PlanPhaseSpecifier from, PlanSpecifier to, StaticCatalog catalog) throws CatalogApiException
CatalogApiExceptionpublic static <K> K getResult(DefaultCaseChange<K>[] cases, PlanPhaseSpecifier from, PlanSpecifier to, StaticCatalog catalog) throws CatalogApiException
CatalogApiExceptionpublic org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public DefaultCaseChange<T> setPhaseType(PhaseType phaseType)
public DefaultCaseChange<T> setFromProduct(Product fromProduct)
public DefaultCaseChange<T> setFromProductCategory(ProductCategory fromProductCategory)
public DefaultCaseChange<T> setFromBillingPeriod(BillingPeriod fromBillingPeriod)
public DefaultCaseChange<T> setFromPriceList(DefaultPriceList fromPriceList)
public DefaultCaseChange<T> setToProduct(Product toProduct)
public DefaultCaseChange<T> setToProductCategory(ProductCategory toProductCategory)
public DefaultCaseChange<T> setToBillingPeriod(BillingPeriod toBillingPeriod)
public DefaultCaseChange<T> setToPriceList(DefaultPriceList toPriceList)
public PhaseType getPhaseType()
getPhaseType in interface org.killbill.billing.catalog.api.rules.CaseChangepublic Product getFromProduct()
getFromProduct in interface org.killbill.billing.catalog.api.rules.CaseChangepublic ProductCategory getFromProductCategory()
getFromProductCategory in interface org.killbill.billing.catalog.api.rules.CaseChangepublic BillingPeriod getFromBillingPeriod()
getFromBillingPeriod in interface org.killbill.billing.catalog.api.rules.CaseChangepublic PriceList getFromPriceList()
getFromPriceList in interface org.killbill.billing.catalog.api.rules.CaseChangepublic Product getToProduct()
getToProduct in interface org.killbill.billing.catalog.api.rules.CaseChangepublic ProductCategory getToProductCategory()
getToProductCategory in interface org.killbill.billing.catalog.api.rules.CaseChangepublic BillingPeriod getToBillingPeriod()
getToBillingPeriod in interface org.killbill.billing.catalog.api.rules.CaseChangepublic PriceList getToPriceList()
getToPriceList in interface org.killbill.billing.catalog.api.rules.CaseChangeCopyright © 2010-2016. All Rights Reserved.