Tabnine Logo
PriceListDefault.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
com.ning.billing.catalog.PriceListDefault

Best Java code snippets using com.ning.billing.catalog.PriceListDefault.getName (Showing top 2 results out of 315)

origin: com.ning.billing/killbill-catalog

@Override
public ValidationErrors validate(final StandaloneCatalog catalog, final ValidationErrors errors) {
  super.validate(catalog, errors);
  if (!getName().equals(PriceListSet.DEFAULT_PRICELIST_NAME)) {
    errors.add(new ValidationError("The name of the default pricelist must be 'DEFAULT'",
                    catalog.getCatalogURI(), DefaultPriceList.class, getName()));
  }
  return errors;
}
origin: com.ning.billing/killbill-catalog

public DefaultPriceList findPriceListFrom(final String priceListName) throws CatalogApiException {
  if (priceListName == null) {
    throw new CatalogApiException(ErrorCode.CAT_NULL_PRICE_LIST_NAME);
  }
  if (defaultPricelist.getName().equals(priceListName)) {
    return defaultPricelist;
  }
  for (final DefaultPriceList pl : childPriceLists) {
    if (pl.getName().equals(priceListName)) {
      return pl;
    }
  }
  throw new CatalogApiException(ErrorCode.CAT_PRICE_LIST_NOT_FOUND, priceListName);
}
com.ning.billing.catalogPriceListDefaultgetName

Popular methods of PriceListDefault

  • <init>
  • findPlan
  • validate

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • JButton (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now