Language
The Free and Open Productivity Suite
helper
Class ConfigurationRead
java.lang.Object
|
+--helper.ConfigurationRead
- public class ConfigurationRead
- extends Object
Read configuration settings.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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"
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