Tabnine Logo
PackageState.getState
Code IndexAdd Tabnine to your IDE (free)

How to use
getState
method
in
org.jfree.base.modules.PackageState

Best Java code snippets using org.jfree.base.modules.PackageState.getState (Showing top 12 results out of 315)

origin: org.jfree/jcommon

/**
 * Returns all active modules. This array does only contain modules
 * which were successfully configured and initialized.
 *
 * @return the list of all active modules.
 */
public Module[] getActiveModules() {
  final ArrayList mods = new ArrayList();
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState state = (PackageState) this.modules.get(i);
    if (state.getState() == PackageState.STATE_INITIALIZED) {
      mods.add(state.getModule());
    }
  }
  return (Module[]) mods.toArray(new Module[mods.size()]);
}
origin: jfree/jcommon

/**
 * Returns all active modules. This array does only contain modules
 * which were successfully configured and initialized.
 *
 * @return the list of all active modules.
 */
public Module[] getActiveModules() {
  final ArrayList mods = new ArrayList();
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState state = (PackageState) this.modules.get(i);
    if (state.getState() == PackageState.STATE_INITIALIZED) {
      mods.add(state.getModule());
    }
  }
  return (Module[]) mods.toArray(new Module[mods.size()]);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns all active modules. This array does only contain modules
 * which were successfully configured and initialized.
 *
 * @return the list of all active modules.
 */
public Module[] getActiveModules() {
  final ArrayList mods = new ArrayList();
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState state = (PackageState) this.modules.get(i);
    if (state.getState() == PackageState.STATE_INITIALIZED) {
      mods.add(state.getModule());
    }
  }
  return (Module[]) mods.toArray(new Module[mods.size()]);
}
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

/**
 * 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: jfree/jcommon

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

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/com.springsource.org.jfree

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

if (state.getState() == PackageState.STATE_ERROR)
origin: org.jfree/jcommon

if (state.getState() == PackageState.STATE_ERROR)
origin: org.jfree/com.springsource.org.jfree

if (state.getState() == PackageState.STATE_ERROR)
org.jfree.base.modulesPackageStategetState

Javadoc

Returns the current state of the module. This method returns either STATE_NEW, STATE_CONFIGURED, STATE_INITIALIZED or STATE_ERROR.

Popular methods of PackageState

  • <init>
    Creates a new package state for the given module. The module state will be initialized to the given
  • configure
    Configures the module and raises the state to STATE_CONFIGURED if the module is not yet configured.
  • getModule
    Returns the module managed by this state implementation.
  • initialize
    Initializes the contained module and raises the set of the module to STATE_INITIALIZED, if the modul

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • Top plugins for WebStorm
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