Tabnine Logo
ModuleInfo.getModuleClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getModuleClass
method
in
org.jfree.base.modules.ModuleInfo

Best Java code snippets using org.jfree.base.modules.ModuleInfo.getModuleClass (Showing top 20 results out of 315)

origin: jfree/jcommon

/**
 * Two moduleinfos are equal,if they have the same module class.
 *
 * @param o the other object to compare.
 * @return true, if the module points to the same module, false otherwise.
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof DefaultModuleInfo))
 {
  return false;
 }
 final ModuleInfo defaultModuleInfo = (ModuleInfo) o;
 if (!this.moduleClass.equals(defaultModuleInfo.getModuleClass()))
 {
  return false;
 }
 return true;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Two moduleinfos are equal,if they have the same module class.
 *
 * @param o the other object to compare.
 * @return true, if the module points to the same module, false otherwise.
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof DefaultModuleInfo))
 {
  return false;
 }
 final ModuleInfo defaultModuleInfo = (ModuleInfo) o;
 if (!this.moduleClass.equals(defaultModuleInfo.getModuleClass()))
 {
  return false;
 }
 return true;
}
origin: org.jfree/jcommon

/**
 * Two moduleinfos are equal,if they have the same module class.
 *
 * @param o the other object to compare.
 * @return true, if the module points to the same module, false otherwise.
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof DefaultModuleInfo))
 {
  return false;
 }
 final ModuleInfo defaultModuleInfo = (ModuleInfo) o;
 if (!this.moduleClass.equals(defaultModuleInfo.getModuleClass()))
 {
  return false;
 }
 return true;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether a module is a base module of an given module.
 *
 * @param mod the module which to check
 * @param mi the module info of the suspected base module.
 * @return true, if the given module info describes a base module of the
 * given module, false otherwise.
 */
private static boolean isBaseModule(final Module mod, final ModuleInfo mi)
{
 ModuleInfo[] info = mod.getRequiredModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 info = mod.getOptionalModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 return false;
}
origin: jfree/jcommon

/**
 * Checks, whether a module is a base module of an given module.
 *
 * @param mod the module which to check
 * @param mi the module info of the suspected base module.
 * @return true, if the given module info describes a base module of the
 * given module, false otherwise.
 */
private static boolean isBaseModule(final Module mod, final ModuleInfo mi)
{
 ModuleInfo[] info = mod.getRequiredModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 info = mod.getOptionalModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 return false;
}
origin: org.jfree/jcommon

/**
 * Checks, whether a module is a base module of an given module.
 *
 * @param mod the module which to check
 * @param mi the module info of the suspected base module.
 * @return true, if the given module info describes a base module of the
 * given module, false otherwise.
 */
private static boolean isBaseModule(final Module mod, final ModuleInfo mi)
{
 ModuleInfo[] info = mod.getRequiredModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 info = mod.getOptionalModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 return false;
}
origin: org.jfree/com.springsource.org.jfree

    tempModules.toArray(new ModuleInfo[tempModules.size()]);
  for (int i = 0; i < mods.length; i++) {
    if (mods[i].getModuleClass().equals(module.getModuleClass())) {
      return RETURN_MODULE_LOADED;
  (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
for (int i = 0; i < packageStates.length; i++) {
  if (packageStates[i].getModule().getModuleClass().equals(module.getModuleClass())) {
    if (packageStates[i].getState() == PackageState.STATE_ERROR) {
      return RETURN_MODULE_ERROR;
origin: org.jfree/jcommon

    tempModules.toArray(new ModuleInfo[tempModules.size()]);
  for (int i = 0; i < mods.length; i++) {
    if (mods[i].getModuleClass().equals(module.getModuleClass())) {
      return RETURN_MODULE_LOADED;
  (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
for (int i = 0; i < packageStates.length; i++) {
  if (packageStates[i].getModule().getModuleClass().equals(module.getModuleClass())) {
    if (packageStates[i].getState() == PackageState.STATE_ERROR) {
      return RETURN_MODULE_ERROR;
origin: jfree/jcommon

    tempModules.toArray(new ModuleInfo[tempModules.size()]);
  for (int i = 0; i < mods.length; i++) {
    if (mods[i].getModuleClass().equals(module.getModuleClass())) {
      return RETURN_MODULE_LOADED;
  (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
for (int i = 0; i < packageStates.length; i++) {
  if (packageStates[i].getModule().getModuleClass().equals(module.getModuleClass())) {
    if (packageStates[i].getState() == PackageState.STATE_ERROR) {
      return RETURN_MODULE_ERROR;
origin: jfree/jcommon

/**
 * Checks, whether a certain module is available.
 *
 * @param moduleDescription the module description of the desired module.
 * @return true, if the module is available and the version of the module
 *         is compatible, false otherwise.
 */
public boolean isModuleAvailable(final ModuleInfo moduleDescription) {
  final PackageState[] packageStates =
    (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
  for (int i = 0; i < packageStates.length; i++) {
    final PackageState state = packageStates[i];
    if (state.getModule().getModuleClass().equals(moduleDescription.getModuleClass())) {
      return (state.getState() == PackageState.STATE_INITIALIZED);
    }
  }
  return false;
}
origin: org.jfree/jcommon

/**
 * Checks, whether a certain module is available.
 *
 * @param moduleDescription the module description of the desired module.
 * @return true, if the module is available and the version of the module
 *         is compatible, false otherwise.
 */
public boolean isModuleAvailable(final ModuleInfo moduleDescription) {
  final PackageState[] packageStates =
    (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
  for (int i = 0; i < packageStates.length; i++) {
    final PackageState state = packageStates[i];
    if (state.getModule().getModuleClass().equals(moduleDescription.getModuleClass())) {
      return (state.getState() == PackageState.STATE_INITIALIZED);
    }
  }
  return false;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether a certain module is available.
 *
 * @param moduleDescription the module description of the desired module.
 * @return true, if the module is available and the version of the module
 *         is compatible, false otherwise.
 */
public boolean isModuleAvailable(final ModuleInfo moduleDescription) {
  final PackageState[] packageStates =
    (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
  for (int i = 0; i < packageStates.length; i++) {
    final PackageState state = packageStates[i];
    if (state.getModule().getModuleClass().equals(moduleDescription.getModuleClass())) {
      return (state.getState() == PackageState.STATE_INITIALIZED);
    }
  }
  return false;
}
origin: jfree/jcommon

  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
  (new Log.SimpleMessage
   ("A dependent module was not found in the list of known modules.",
   info[i].getModuleClass()));
 continue;
  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
origin: org.jfree/jcommon

  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
  (new Log.SimpleMessage
   ("A dependent module was not found in the list of known modules.",
   info[i].getModuleClass()));
 continue;
  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
origin: org.jfree/com.springsource.org.jfree

  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
  (new Log.SimpleMessage
   ("A dependent module was not found in the list of known modules.",
   info[i].getModuleClass()));
 continue;
  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
origin: jfree/jcommon

for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
origin: org.jfree/jcommon

for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
origin: jfree/jcommon

try {
  final Class c = ObjectUtilities.getClassLoader(getClass()).loadClass(moduleInfo.getModuleClass());
  final Module module = (Module) c.newInstance();
      if (loadModule(optional[i], incompleteModules, modules, true) == false) {
        Log.debug(new Log.SimpleMessage("Optional module: ",
          optional[i].getModuleClass(), " was not loaded."));
  if (fatal) {
    Log.warn(new Log.SimpleMessage
      ("Unresolved dependency for package: ", moduleInfo.getModuleClass()));
origin: org.jfree/jcommon

try {
  final Class c = ObjectUtilities.getClassLoader(getClass()).loadClass(moduleInfo.getModuleClass());
  final Module module = (Module) c.newInstance();
      if (loadModule(optional[i], incompleteModules, modules, true) == false) {
        Log.debug(new Log.SimpleMessage("Optional module: ",
          optional[i].getModuleClass(), " was not loaded."));
  if (fatal) {
    Log.warn(new Log.SimpleMessage
      ("Unresolved dependency for package: ", moduleInfo.getModuleClass()));
origin: org.jfree/com.springsource.org.jfree

try {
  final Class c = ObjectUtilities.getClassLoader(getClass()).loadClass(moduleInfo.getModuleClass());
  final Module module = (Module) c.newInstance();
      if (loadModule(optional[i], incompleteModules, modules, true) == false) {
        Log.debug(new Log.SimpleMessage("Optional module: ",
          optional[i].getModuleClass(), " was not loaded."));
  if (fatal) {
    Log.warn(new Log.SimpleMessage
      ("Unresolved dependency for package: ", moduleInfo.getModuleClass()));
org.jfree.base.modulesModuleInfogetModuleClass

Javadoc

Returns the module class of the desired base module.

Popular methods of ModuleInfo

  • getMajorVersion
    Returns the major version of the base module. The string should contain a compareable character sequ
  • getMinorVersion
    Returns the minor version of the base module. The string should contain a compareable character sequ
  • getPatchLevel
    Returns the patchlevel version of the base module. The patch level should be used to mark bugfixes.

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • Kernel (java.awt.image)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Collectors (java.util.stream)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
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