no.uio.edd.model.geo
Class GeoModelPersonTitCat

java.lang.Object
  extended by no.uio.edd.model.geo.GeoModelPersonTitCat

public class GeoModelPersonTitCat
extends java.lang.Object

A class for storing taxonomies of persons' titles and categories.

Author:
oeide

Constructor Summary
GeoModelPersonTitCat(org.w3c.dom.NodeList taxNodes)
          Create the taxonomy object.
 
Method Summary
(package private)  java.lang.String getCategory(java.lang.String catCode)
          Find a category based on its code
(package private)  java.lang.String getTitle(java.lang.String titCode)
          Fin a title based on its code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoModelPersonTitCat

GeoModelPersonTitCat(org.w3c.dom.NodeList taxNodes)
               throws javax.xml.datatype.DatatypeConfigurationException
Create the taxonomy object.

Parameters:
taxNodes - A TEI taxonomy element, the root node of an XML subtree containing title and category elements.
Throws:
javax.xml.datatype.DatatypeConfigurationException - If the taxonomy is formatted incorrectly.
Method Detail

getTitle

java.lang.String getTitle(java.lang.String titCode)
Fin a title based on its code.

Parameters:
titCode - The title code.
Returns:
The title name, or null if it is not found.

getCategory

java.lang.String getCategory(java.lang.String catCode)
Find a category based on its code

Parameters:
catCode - The category code.
Returns:
The category name, or null if it is not found.