org.writersforge.catalan.process.workers.text
Class NormalizeCommand

java.lang.Object
  extended byorg.writersforge.catalan.process.workers.BaseMetadataHolder
      extended byorg.writersforge.catalan.process.commands.BaseCommand
          extended byorg.writersforge.catalan.process.workers.text.BaseTextCommand
              extended byorg.writersforge.catalan.process.workers.text.NormalizeCommand
All Implemented Interfaces:
ICommand, IMetadataHolder

public class NormalizeCommand
extends BaseTextCommand

Implementation of "normalize" command.

Author:
jsheets

Constructor Summary
NormalizeCommand()
          Creates a new instance of NormalizeCommand.
 
Method Summary
 void run(CommandContext context)
          Invokes this command against the given workspace with the given runtime properties.
 
Methods inherited from class org.writersforge.catalan.process.workers.text.BaseTextCommand
convertToArray, extractText, storeText
 
Methods inherited from class org.writersforge.catalan.process.workers.BaseMetadataHolder
getMetadata, setOptionalProperties, setRequiredProperties, validateProperties, validateType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.writersforge.catalan.process.workers.IMetadataHolder
getMetadata, validateProperties, validateType
 

Constructor Detail

NormalizeCommand

public NormalizeCommand()
                 throws MetadataException
Creates a new instance of NormalizeCommand.

Throws:
MetadataException - if unable to initialize metadata
Method Detail

run

public void run(CommandContext context)
         throws ProcessException
Invokes this command against the given workspace with the given runtime properties. The owning Worker should verify that all required properties are present before invoking run().

Parameters:
context - command context
Throws:
ProcessException - if a fatal error occurs during processing