summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/helper/ConfigurationRead.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:21:41 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:21:41 +0200
commit1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch)
treef951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/runner/helper/ConfigurationRead.java
parent42e0579442c805df41454461d17cdede43c47b6a (diff)
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1) Author: Petr Mladek <pmladek@suse.cz> Date: Tue May 31 17:39:08 2011 +0200 Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes: split repo tag: testing_libreoffice-3.3.3.1 split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'qadevOOo/runner/helper/ConfigurationRead.java')
-rw-r--r--qadevOOo/runner/helper/ConfigurationRead.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/qadevOOo/runner/helper/ConfigurationRead.java b/qadevOOo/runner/helper/ConfigurationRead.java
index e82fe6141b72..20d2ae322fb6 100644
--- a/qadevOOo/runner/helper/ConfigurationRead.java
+++ b/qadevOOo/runner/helper/ConfigurationRead.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,15 +40,15 @@ import com.sun.star.uno.UnoRuntime;
public class ConfigurationRead {
XHierarchicalNameAccess root = null;
-
- /**
+
+ /**
* Creates new ConfigurationRead
- * @param xMSF An instance of service
+ * @param xMSF An instance of service
* "com.sun.star.configuration.ConfigurationProvider"
* @param rootnode The root of the configuration nodes.
*/
public ConfigurationRead(XMultiServiceFactory xMSF, String rootnode) {
-
+
PropertyValue [] nodeArgs = new PropertyValue [1];
PropertyValue nodepath = new PropertyValue();
nodepath.Name = "nodepath";
@@ -64,7 +64,7 @@ public class ConfigurationRead {
root = (XHierarchicalNameAccess)
UnoRuntime.queryInterface(
- XHierarchicalNameAccess.class, rootObject);
+ XHierarchicalNameAccess.class, rootObject);
}
catch(com.sun.star.uno.Exception e) {
e.printStackTrace();
@@ -74,25 +74,25 @@ public class ConfigurationRead {
/**
* Creates new ConfigurationRead. This uses "org.openoffice.Setup"
* as default root name.
- * @param xMSF An instance of service
+ * @param xMSF An instance of service
* "com.sun.star.configuration.ConfigurationProvider"
*/
public ConfigurationRead(XMultiServiceFactory xMSF) {
this(xMSF, "org.openoffice.Setup");
}
-
+
/**
* Does the node with this hierarchical name exist?
* @param name The hierarchical name of a subnode.
* @return True, if the node exists.
*/
- public boolean hasByHieracrhicalName(String name) throws NoSuchElementException,
+ public boolean hasByHieracrhicalName(String name) throws NoSuchElementException,
com.sun.star.lang.WrappedTargetException {
return root.hasByHierarchicalName(name);
-
+
}
-
+
/**
* Get the elements of the root node.
@@ -101,19 +101,19 @@ public class ConfigurationRead {
public String[] getRootNodeNames() {
XNameAccess xName = (XNameAccess)
- UnoRuntime.queryInterface(XNameAccess.class, root);
+ UnoRuntime.queryInterface(XNameAccess.class, root);
String[]names = xName.getElementNames();
return names;
}
-
+
/**
* Get all elements of this node
* @param name The name of the node
* @return All elements of this node (as hierarchical names).
- */
+ */
public String[] getSubNodeNames(String name) {
String[]names = null;
- try {
+ try {
Object next = root.getByHierarchicalName(name);
XNameAccess x = (XNameAccess)UnoRuntime.queryInterface(
@@ -128,7 +128,7 @@ public class ConfigurationRead {
}
return names;
}
-
+
/**
* Get contents of a node by its hierarchical name.
* @param The hierarchical name of the node.