Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

helper
Class ConfigurationRead

java.lang.Object
  |
  +--helper.ConfigurationRead

public class ConfigurationRead
extends Object

Read configuration settings.


Constructor Summary
ConfigurationRead(XMultiServiceFactory xMSF)
          Creates new ConfigurationRead.
ConfigurationRead(XMultiServiceFactory xMSF, String rootnode)
          Creates new ConfigurationRead
 
Method Summary
 Object getByHierarchicalName(String name)
          Get contents of a node by its hierarchical name.
 String[] getRootNodeNames()
          Get the elements of the root node.
 String[] getSubNodeNames(String name)
          Get all elements of this node
 boolean hasByHieracrhicalName(String name)
          Does the node with this hierarchical name exist?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationRead

public ConfigurationRead(XMultiServiceFactory xMSF,
                         String rootnode)
Creates new ConfigurationRead
Parameters:
xMSF - An instance of service "com.sun.star.configuration.ConfigurationProvider"
rootnode - The root of the configuration nodes.

ConfigurationRead

public ConfigurationRead(XMultiServiceFactory xMSF)
Creates new ConfigurationRead. This uses "org.openoffice.Setup" as default root name.
Parameters:
xMSF - An instance of service "com.sun.star.configuration.ConfigurationProvider"
Method Detail

hasByHieracrhicalName

public boolean hasByHieracrhicalName(String name)
                              throws NoSuchElementException,
                                     WrappedTargetException
Does the node with this hierarchical name exist?
Parameters:
name - The hierarchical name of a subnode.
Returns:
True, if the node exists.

getRootNodeNames

public String[] getRootNodeNames()
Get the elements of the root node.
Returns:
All elements of the root node.

getSubNodeNames

public String[] getSubNodeNames(String name)
Get all elements of this node
Parameters:
name - The name of the node
Returns:
All elements of this node (as hierarchical names).

getByHierarchicalName

public Object getByHierarchicalName(String name)
                             throws NoSuchElementException
Get contents of a node by its hierarchical name.
Parameters:
The - hierarchical name of the node.
Returns:
The contents as an object

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.