org.opennms.systemreport.formatters
Class FullTextSystemReportFormatter

java.lang.Object
  extended by org.opennms.systemreport.formatters.AbstractSystemReportFormatter
      extended by org.opennms.systemreport.formatters.FullTextSystemReportFormatter
All Implemented Interfaces:
Comparable<SystemReportFormatter>, SystemReportFormatter

public class FullTextSystemReportFormatter
extends AbstractSystemReportFormatter
implements SystemReportFormatter


Constructor Summary
FullTextSystemReportFormatter()
           
 
Method Summary
 boolean canStdout()
          Whether this formatter should be allowed to write to STDOUT.
 String getContentType()
          The Content-Type that this formatter outputs.
 String getDescription()
          A short description of the format.
 String getExtension()
          The default extension to use when creating files if no output is specified.
 String getName()
          A short name for this format for use by UI's when presenting an option of which formatter to choose.
 void write(SystemReportPlugin plugin)
          Write the data from the specified SystemReportPlugin.
 
Methods inherited from class org.opennms.systemreport.formatters.AbstractSystemReportFormatter
begin, compareTo, end, getOutput, getOutputStream, getResourceText, hasDisplayable, isDisplayable, isFile, needsOutputStream, setOutput, setOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opennms.systemreport.SystemReportFormatter
begin, end, needsOutputStream, setOutput, setOutputStream
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

FullTextSystemReportFormatter

public FullTextSystemReportFormatter()
Method Detail

getName

public String getName()
Description copied from interface: SystemReportFormatter
A short name for this format for use by UI's when presenting an option of which formatter to choose.

Specified by:
getName in interface SystemReportFormatter
Overrides:
getName in class AbstractSystemReportFormatter
Returns:
the format name (eg, "text", "xml", etc.)

getDescription

public String getDescription()
Description copied from interface: SystemReportFormatter
A short description of the format.

Specified by:
getDescription in interface SystemReportFormatter
Overrides:
getDescription in class AbstractSystemReportFormatter
Returns:
the description

getContentType

public String getContentType()
Description copied from interface: SystemReportFormatter
The Content-Type that this formatter outputs. This can be null if the formatter does not produce a file (like the FtpSystemReportFormatter).

Specified by:
getContentType in interface SystemReportFormatter
Returns:
the content-type the formatter writes.

getExtension

public String getExtension()
Description copied from interface: SystemReportFormatter
The default extension to use when creating files if no output is specified.

Specified by:
getExtension in interface SystemReportFormatter
Returns:
the extension

canStdout

public boolean canStdout()
Description copied from interface: SystemReportFormatter
Whether this formatter should be allowed to write to STDOUT.

Specified by:
canStdout in interface SystemReportFormatter

write

public void write(SystemReportPlugin plugin)
Description copied from interface: SystemReportFormatter
Write the data from the specified SystemReportPlugin.

Specified by:
write in interface SystemReportFormatter
Overrides:
write in class AbstractSystemReportFormatter
Parameters:
plugin - the system report plugin which contains the data to write


Copyright © 2011. All Rights Reserved.