org.mmbase.config
Class AbstractReport
java.lang.Object
org.mmbase.config.AbstractReport
- All Implemented Interfaces:
- ReportInterface
- Direct Known Subclasses:
- BuilderReport, DatabaseReport, JavaReport, JVMOptionsReport, LanguagesReport
- public abstract class AbstractReport
- extends java.lang.Object
- implements ReportInterface
- Author:
- Case Roole, cjr@dds.nl
$Id: AbstractReport.java,v 1.9 2003/07/07 13:33:25 keesj Exp $
|
Method Summary |
protected java.lang.String |
htmlEntities(java.lang.String s)
|
void |
init(java.lang.String mode,
java.lang.String encoding)
|
protected java.util.Vector |
listDirectory(java.lang.String path)
Retrieve all xml files in a directory |
java.lang.String |
report()
|
protected java.lang.String |
stringReplace(java.lang.String s,
java.lang.String sub,
java.lang.String rep)
Replace a substring |
protected java.lang.String |
xmlErrorMessage(java.lang.String path,
org.mmbase.config.XMLParseResult pr)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mode
protected java.lang.String mode
encoding
protected java.lang.String encoding
specialChars
protected java.util.Hashtable specialChars
configpath
protected java.lang.String configpath
AbstractReport
public AbstractReport()
init
public void init(java.lang.String mode,
java.lang.String encoding)
- Specified by:
init in interface ReportInterface
report
public java.lang.String report()
- Specified by:
report in interface ReportInterface
stringReplace
protected java.lang.String stringReplace(java.lang.String s,
java.lang.String sub,
java.lang.String rep)
- Replace a substring
- Parameters:
s - String which is to be modifiedsub - Substring to be replaced (once!)rep - Replacement string
- Returns:
s with substring sub replaced with rep
listDirectory
protected java.util.Vector listDirectory(java.lang.String path)
throws java.io.IOException
- Retrieve all xml files in a directory
- Parameters:
path - Directory path
- Returns:
- String array containing the names of the xml files in the directory, without the extension
- Throws:
java.io.IOException
htmlEntities
protected java.lang.String htmlEntities(java.lang.String s)
- Returns:
- String with '<' and '>' converted to respectively < and >
- Warning: Contains Duplicate Code (present in other classes)
- Can be found for example in Config module too.
xmlErrorMessage
protected java.lang.String xmlErrorMessage(java.lang.String path,
org.mmbase.config.XMLParseResult pr)
MMBase build 1.7.1.20041002