org.pz.platypus.plugin.pdf
Class PdfCommandTable

java.lang.Object
  extended by org.pz.platypus.plugin.pdf.PdfCommandTable
All Implemented Interfaces:
ICommandTable

public class PdfCommandTable
extends java.lang.Object
implements ICommandTable

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

Author:
alb

Field Summary
private  java.util.HashMap<java.lang.String,IOutputCommand> commandTable
          the hashtable into which the commands are loaded
 
Constructor Summary
PdfCommandTable()
           
 
Method Summary
 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.
 void loadCommands()
          load commands in to the command table
 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

PdfCommandTable

public PdfCommandTable()
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

public void loadCommands()
load commands in to the command table

Specified by:
loadCommands in interface ICommandTable

loadSymbols

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

Specified by:
loadSymbols in interface ICommandTable
Parameters:
gdd - the global document data

add

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

Specified by:
add in interface ICommandTable
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

Specified by:
getCommand in interface ICommandTable
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

Specified by:
getSize in interface ICommandTable
Returns:
number of entries


Copyright © 2008-10 Pacific Data Works LLC