org.vectorbase.gdav
Class ConfigInfo

java.lang.Object
  extended by org.vectorbase.gdav.ConfigInfo

public class ConfigInfo
extends java.lang.Object

reads all relevant information from the optional (config.xml) config file stores this information and provides accessor classes for this and other information.

Author:
seth.redmond@imperial.ac.uk Seth Redmond

Constructor Summary
ConfigInfo()
          'emergency' constructor - uses default values for webapp title and provides no column configuration
ConfigInfo(javax.servlet.ServletContext ctx)
          search for config.xml file, parse for column / display configuration details
 
Method Summary
 java.lang.String getColClass(java.lang.String colName)
          get individual CSS class for column
 java.util.Hashtable getColClasses()
          get Hashtable of CSS classes for cols
 java.lang.Boolean getColDisplay(java.lang.String colName)
          get individual display boolean for column (default true)
 java.util.Hashtable getColDisplays()
          get Hashtable of display [true/false] values for cols
 java.lang.String getColLink(java.lang.String colName)
          get individual link for column
 java.util.Hashtable getColLinks()
          get Hashtable of hypertext formats for cols (http://www.website.com/urlFormat.html?id=####)
 java.lang.String getDocumentRoot()
          return root URL for website.
 java.util.Hashtable getSppLinks()
           
 java.lang.String getTitle()
          return title for website
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigInfo

public ConfigInfo(javax.servlet.ServletContext ctx)
           throws org.xml.sax.SAXException,
                  javax.xml.parsers.ParserConfigurationException,
                  java.io.IOException
search for config.xml file, parse for column / display configuration details

Throws:
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException

ConfigInfo

public ConfigInfo()
'emergency' constructor - uses default values for webapp title and provides no column configuration

Method Detail

getColDisplays

public java.util.Hashtable getColDisplays()
get Hashtable of display [true/false] values for cols


getColDisplay

public java.lang.Boolean getColDisplay(java.lang.String colName)
get individual display boolean for column (default true)


getColLinks

public java.util.Hashtable getColLinks()
get Hashtable of hypertext formats for cols (http://www.website.com/urlFormat.html?id=####)


getColLink

public java.lang.String getColLink(java.lang.String colName)
get individual link for column


getColClasses

public java.util.Hashtable getColClasses()
get Hashtable of CSS classes for cols


getColClass

public java.lang.String getColClass(java.lang.String colName)
get individual CSS class for column


getDocumentRoot

public java.lang.String getDocumentRoot()
return root URL for website. This is defined in the tillview.xml file in order to allow the site to be run from the root, or for aliases to be employed


getTitle

public java.lang.String getTitle()
return title for website


getSppLinks

public java.util.Hashtable getSppLinks()