/** * 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(); }
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);
final String key = parseKey(line); if (key != null) final String b = readValue(reader, parseValue(line)); if ("module".equals(key))
while (isNextLineValueLine(reader)) b.append(parseValue(trimedLine)); newLine = false;
/** * 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; }
/** * 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); }
/** * 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; }
final String key = parseKey(line); if (key != null) final String b = readValue(reader, parseValue(line)); if ("module".equals(key))
while (isNextLineValueLine(reader)) b.append(parseValue(trimedLine)); newLine = false;
/** * 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; }
/** * 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); }
/** * 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; }
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);
/** * 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(); }
final String key = parseKey(line); if (key != null) final String b = readValue(reader, parseValue(line)); if ("module".equals(key))
while (isNextLineValueLine(reader)) b.append(parseValue(trimedLine)); newLine = false;
/** * 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; }
/** * 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); }
/** * 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; }
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);