congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractModule
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractModule
in
org.jfree.base.modules

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

origin: org.jfree/jcommon

/**
 * Returns a string representation of this module.
 * @see java.lang.Object#toString()
 *
 * @return the string representation of this module for debugging purposes.
 */
public String toString()
{
 final StringBuffer buffer = new StringBuffer();
 buffer.append("Module : ");
 buffer.append(getName());
 buffer.append("\n");
 buffer.append("ModuleClass : ");
 buffer.append(getModuleClass());
 buffer.append("\n");
 buffer.append("Version: ");
 buffer.append(getMajorVersion());
 buffer.append(".");
 buffer.append(getMinorVersion());
 buffer.append(".");
 buffer.append(getPatchLevel());
 buffer.append("\n");
 buffer.append("Producer: ");
 buffer.append(getProducer());
 buffer.append("\n");
 buffer.append("Description: ");
 buffer.append(getDescription());
 buffer.append("\n");
 return buffer.toString();
}
origin: jfree/jcommon

final String key = parseKey(line);
if (key != null)
 final String b = readValue(reader, parseValue(line.trim()));
  setName(b);
  setProducer(b);
  setDescription(b);
  setSubSystem(b);
  setMajorVersion(b);
  setMinorVersion(b);
  setPatchLevel(b);
origin: jfree/jcommon

final String key = parseKey(line);
if (key != null)
 final String b = readValue(reader, parseValue(line));
 if ("module".equals(key))
origin: jfree/jcommon

while (isNextLineValueLine(reader))
  b.append(parseValue(trimedLine));
  newLine = false;
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;
}
origin: jfree/jcommon

/**
 * Loads the default module description from the file "module.properties". This file
 * must be in the same package as the implementing class.
 *
 * @throws ModuleInitializeException if an error occurs.
 */
protected void loadModuleInfo() throws ModuleInitializeException
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("module.properties", getClass());
 if (in == null)
 {
  throw new ModuleInitializeException
    ("File 'module.properties' not found in module package.");
 }
 loadModuleInfo(in);
}
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: org.jfree/jcommon

final String key = parseKey(line);
if (key != null)
 final String b = readValue(reader, parseValue(line));
 if ("module".equals(key))
origin: org.jfree/jcommon

while (isNextLineValueLine(reader))
  b.append(parseValue(trimedLine));
  newLine = false;
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: org.jfree/jcommon

/**
 * Loads the default module description from the file "module.properties". This file
 * must be in the same package as the implementing class.
 *
 * @throws ModuleInitializeException if an error occurs.
 */
protected void loadModuleInfo() throws ModuleInitializeException
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("module.properties", getClass());
 if (in == null)
 {
  throw new ModuleInitializeException
    ("File 'module.properties' not found in module package.");
 }
 loadModuleInfo(in);
}
origin: org.jfree/com.springsource.org.jfree

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

final String key = parseKey(line);
if (key != null)
 final String b = readValue(reader, parseValue(line.trim()));
  setName(b);
  setProducer(b);
  setDescription(b);
  setSubSystem(b);
  setMajorVersion(b);
  setMinorVersion(b);
  setPatchLevel(b);
origin: jfree/jcommon

/**
 * Returns a string representation of this module.
 * @see java.lang.Object#toString()
 *
 * @return the string representation of this module for debugging purposes.
 */
public String toString()
{
 final StringBuffer buffer = new StringBuffer();
 buffer.append("Module : ");
 buffer.append(getName());
 buffer.append("\n");
 buffer.append("ModuleClass : ");
 buffer.append(getModuleClass());
 buffer.append("\n");
 buffer.append("Version: ");
 buffer.append(getMajorVersion());
 buffer.append(".");
 buffer.append(getMinorVersion());
 buffer.append(".");
 buffer.append(getPatchLevel());
 buffer.append("\n");
 buffer.append("Producer: ");
 buffer.append(getProducer());
 buffer.append("\n");
 buffer.append("Description: ");
 buffer.append(getDescription());
 buffer.append("\n");
 return buffer.toString();
}
origin: org.jfree/com.springsource.org.jfree

final String key = parseKey(line);
if (key != null)
 final String b = readValue(reader, parseValue(line));
 if ("module".equals(key))
origin: org.jfree/com.springsource.org.jfree

while (isNextLineValueLine(reader))
  b.append(parseValue(trimedLine));
  newLine = false;
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

/**
 * Loads the default module description from the file "module.properties". This file
 * must be in the same package as the implementing class.
 *
 * @throws ModuleInitializeException if an error occurs.
 */
protected void loadModuleInfo() throws ModuleInitializeException
{
 final InputStream in = ObjectUtilities.getResourceRelativeAsStream
     ("module.properties", getClass());
 if (in == null)
 {
  throw new ModuleInitializeException
    ("File 'module.properties' not found in module package.");
 }
 loadModuleInfo(in);
}
origin: org.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: org.jfree/jcommon

final String key = parseKey(line);
if (key != null)
 final String b = readValue(reader, parseValue(line.trim()));
  setName(b);
  setProducer(b);
  setDescription(b);
  setSubSystem(b);
  setMajorVersion(b);
  setMinorVersion(b);
  setPatchLevel(b);
org.jfree.base.modulesAbstractModule

Javadoc

The abstract module provides a default implementation of the module interface.

The module can be specified in an external property file. The file name of this specification defaults to "module.properties". This file is no real property file, it follows a more complex rule set.

Lines starting with '#' are considered comments. Section headers start at the beginning of the line, section properties are indented with at least one whitespace.

The first section is always the module info and contains the basic module properties like name, version and a short description.

 
module-info: 
name: xls-export-gui 
producer: The JFreeReport project - www.jfree.org/jfreereport 
description: A dialog component for the Excel table export. 
version.major: 0 
version.minor: 84 
version.patchlevel: 0 
The properties name, producer and description are simple strings. They may span multiple lines, but may not contain a colon (':'). The version properties are integer values.

This section may be followed by one or more "depends" sections. These sections describe the base modules that are required to be active to make this module work. The package manager will enforce this policy and will deactivate this module if one of the base modules is missing.

 
depends: 
module: org.jfree.report.modules.output.table.xls.XLSTableModule 
version.major: 0 
version.minor: 84 

The property module references to the module implementation of the module package.

Most used methods

  • getDescription
    Returns the module description.
  • getMajorVersion
  • getMinorVersion
  • getModuleClass
  • getName
    Returns the name of this module.
  • getPatchLevel
  • getProducer
    Returns the producer of the module.
  • isNextLineValueLine
    Checks, whether the next line in the reader is a value line.
  • loadModuleInfo
    Loads the module descriptiong from the given input stream. The module description must conform to th
  • parseKey
    Parses an string to find the key section of the line. This section ends with an colon.
  • parseValue
    Parses the value section of the given line.
  • readExternalModule
    Reads an external module description. This describes either an optional or a required module.
  • parseValue,
  • readExternalModule,
  • readModuleInfo,
  • readValue,
  • setDescription,
  • setMajorVersion,
  • setMinorVersion,
  • setModuleClass,
  • setName,
  • setPatchLevel

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JCheckBox (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim 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