org.pz.platypus.plugin.html
Class HtmlCommandTable

java.lang.Object
  extended by org.pz.platypus.plugin.html.HtmlCommandTable

public class HtmlCommandTable
extends java.lang.Object

Contains all the commands used in the PDF plugin, keyed by command root. Class is based substantially on org.pz.Platypus.CommandTable

Author:
alb/ask

Field Summary
private  java.util.HashMap<java.lang.String,IOutputCommand> commandTable
          the hashtable into which the commands are loaded
 
Constructor Summary
HtmlCommandTable()
           
 
Method Summary
(package private)  void add(IOutputCommand entry)
          add a OutputCommandable item to the hash table, using its root as the key to the entry
 IOutputCommand getCommand(java.lang.String root)
          Lookup a command by its root
 int getSize()
          How many entries in the table
 void load(GDD gdd)
          Load the commands and symbols into the command table.
(package private)  void loadCommands()
          load commands in to the command table
(package private)  void loadSymbols(GDD gdd)
          load the symbols and special characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandTable

private java.util.HashMap<java.lang.String,IOutputCommand> commandTable
the hashtable into which the commands are loaded

Constructor Detail

HtmlCommandTable

public HtmlCommandTable()
Method Detail

load

public void load(GDD gdd)
Load the commands and symbols into the command table. Commands are loaded in alpha order

Parameters:
gdd - GDD

loadCommands

void loadCommands()
load commands in to the command table


loadSymbols

void loadSymbols(GDD gdd)
load the symbols and special characters. These are loaded from a text file.

Parameters:
gdd - the global document data

add

void add(IOutputCommand entry)
add a OutputCommandable item to the hash table, using its root as the key to the entry

Parameters:
entry - to be added (either a command or a symbol)

getCommand

public IOutputCommand getCommand(java.lang.String root)
Lookup a command by its root

Parameters:
root - command root (portion ending in the first | : or ] character
Returns:
the OutputCommandable class found, or null on error

getSize

public int getSize()
How many entries in the table

Returns:
number of entries


Copyright © 2008-10 Pacific Data Works LLC