ucot.output
Class DummyOutput

java.lang.Object
  extended by ucot.output.DummyOutput
All Implemented Interfaces:
ModulePropertyInterface, OutputInterface

public class DummyOutput
extends java.lang.Object
implements OutputInterface

Dummy Output that does nothing

Author:
tujupien

Constructor Summary
DummyOutput()
           
 
Method Summary
 void applyProperties()
          Applies current properties for the module.
 java.lang.String getFileExtension()
          Returns the output's valid file extension without the leading dot.
 java.lang.String getName()
          Returns adapter's name.
 java.util.Properties getProperties()
          Returns module's properties.
 java.util.Properties loadDefaultProperties()
          Method which returns the factory default properties for the module.
 void loadProperties()
          Loads settings from the current properties XML file.
 void output(AnalyzeModel analyzeModel, java.net.URL url)
          Outputs analyze model.
 void saveProperties()
          Saves current properties to the properties XML file.
 void setProperties(java.util.Properties properties)
          Sets options for the adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyOutput

public DummyOutput()
Method Detail

output

public void output(AnalyzeModel analyzeModel,
                   java.net.URL url)
            throws java.io.IOException
Description copied from interface: OutputInterface
Outputs analyze model.

Specified by:
output in interface OutputInterface
Parameters:
analyzeModel - Analyze model to output.
Throws:
java.io.IOException

getName

public java.lang.String getName()
Description copied from interface: OutputInterface
Returns adapter's name.

Specified by:
getName in interface OutputInterface
Returns:
Adapter's name.

getProperties

public java.util.Properties getProperties()
Description copied from interface: ModulePropertyInterface

Returns module's properties.

Specified by:
getProperties in interface ModulePropertyInterface
Returns:
Module's properties.

setProperties

public void setProperties(java.util.Properties properties)
Description copied from interface: ModulePropertyInterface

Sets options for the adapter.

Notice that this does not need to be an perfect set of properties for this module because these properties should be merged to the current properties. So it is possible to change only one property value by giving a new property object with the new value for the given key.

Specified by:
setProperties in interface ModulePropertyInterface
Parameters:
properties - Properties for the adapter.

applyProperties

public void applyProperties()
                     throws BadPropertyValueException
Description copied from interface: ModulePropertyInterface

Applies current properties for the module.

Specified by:
applyProperties in interface ModulePropertyInterface
Throws:
BadPropertyValueException - In this case exception is thrown only if either the given parser or heuristic does not exist.

saveProperties

public void saveProperties()
                    throws java.io.IOException
Description copied from interface: ModulePropertyInterface

Saves current properties to the properties XML file.

Specified by:
saveProperties in interface ModulePropertyInterface
Throws:
java.io.IOException - Exception is thrown if something went wrong.

loadProperties

public void loadProperties()
                    throws java.io.IOException
Description copied from interface: ModulePropertyInterface

Loads settings from the current properties XML file.

Specified by:
loadProperties in interface ModulePropertyInterface
Throws:
java.io.IOException - Exception is thrown if something went wrong.

loadDefaultProperties

public java.util.Properties loadDefaultProperties()
Description copied from interface: ModulePropertyInterface

Method which returns the factory default properties for the module.

Specified by:
loadDefaultProperties in interface ModulePropertyInterface
Returns:
Default properties.

getFileExtension

public java.lang.String getFileExtension()
Description copied from interface: OutputInterface
Returns the output's valid file extension without the leading dot.

Specified by:
getFileExtension in interface OutputInterface
Returns:
Adapter's accepted file extension.