|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.MappedRegistry
Field Summary | |
protected String |
absolutePath
|
private static Hashtable |
allInstances
|
protected String |
description
|
private boolean |
dirty
|
private int |
entriesRead
|
protected String |
propertyFileName
|
private PropertiesMap |
registry
|
private static String |
RESOURCE
|
(package private) static boolean |
TRACE
|
Constructor Summary | |
protected |
MappedRegistry()
|
|
MappedRegistry(String fileName,
String dir)
|
Method Summary | |
MappedRegistry |
additions(MappedRegistry otherRegistry,
String additions_dir)
Returns a new MappedRegistry containing additions, with the new registry stored in additions_dir. |
int |
count(String key)
|
int |
countPair(String key,
String value)
|
void |
difference(MappedRegistry otherRegistry)
Returns the difference between two MappedRegistry's, i.e. |
void |
difference(MappedRegistry otherRegistry,
String add_dir,
String remove_dir)
Creates a new MappedRegistry containing additions and another one containing removals, with the new registries stored in the specified directories. |
Enumeration |
elements()
|
static MappedRegistry |
get(String fileName)
|
static MappedRegistry |
get(String fileName,
String dir)
|
private static String |
getKey(String fileName,
String dir)
|
Object |
getValue(String key)
|
Enumeration |
keys()
|
static void |
main(String[] args)
|
void |
putPair(String key,
String value)
|
protected void |
read()
|
protected PropertiesMap |
readFile()
|
MappedRegistry |
removals(MappedRegistry otherRegistry,
String removals_dir)
Returns a new MappedRegistry containing removals, with the new registry stored in removals_dir. |
void |
remove(MappedRegistry otherRegistry)
Removes the entries in the otherRegistry from this one. |
Object |
removeKeys(String key)
|
void |
removePair(String key,
String value)
|
int |
removeValues(String value)
|
void |
setDescription(String registryDescription)
|
int |
size()
|
String |
toString()
|
void |
union(MappedRegistry otherRegistry)
Merges the entries from the otherRegistry into this one. |
Enumeration |
values(String key)
|
void |
write()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
static boolean TRACE
private static final Hashtable allInstances
private PropertiesMap registry
private boolean dirty
private int entriesRead
protected String propertyFileName
protected String description
protected String absolutePath
Constructor Detail |
protected MappedRegistry()
public MappedRegistry(String fileName, String dir)
Method Detail |
private static String getKey(String fileName, String dir)
public final int size()
public final int count(String key)
public int countPair(String key, String value)
public Enumeration elements()
public static MappedRegistry get(String fileName) throws WTException
WTException
public static MappedRegistry get(String fileName, String dir) throws WTException
WTException
public Object getValue(String key)
public Enumeration keys()
public static void main(String[] args)
public void putPair(String key, String value)
protected void read() throws WTException
WTException
protected PropertiesMap readFile()
public Object removeKeys(String key)
public void removePair(String key, String value)
public int removeValues(String value)
public void setDescription(String registryDescription)
public String toString()
public void union(MappedRegistry otherRegistry)
public void difference(MappedRegistry otherRegistry)
public void difference(MappedRegistry otherRegistry, String add_dir, String remove_dir)
public MappedRegistry additions(MappedRegistry otherRegistry, String additions_dir)
public MappedRegistry removals(MappedRegistry otherRegistry, String removals_dir)
public void remove(MappedRegistry otherRegistry)
public Enumeration values(String key)
public void write()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |