Tabnine Logo
Bindable.prefix
Code IndexAdd Tabnine to your IDE (free)

How to use
prefix
method
in
org.carrot2.util.attribute.Bindable

Best Java code snippets using org.carrot2.util.attribute.Bindable.prefix (Showing top 2 results out of 315)

origin: org.carrot2.attributes/attributes-processor

/**
 * Return the bindable's prefix or <code>null</code> if empty/ not present.
 */
private String getBindablePrefix(TypeElement bindable)
{
  String prefix = bindable.getAnnotation(Bindable.class).prefix().trim();
  if (prefix.length() > 0)
    return prefix;
  else
    return null;
}
origin: org.carrot2.attributes/attributes-binder

  /**
   * Returns the prefix of a {@link Bindable} type or the the fully qualified class name
   * if the prefix is not defined.
   */
  static String getPrefix(Class<?> bindableClass)
  {
    final Bindable bindable = bindableClass.getAnnotation(Bindable.class);
    if (bindable == null)
    {
      throw new IllegalArgumentException("The argument must have @"
        + Bindable.class.getSimpleName() + " annotation");
    }

    if ("".equals(bindable.prefix()))
    {
      return bindableClass.getName();
    }
    else
    {
      return bindable.prefix();
    }
  }
}
org.carrot2.util.attributeBindableprefix

Popular methods of Bindable

  • <init>

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JTable (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text 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