|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--util.RegistryTools
Constructor Summary | |
RegistryTools()
|
Method Summary | |
static boolean |
compareKeys(XRegistryKey key1,
XRegistryKey key2)
Compares two registry keys, their names, value types and values. |
static boolean |
compareKeyTrees(XRegistryKey tree1,
XRegistryKey tree2)
Compare keys specified and all their child keys. |
protected static boolean |
compareKeyTrees(XRegistryKey tree1,
XRegistryKey tree2,
boolean compareRoot)
Compare all child keys. |
static XSimpleRegistry |
createRegistryService(XMultiServiceFactory xMSF)
Creates 'com.sun.star.registry.SimpleRegistry' service. |
static String |
getShortKeyName(String keyName)
Gets name of the key relative to its parent. |
static XSimpleRegistry |
openRegistry(String file,
XMultiServiceFactory xMSF)
Opens registry file for reading/writing. |
static void |
printRegistryInfo(XRegistryKey root,
PrintWriter out)
Prints to a specified output about all keys and subkeys information (key name, type, value, link target, attributes) recursively. |
static void |
printRegistryInfo(XSimpleRegistry reg,
PrintWriter out)
Prints to a specified output about all keys and subkeys information (key name, type, value, link target, attributes) recursively. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistryTools()
Method Detail |
public static XSimpleRegistry createRegistryService(XMultiServiceFactory xMSF) throws Exception
xMSF
- Multiservice factory.public static XSimpleRegistry openRegistry(String file, XMultiServiceFactory xMSF) throws Exception
file
- Registry file name.xMSF
- Multiservice factory.public static boolean compareKeys(XRegistryKey key1, XRegistryKey key2)
true
if key names, value types
and values are equal, else returns false
.public static String getShortKeyName(String keyName)
keyName
- Full key name.protected static boolean compareKeyTrees(XRegistryKey tree1, XRegistryKey tree2, boolean compareRoot)
compareRoot
- If true
method also
compare root keys, if false
it begins recursive
comparing from children of root keys.true
if keys and their sub keys are equal.public static boolean compareKeyTrees(XRegistryKey tree1, XRegistryKey tree2)
true
if keys and their sub keys are equal.public static void printRegistryInfo(XSimpleRegistry reg, PrintWriter out)
reg
- Registry for which information is needed.out
- Output stream.public static void printRegistryInfo(XRegistryKey root, PrintWriter out)
root
- Key for which subkeys (and further) information is required.out
- Output stream.
|
OOoRunner test harness | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |