public class DefaultProduct extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements Product, Externalizable
| Constructor and Description |
|---|
DefaultProduct() |
DefaultProduct(String name,
ProductCategory category) |
public DefaultProduct()
public DefaultProduct(String name, ProductCategory category)
public String getCatalogName()
getCatalogName in interface Productpublic ProductCategory getCategory()
getCategory in interface Productpublic Collection<Product> getIncluded()
getIncluded in interface Productpublic StaticCatalog getCatalog()
getCatalog in interface Productpublic Collection<Product> getAvailable()
getAvailable in interface Productpublic CatalogEntityCollection<Product> getCatalogEntityCollectionAvailable()
public String getName()
getName in interface CatalogEntitypublic String getPrettyName()
getPrettyName in interface CatalogEntitypublic boolean isIncluded(DefaultProduct addon)
public boolean isAvailable(DefaultProduct addon)
public DefaultLimit[] getLimits()
public boolean compliesWithLimits(String unit, double value)
compliesWithLimits in interface Productpublic void initialize(StandaloneCatalog catalog)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public DefaultProduct setName(String name)
public DefaultProduct setPrettyName(String prettyName)
public DefaultProduct setCatagory(ProductCategory category)
public DefaultProduct setCategory(ProductCategory category)
public DefaultProduct setIncluded(Collection<Product> included)
public DefaultProduct setAvailable(Collection<Product> available)
public DefaultProduct setCatalogName(String catalogName)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2010–2021. All rights reserved.