public class DefaultPlanPhase extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements PlanPhase
| Constructor and Description |
|---|
DefaultPlanPhase() |
DefaultPlanPhase(DefaultPlan parentPlan,
DefaultPlanPhase in,
PlanPhasePriceOverride override) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compliesWithLimits(String unit,
double value) |
boolean |
equals(Object o) |
Duration |
getDuration() |
Fixed |
getFixed() |
String |
getName() |
PhaseType |
getPhaseType() |
Recurring |
getRecurring() |
Usage[] |
getUsages() |
int |
hashCode() |
void |
initialize(StandaloneCatalog root,
URI uri) |
static String |
phaseName(String planName,
PhaseType phasetype) |
static String |
planName(String phaseName) |
DefaultPlanPhase |
setDuration(DefaultDuration duration) |
DefaultPlanPhase |
setFixed(DefaultFixed fixed) |
DefaultPlanPhase |
setPhaseType(PhaseType cohort) |
DefaultPlanPhase |
setPlan(Plan plan) |
DefaultPlanPhase |
setRecurring(DefaultRecurring recurring) |
DefaultPlanPhase |
setUsages(DefaultUsage[] usages) |
org.killbill.xmlloader.ValidationErrors |
validate(StandaloneCatalog catalog,
org.killbill.xmlloader.ValidationErrors errors) |
public DefaultPlanPhase()
public DefaultPlanPhase(DefaultPlan parentPlan, DefaultPlanPhase in, @Nullable PlanPhasePriceOverride override)
public static String planName(String phaseName) throws CatalogApiException
CatalogApiExceptionpublic PhaseType getPhaseType()
getPhaseType in interface PlanPhasepublic boolean compliesWithLimits(String unit, double value)
compliesWithLimits in interface PlanPhasepublic Recurring getRecurring()
getRecurring in interface PlanPhasepublic String getName()
getName in interface CatalogEntitypublic Duration getDuration()
getDuration in interface PlanPhasepublic org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public void initialize(StandaloneCatalog root, URI uri)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public DefaultPlanPhase setFixed(DefaultFixed fixed)
public DefaultPlanPhase setRecurring(DefaultRecurring recurring)
public DefaultPlanPhase setUsages(DefaultUsage[] usages)
public DefaultPlanPhase setPhaseType(PhaseType cohort)
public DefaultPlanPhase setDuration(DefaultDuration duration)
public DefaultPlanPhase setPlan(Plan plan)
Copyright © 2010-2016. All Rights Reserved.