Class LanguageHandler

java.lang.Object
  |
  +--LanguageHandler
Direct Known Subclasses:
English, French, German, Spanish

public class LanguageHandler
extends java.lang.Object

This is the base class that provides specifics for the various languages, such as how to express thanks to the subjects and contributors and what path to use when generating HTML for that language.

Author:
John E. Darrow (c) 2000, 2001

Field Summary
 java.lang.String and
           
static java.lang.String baseOutDir
          The base relative directory where all HTML files are generated.
 java.lang.String contr
           
 java.lang.String me
           
 java.lang.String subs
           
 java.lang.String toMe
           
 
Constructor Summary
LanguageHandler()
           
LanguageHandler(java.lang.String me, java.lang.String toMe, java.lang.String and)
          Establishes how to refer to "me" in different places in a sentence and how to say "and".
 
Method Summary
 java.lang.String getCredits(PicLink picLink)
          Returns an expression representing thanks to the subject(s) and contributor appropriate for this language.
 java.lang.String getPathToHtmlOutput()
          Provides path information unique to this language.
 java.lang.String getPathToImages()
          Provides path information unique to this language.
 java.lang.String getPathToIndexFromRoot()
          Provides path information unique to this language.
 java.lang.String getPathToRoot()
          Provides path information unique to this language.
protected  void init(PicLink picLink)
           
static void main(java.lang.String[] args)
           
protected  java.lang.String oddLink(PicLink picLink)
          Returns the unusual link to the contributor when the contributor is the same as the subject.
 void testCredits()
          A routine for testing getCredits in the language subclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

me

public java.lang.String me

toMe

public java.lang.String toMe

and

public java.lang.String and

subs

public java.lang.String subs

contr

public java.lang.String contr

baseOutDir

public static java.lang.String baseOutDir
The base relative directory where all HTML files are generated.
Constructor Detail

LanguageHandler

public LanguageHandler()

LanguageHandler

public LanguageHandler(java.lang.String me,
                       java.lang.String toMe,
                       java.lang.String and)
Establishes how to refer to "me" in different places in a sentence and how to say "and".
Method Detail

init

protected void init(PicLink picLink)

getCredits

public java.lang.String getCredits(PicLink picLink)
Returns an expression representing thanks to the subject(s) and contributor appropriate for this language.

oddLink

protected java.lang.String oddLink(PicLink picLink)
Returns the unusual link to the contributor when the contributor is the same as the subject.

testCredits

public void testCredits()
A routine for testing getCredits in the language subclass.

getPathToRoot

public java.lang.String getPathToRoot()
Provides path information unique to this language.

getPathToImages

public java.lang.String getPathToImages()
Provides path information unique to this language.

getPathToHtmlOutput

public java.lang.String getPathToHtmlOutput()
Provides path information unique to this language.

getPathToIndexFromRoot

public java.lang.String getPathToIndexFromRoot()
Provides path information unique to this language.

main

public static void main(java.lang.String[] args)