Linkable.Utility
Class CiteRefDatabase
java.lang.Object
|
+--Linkable.Utility.CiteRefDatabase
- public class CiteRefDatabase
- extends java.lang.Object
Field Summary |
private static java.util.Hashtable |
db
|
private static boolean |
DEBUG
|
private static java.lang.String |
filename
|
private static java.lang.String |
ME
|
Method Summary |
static void |
addCiteRef(java.lang.String[] s,
java.lang.String t)
addCiteRef adds a new citeref to the database. |
static void |
dump()
dump database to stdout |
static java.util.Vector |
findCiters(java.lang.String urn)
Get citers returns a vector of URN's that cited the given URN. |
static java.util.Enumeration |
getKeys()
|
static void |
reload()
Reloads the citeref database whose file is
given in the Linkable.Utility.CONFIG program. |
static void |
save()
save the citeref Hashtable to the file whose name is given in CONFIG |
static void |
update(java.lang.String _completeUrn,
java.lang.String _incompleteUrn)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
ME
private static final java.lang.String ME
DEBUG
private static final boolean DEBUG
db
private static java.util.Hashtable db
filename
private static java.lang.String filename
CiteRefDatabase
public CiteRefDatabase()
addCiteRef
public static void addCiteRef(java.lang.String[] s,
java.lang.String t)
- addCiteRef adds a new citeref to the database.
- Parameters:
The
- first argument is the URN for the citing document.The
- second argument is the URN for the cited document.
findCiters
public static java.util.Vector findCiters(java.lang.String urn)
- Get citers returns a vector of URN's that cited the given URN.
The URN in the given URN is matched against target URN in the
existing database.
- Parameters:
the
- URN for the cited document- Returns:
- Vector of URN's (or null if no citers)
reload
public static void reload()
- Reloads the citeref database whose file is
given in the Linkable.Utility.CONFIG program.
save
public static void save()
- save the citeref Hashtable to the file whose name is given in CONFIG
update
public static void update(java.lang.String _completeUrn,
java.lang.String _incompleteUrn)
dump
public static void dump()
- dump database to stdout
getKeys
public static java.util.Enumeration getKeys()