org.thdl.tib.bibl
Class IDFactory

java.lang.Object
  |
  +--org.thdl.tib.bibl.GenericTibFactory
        |
        +--org.thdl.tib.bibl.IDFactory
All Implemented Interfaces:
TibConstants

public class IDFactory
extends GenericTibFactory
implements TibConstants

Like its sister class, TitleFactory, this class is used to access and display the information in the ID section of a TIBBIBL record.

Author:
Than Garson, Tibetan and Himalayan Digital Library

Field Summary
(package private)  Element altid
           IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification.
(package private)  Attribute att
           
(package private)  Element child
           
protected  List children
           
(package private)  Hashtable ed_names
           
(package private)  Element[] ed_tibids
           
(package private)  Vector editions
           
(package private)  Element grandparent
           
protected  Iterator it
           
(package private)  Element masterTibid
           IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification.
(package private)  Element num
           
(package private)  Hashtable num_in_vols
           
(package private)  Element[] nums
           
protected  Vector outStyles
           
(package private)  Hashtable pages
           
(package private)  Element pagination
           IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification.
(package private)  Element parent
           
(package private)  Element physdecl
           IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification.
(package private)  String sigla
           
(package private)  Element sourceFiles
           
(package private)  Hashtable textNums
           
protected  org.thdl.tib.bibl.TibDoc tibDoc
           
(package private)  Element tibid
           IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification.
(package private)  Element tibidDecl
           IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification.
(package private)  Element topTibid
           IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification.
(package private)  String value
           
(package private)  Hashtable vol_lets
           
(package private)  Hashtable vols
           
 
Fields inherited from interface org.thdl.tib.bibl.TibConstants
ABBR, ABOUT, ADD_DOX, ALT, ANUYOGA, AP, AP_CHECK, APP_SUBMIT, ATIYOGA, BACK, BAD_PARA, BASE_FONT_NAME, BASE_FONT_SIZE, BG, BIN, BIN_LOGIN, BODY, BOLD, BOLD_FONT, BRIEF, BUT_MARGINS, BUTT_PANEL_SIZE, BUTTON_SIZE, CANC, CANCEL, CANCEL_NEW_APP, CATEG, CHANGE, CHAP_TITLES_HEAD, CHAPS, CHAPTER, CIT, CLASS, CLOSE_TITLE_HEAD, CLOSEFILE, CLOSING, CONTROL, CONTROL_SOURCE, CONTROLLER, CORRESP, CORRESP_NG, CREATE_FILE_LIST, CREATE_FILE_LIST_SPECS, CREATE_FILE_LIST_TITLE, CREATOR, CRIT_ED_DESC, CRIT_ED_LABEL, CRIT_TITLE, CROSSREF, CURR_DIR, DATA_DIRECTORY, DATE, DATE_DELIM, DATE_MESSAGE, DATE_TITLE, DEFAULT_BGCOLOR, DEFAULT_BUTTON_COLOR, DEFAULT_DIRECTORY, DEFAULT_FONT, DEFAULT_HEADER, DEFAULT_INSETS, DEFAULT_PANEL_SIZE, DEL_EDS_MESS, DEL_EDS_TITLE, DESIG, DG, DIA_DATA, DIAC, DISC, DISC_DIA_TITLE, DIV, DO_ALL_TITLES, DO_TRANS, DOX, DOX_CAT_DELIM, DOX_DELIM, DOX_WINDOW_TITLE, DOXTYPE, ED, ED_EXISTS, ED_EXISTS_MESSAGE, ED_EXISTS_SPECS, ED_EXISTS_TITLE, ED_ID_MESS, ED_ID_REQUIRED, ED_ID_TITLE, ED_INFO, ED_NAME, ED_SCROLL_SIZE, ED_SIG, ED_SIGLA, ED_STRING, ED_TEXT_NUM, ED_TITLE, ED_TITLE_REM, ED_VOL_LET, ED_VOL_NUM, EDCON, EDCONS, EDIT, EDITOR_NAME_MESSAGE, EDITOR_NAME_TITLE, EDITORS_INFO, EDITORS_INFO_SPECS, EDITORS_INITIALS, EDITORS_NAME, EDNAMES, EDS_CORR, ENG, ENTER, ENTER_NORM_TRANS_PHRASE, ENTER_NORMALIZED, ENTER_NORMALIZED_PHRASE, ENTER_PLACE, ENTER_TITLE_PHRASE, ENTER_TRANS, ENTER_TRANS_PHRASE, EOC, EOC_TITLES_HEAD, EX1, EX2, EXIT, EXPAN, EXPORT, FILE, FILE_EXISTS, FILE_EXISTS_SPECS, FILE_EXISTS_TITLE, FOREIGN, FRAME, FRONT, FULL, FULL_TEXT_PAGE, GEN, GET_DESIG, GET_DESIG_QUESTION, GET_DESIG_SPECS, HEAD, HEAD_FONT, HEAD_FONT_SIZE, HI, ID, INFO, INPUT_DATE_MESSAGE, INPUT_DATE_TITLE, INSERT, INSERT_APP, INTDECL, INV_TRANS, INV_TRANS_TITLE, INVALID_TRANS_SPECS, IS_FILE_LIST, ITALIC, ITEM, JOP_ERROR, JOP_INFO, JOP_QUEST, JOP_WARN, JOP_YESNOCANCEL, KG, LABEL_SIZE, LABEL_SPACE, LANG, LANG_ENG, LANG_TIB, LET, LIST, LIST_COLOR, LIST_INSETS, LM, LVL, MAHAYOGA, MAIN_MARGINS, MASTER_ID_VIEW, MASTER_SIGLA, MENU_FONT, MISC, N, NAME, NEW_AP, NEW_ED_INFO, NEW_ED_INFO_SPECS, NEW_ED_TITLE_INFO, NEW_ED_TITLE_INFO_SPECS, NEW_TITLE, NG, NGDIVS, NGSIGS, NO, NO_ELEM, NO_SELECT_TITLE, NO_SELECTION, NO_SELECTION_SPECS, NO_TITLE, NO_TITLE_MESSAGE, NO_TITLE_SPECS, NO_TITLE_TITLE, NON_TIB_HEAD, NON_TIB_TITLE_HEAD, NONTIB, NONTIBET, NORM, NORM_AP_ERROR, NORM_AP_MESS, NORM_AP_TITLE, NORM_EDIT, NORM_ENG_LABEL, NORM_TIB_LABEL, NORM_TITLE, NORM_TITLE_HEAD, NOT_SAVED_MESSAGE, NOT_SAVED_TITLE, NOT_SPEC, NOT_SPEC_MESSAGE, NOT_SPEC_SPECS, NOT_SPEC_TITLE, NOTE, NOTFOUND, NUM, NUMB, OPEN_ERROR, OPEN_TITLE, OPENFILE, ORIG_LANG, OTHER, OTHER_EDS, OUT_DIRECTORY, P, PAGE_RANGE, PAGIN, PERSNAME, PHYSDEC, PREFS, PREFS_DELIM, PROG_NAME, QUOTE, RDG, RECENT, RECENT_FILE_SIZE, REDISPLAY, RELAT, REMOVE_APP, REMOVE_APP_MESS, REMOVE_APP_SPECS, REMOVE_APP_TITLE, REMOVE_ED_ERROR_MESS, REMOVE_ED_ERROR_TITLE, REMOVE_ED_TITLE_ERROR, REMOVE_ED_TITLE_MESS, REMOVE_ED_TITLE_SPECS, REMOVE_ED_TITLE_TITLE, REMOVE_EDITION, REMOVE_TITLE, RENAME_FILE, RENAME_FILE_TITLE, RENAMING_FILE_SPECS, REND, RESP, RESPDECL, RESPSTM, REVDESC, RS, RUNTIME_ERROR, SAVE, SAVE_SPECS, SAVEAS, SAVED_FILE, SAVED_FILE_SPECS, SAVED_FILE_TITLE, SECTIONS, SELDIV, SEPARATOR, SHORT_LABEL_SIZE, SHOW_AP, SID, SIG, SIGLA_DELIM, SPACE, SRC, SRCS_LABEL, SUBMIT, SUBTYPE, SUMMARY, SYS, SYS_LET, SYS_NUM, SYS_SIG, TABLE, TB, TDECL, TDIV, TEMP_DIR, TEXT, TEXT_COLOR, TEXT_FIELD_SIZE, TEXT_HEAD, TEXT_HEAD_SIZE, TEXT_LIST_HEAD, TEXT_NUM, TIB, TIBANAL, TIBBIBL, TIBL, TIBPANEL_SIZE, TID, TIDDECL, TINFO, TITEM, TITLE, TITLE_DISC, TITLE_FONT, TITLE_LINE_HEAD, TITLE_PAGE, TITLEGRP, TITLELINE, TITLELN, TITLEOPENFILE, TITLES_VIEW, TK, TLIST, TLIST_ADD_ERROR, TLIST_ADD_MESS, TLIST_ADD_TITLE, TLIST_WARN, TLIST_WARN_TITLE, TLIST_WARNING, TRANS, TRANS_EDIT, TRANS_JOB, TTFCOLS, TTITLE_TITLE, TXT, TXTHEAD, TYPE, TYPE_CLASS, TYPE_DOX, TYPE_ED, TYPE_TEXT, TYPE_VOL, UNCLASSED, UNTITLED, USER_ID_VIEW, VIEW, VOL, VOL_LET, VOL_NUM, VOL_TEXT, VOL_TEXT_NUM, WIT, YES
 
Constructor Summary
protected IDFactory(org.thdl.tib.bibl.TibDoc td)
           
 
Method Summary
 boolean addEditionConsulted(String[] info)
           
protected  void addLineBreak()
           
protected  void addSeparator()
           
 void addSourceConsulted(String sigla, String sourceInitials, String sourceName)
           
protected  void doHeader(String st)
           
protected  void doLabel(String st)
           
protected  void doReg(String st)
           
 Element findEdTibid(String sigla)
           
 Vector getEditionsConsulted()
           
 String getEdName(String sigla)
           
 String getMasterID()
           This method returns the String version of the master ID where all the subcategories are delimited by a period, e.g.
 String getNumInVol(String sigla)
           
 String getPagination(String sigla)
           
 Element[] getSourceFiles()
           
 String getTextNum(String sigla)
           
 String getVolLet(String sigla)
           
 String getVolNum(String sigla)
           
 boolean hasEdition(String sigla)
           
protected  void processDoc()
           This methods is called as the initializing method for this class.
 void removeEd(String sigla)
           
protected  void setDoc(org.thdl.tib.bibl.TibDoc td)
           
 void setMasterID(String masterID)
           This method takes a string as its parameter that is in the usual master ID format with subcategories separated by the period or the DOX_DELIM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tibidDecl

Element tibidDecl

IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification. This information has to do with the identification of the text. ID numbers and so forth.


topTibid

Element topTibid

IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification. This information has to do with the identification of the text. ID numbers and so forth.


masterTibid

Element masterTibid

IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification. This information has to do with the identification of the text. ID numbers and so forth.


tibid

Element tibid

IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification. This information has to do with the identification of the text. ID numbers and so forth.


altid

Element altid

IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification. This information has to do with the identification of the text. ID numbers and so forth.


physdecl

Element physdecl

IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification. This information has to do with the identification of the text. ID numbers and so forth.


pagination

Element pagination

IDFactory is a helper class that takes a TibDoc in its constructor, processes that doc so that certain information (tags and data) within it is easily accessible for display and modification. This information has to do with the identification of the text. ID numbers and so forth.


num

Element num

sourceFiles

Element sourceFiles

ed_tibids

Element[] ed_tibids

nums

Element[] nums

att

Attribute att

sigla

String sigla

value

String value

editions

Vector editions

ed_names

Hashtable ed_names

textNums

Hashtable textNums

vols

Hashtable vols

vol_lets

Hashtable vol_lets

num_in_vols

Hashtable num_in_vols

pages

Hashtable pages

tibDoc

protected org.thdl.tib.bibl.TibDoc tibDoc

outStyles

protected Vector outStyles

it

protected Iterator it

grandparent

Element grandparent

parent

Element parent

child

Element child

children

protected List children
Constructor Detail

IDFactory

protected IDFactory(org.thdl.tib.bibl.TibDoc td)
Method Detail

processDoc

protected void processDoc()

This methods is called as the initializing method for this class. It takes the TibDoc given in the constructor and processes it finding the relavant information for its identification. It does this by reading through the TIBID elements contained in the TIBIDDECL and extracting from their children edition name, sigla, volume volume letter, text number, pagination. And from the sources listed in the control info section.

Specified by:
processDoc in class GenericTibFactory

getMasterID

public String getMasterID()

This method returns the String version of the master ID where all the subcategories are delimited by a period, e.g. Ng1.4.2. It does this by recursively looking for a child Tibid within the master Tibid and adding the period delimiter between each of the content strings.

Returns:
String - the formatted Master ID string.

setMasterID

public void setMasterID(String masterID)

This method takes a string as its parameter that is in the usual master ID format with subcategories separated by the period or the DOX_DELIM. It parses it through a StringTokenizer and using the masterTibid fills out the information. It does not however set the text's number within the category but it leaves a last Tibid empty ready for that information.

Returns:
String - the new file name based on the master ID

getSourceFiles

public Element[] getSourceFiles()

hasEdition

public boolean hasEdition(String sigla)

getEdName

public String getEdName(String sigla)

getTextNum

public String getTextNum(String sigla)

getVolNum

public String getVolNum(String sigla)

getVolLet

public String getVolLet(String sigla)

getNumInVol

public String getNumInVol(String sigla)

getPagination

public String getPagination(String sigla)

getEditionsConsulted

public Vector getEditionsConsulted()

addEditionConsulted

public boolean addEditionConsulted(String[] info)

removeEd

public void removeEd(String sigla)

findEdTibid

public Element findEdTibid(String sigla)

addSourceConsulted

public void addSourceConsulted(String sigla,
                               String sourceInitials,
                               String sourceName)

setDoc

protected void setDoc(org.thdl.tib.bibl.TibDoc td)

doReg

protected void doReg(String st)

doHeader

protected void doHeader(String st)

doLabel

protected void doLabel(String st)

addLineBreak

protected void addLineBreak()

addSeparator

protected void addSeparator()


These API docs were created 02/02/2003 08:20 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo