ClassUtils.getCanonicalName
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.commons.lang.ClassUtils.getCanonicalName(Showing top 6 results out of 315)

origin: commons-lang/commons-lang

/**
 * <p>Gets the canonical name minus the package name from a String.</p>
 *
 * <p>The string passed in is assumed to be a canonical name - it is not checked.</p>
 *
 * @param canonicalName  the class name to get the short name for
 * @return the canonical name of the class without the package name or an empty string
 * @since 2.4
 */
public static String getShortCanonicalName(String canonicalName) {
  return ClassUtils.getShortClassName(getCanonicalName(canonicalName));
}
origin: commons-lang/commons-lang

/**
 * <p>Gets the package name from the canonical name. </p>
 *
 * <p>The string passed in is assumed to be a canonical name - it is not checked.</p>
 * <p>If the class is unpackaged, return an empty string.</p>
 *
 * @param canonicalName  the canonical name to get the package name for, may be <code>null</code>
 * @return the package name or an empty string
 * @since 2.4
 */
public static String getPackageCanonicalName(String canonicalName) {
  return ClassUtils.getPackageName(getCanonicalName(canonicalName));
}
origin: intuit/wasabi

/**
 * <p>Gets the package name from the canonical name. </p>
 *
 * <p>The string passed in is assumed to be a canonical name - it is not checked.</p>
 * <p>If the class is unpackaged, return an empty string.</p>
 *
 * @param canonicalName  the canonical name to get the package name for, may be <code>null</code>
 * @return the package name or an empty string
 * @since 2.4
 */
public static String getPackageCanonicalName(String canonicalName) {
  return ClassUtils.getPackageName(getCanonicalName(canonicalName));
}
origin: intuit/wasabi

/**
 * <p>Gets the canonical name minus the package name from a String.</p>
 *
 * <p>The string passed in is assumed to be a canonical name - it is not checked.</p>
 *
 * @param canonicalName  the class name to get the short name for
 * @return the canonical name of the class without the package name or an empty string
 * @since 2.4
 */
public static String getShortCanonicalName(String canonicalName) {
  return ClassUtils.getShortClassName(getCanonicalName(canonicalName));
}
origin: org.apache.openjpa/openjpa-all

/**
 * <p>Gets the canonical name minus the package name from a String.</p>
 *
 * <p>The string passed in is assumed to be a canonical name - it is not checked.</p>
 *
 * @param canonicalName  the class name to get the short name for
 * @return the canonical name of the class without the package name or an empty string
 * @since 2.4
 */
public static String getShortCanonicalName(String canonicalName) {
  return ClassUtils.getShortClassName(getCanonicalName(canonicalName));
}
origin: org.apache.openjpa/openjpa-all

/**
 * <p>Gets the package name from the canonical name. </p>
 *
 * <p>The string passed in is assumed to be a canonical name - it is not checked.</p>
 * <p>If the class is unpackaged, return an empty string.</p>
 *
 * @param canonicalName  the canonical name to get the package name for, may be <code>null</code>
 * @return the package name or an empty string
 * @since 2.4
 */
public static String getPackageCanonicalName(String canonicalName) {
  return ClassUtils.getPackageName(getCanonicalName(canonicalName));
}
org.apache.commons.langClassUtilsgetCanonicalName

Javadoc

Converts a given name of class into canonical format. If name of class is not a name of array class it returns unchanged name.

Example:

  • getCanonicalName("[I") = "int[]"
  • getCanonicalName("[Ljava.lang.String;") = "java.lang.String[]"
  • getCanonicalName("java.lang.String") = "java.lang.String"

Popular methods of ClassUtils

  • getAllInterfaces
    Get the interfaces for the specified class.
  • getShortClassName
    Gets the class name minus the package name from a String. The string passed in is assumed to be a c
  • isAssignable
    Checks if an array of Classes can be assigned to another array of Classes. This method calls #isAss
  • primitiveToWrapper
    Converts the specified primitive Class object to its corresponding wrapper Class object. NOTE: From
  • wrapperToPrimitive
    Converts the specified wrapper class to its corresponding primitive class. This method is the count
  • getClass
    Returns the class represented by className using the current thread's context class loader. This imp
  • getAllSuperclasses
    Gets a List of superclasses for the given class.
  • getShortCanonicalName
    Gets the canonical name minus the package name from a String. The string passed in is assumed to be
  • getPackageCanonicalName
    Gets the package name from the canonical name. The string passed in is assumed to be a canonical n
  • getPackageName
    Gets the package name from a String. The string passed in is assumed to be a class name - it is not
  • toCanonicalName
    Converts a class name to a JLS style class name.
  • toCanonicalName

Popular classes and methods

  • setRequestProperty (URLConnection)
    Sets the value of the specified request header field. The value will only be used by the current URL
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • FlowLayout (java.awt)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)