congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
org.jfree.base.modules
Code IndexAdd Tabnine to your IDE (free)

How to use org.jfree.base.modules

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

origin: jfree/jcommon

/**
 * Returns the packageManager instance of the package manager.
 *
 * @return The package manager.
 */
public synchronized PackageManager getPackageManager() {
  if (this.packageManager == null) {
    this.packageManager = PackageManager.createInstance(this);
  }
  return this.packageManager;
}
origin: jfree/jcommon

/**
 * Checks, whether the reader contains a next line. Returns false if the end
 * of the stream has been reached.
 *
 * @return true, if there is a next line to read, false otherwise.
 * @throws IOException if an error occures.
 */
public boolean hasNext() throws IOException
{
 if (this.buffer == null)
 {
  this.buffer = readLine();
 }
 return this.buffer != null;
}
origin: org.jfree/jcommon

/**
 * Returns the modules subsystem. If this module is not part of an subsystem
 * then return the modules name, but never null.
 *
 * @return the name of the subsystem.
 */
public String getSubSystem()
{
 if (this.subsystem == null)
 {
  return getName();
 }
 return this.subsystem;
}
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: jfree/jcommon

/**
 * Checks, whether the next line in the reader is a value line.
 *
 * @param reader from where to read the lines.
 * @return true, if the next line is a value line, false otherwise.
 * @throws IOException if an IO error occurs.
 */
private boolean isNextLineValueLine (final ReaderHelper reader) throws IOException
{
 if (reader.hasNext() == false)
 {
  return false;
 }
 final String firstLine = reader.next();
 if (firstLine == null)
 {
  return false;
 }
 if (parseKey(firstLine) != null)
 {
  reader.pushBack(firstLine);
  return false;
 }
 reader.pushBack(firstLine);
 return true;
}
origin: jfree/jcommon

/**
 * Adds a module to the package manager.
 * Once all modules are added, you have to call initializeModules()
 * to configure and initialize the new modules.
 *
 * @param modClass the module class
 */
public synchronized void addModule(final String modClass) {
  final ArrayList loadModules = new ArrayList();
  final ModuleInfo modInfo = new DefaultModuleInfo
    (modClass, null, null, null);
  if (loadModule(modInfo, new ArrayList(), loadModules, false)) {
    for (int i = 0; i < loadModules.size(); i++) {
      final Module mod = (Module) loadModules.get(i);
      this.modules.add(new PackageState(mod));
    }
  }
}
origin: jfree/jcommon

/**
 * Returns a basic string representation of this SortModule. This
 * should be used for debugging purposes only.
 * @see java.lang.Object#toString()
 *
 * @return a string representation of this module.
 */
public String toString ()
{
 final StringBuffer buffer = new StringBuffer();
 buffer.append("SortModule: ");
 buffer.append(this.position);
 buffer.append(" ");
 buffer.append(this.state.getModule().getName());
 buffer.append(" ");
 buffer.append(this.state.getModule().getModuleClass());
 return buffer.toString();
}
origin: jfree/jcommon

/**
 * Returns an array of the currently active modules. The module definition
 * returned contain all known modules, including buggy and unconfigured
 * instances.
 *
 * @return the modules.
 */
public Module[] getAllModules() {
  final Module[] mods = new Module[this.modules.size()];
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState state = (PackageState) this.modules.get(i);
    mods[i] = state.getModule();
  }
  return mods;
}
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/jcommon

/**
 * Adds a module to the package manager.
 * Once all modules are added, you have to call initializeModules()
 * to configure and initialize the new modules.
 *
 * @param modClass the module class
 */
public synchronized void addModule(final String modClass) {
  final ArrayList loadModules = new ArrayList();
  final ModuleInfo modInfo = new DefaultModuleInfo
    (modClass, null, null, null);
  if (loadModule(modInfo, new ArrayList(), loadModules, false)) {
    for (int i = 0; i < loadModules.size(); i++) {
      final Module mod = (Module) loadModules.get(i);
      this.modules.add(new PackageState(mod));
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns a basic string representation of this SortModule. This
 * should be used for debugging purposes only.
 * @see java.lang.Object#toString()
 *
 * @return a string representation of this module.
 */
public String toString ()
{
 final StringBuffer buffer = new StringBuffer();
 buffer.append("SortModule: ");
 buffer.append(this.position);
 buffer.append(" ");
 buffer.append(this.state.getModule().getName());
 buffer.append(" ");
 buffer.append(this.state.getModule().getModuleClass());
 return buffer.toString();
}
origin: org.jfree/jcommon

/**
 * Returns the packageManager instance of the package manager.
 *
 * @return The package manager.
 */
public synchronized PackageManager getPackageManager() {
  if (this.packageManager == null) {
    this.packageManager = PackageManager.createInstance(this);
  }
  return this.packageManager;
}
origin: org.jfree/jcommon

/**
 * Checks, whether the reader contains a next line. Returns false if the end
 * of the stream has been reached.
 *
 * @return true, if there is a next line to read, false otherwise.
 * @throws IOException if an error occures.
 */
public boolean hasNext() throws IOException
{
 if (this.buffer == null)
 {
  this.buffer = readLine();
 }
 return this.buffer != null;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the modules subsystem. If this module is not part of an subsystem
 * then return the modules name, but never null.
 *
 * @return the name of the subsystem.
 */
public String getSubSystem()
{
 if (this.subsystem == null)
 {
  return getName();
 }
 return this.subsystem;
}
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: org.jfree/com.springsource.org.jfree

/**
 * Adds a module to the package manager.
 * Once all modules are added, you have to call initializeModules()
 * to configure and initialize the new modules.
 *
 * @param modClass the module class
 */
public synchronized void addModule(final String modClass) {
  final ArrayList loadModules = new ArrayList();
  final ModuleInfo modInfo = new DefaultModuleInfo
    (modClass, null, null, null);
  if (loadModule(modInfo, new ArrayList(), loadModules, false)) {
    for (int i = 0; i < loadModules.size(); i++) {
      final Module mod = (Module) loadModules.get(i);
      this.modules.add(new PackageState(mod));
    }
  }
}
origin: org.jfree/jcommon

/**
 * Returns a basic string representation of this SortModule. This
 * should be used for debugging purposes only.
 * @see java.lang.Object#toString()
 *
 * @return a string representation of this module.
 */
public String toString ()
{
 final StringBuffer buffer = new StringBuffer();
 buffer.append("SortModule: ");
 buffer.append(this.position);
 buffer.append(" ");
 buffer.append(this.state.getModule().getName());
 buffer.append(" ");
 buffer.append(this.state.getModule().getModuleClass());
 return buffer.toString();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the packageManager instance of the package manager.
 *
 * @return The package manager.
 */
public synchronized PackageManager getPackageManager() {
  if (this.packageManager == null) {
    this.packageManager = PackageManager.createInstance(this);
  }
  return this.packageManager;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether the reader contains a next line. Returns false if the end
 * of the stream has been reached.
 *
 * @return true, if there is a next line to read, false otherwise.
 * @throws IOException if an error occures.
 */
public boolean hasNext() throws IOException
{
 if (this.buffer == null)
 {
  this.buffer = readLine();
 }
 return this.buffer != null;
}
origin: jfree/jcommon

/**
 * Returns the modules subsystem. If this module is not part of an subsystem
 * then return the modules name, but never null.
 *
 * @return the name of the subsystem.
 */
public String getSubSystem()
{
 if (this.subsystem == null)
 {
  return getName();
 }
 return this.subsystem;
}
org.jfree.base.modules

Most used classes

  • AbstractModule$ReaderHelper
    The reader helper provides a pushback interface for the reader to read and buffer complete lines.
  • AbstractModule
    The abstract module provides a default implementation of the module interface. The module can be sp
  • DefaultModuleInfo
    Provides a default implementation of the module info interface.
  • Module
    A module encapsulates optional functionality within a project. Modules can be used as an easy way to
  • ModuleInfo
    The Module info class encapsulates metadata about a given module. It holds the list of dependencies
  • ModuleInitializer,
  • PackageManager$PackageConfiguration,
  • PackageManager,
  • PackageSorter$SortModule,
  • PackageSorter,
  • PackageState,
  • SubSystem
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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