com.atlassian.bamboo.utils
Class ConfigUtils

java.lang.Object
  extended by com.atlassian.bamboo.utils.ConfigUtils

public class ConfigUtils
extends java.lang.Object


Constructor Summary
ConfigUtils()
           
 
Method Summary
static void addMapToBuilConfiguration(java.lang.String keyForMap, java.util.Map<java.lang.String,java.lang.String> map, org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
           
static void addNodeAt(org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration, java.lang.String rootPath, org.apache.commons.configuration.HierarchicalConfiguration configToAdd)
           
static void addNodesAt(org.apache.commons.configuration.HierarchicalConfiguration config, java.lang.String rootPath, org.apache.commons.configuration.HierarchicalConfiguration configToAdd)
           
static java.util.Map asMap(org.apache.commons.configuration.Configuration config, java.lang.String filter)
           
static java.lang.String asXmlString(org.apache.commons.configuration.XMLConfiguration configuration)
           
static void copyMapToConfig(java.util.Map map, org.apache.commons.configuration.Configuration config)
           
static void copyNodes(org.apache.commons.configuration.HierarchicalConfiguration sourceConfig, org.apache.commons.configuration.XMLConfiguration targetConfig)
           
static void debugXmlConfig(org.apache.commons.configuration.XMLConfiguration configuration)
           
static java.util.Map<java.lang.String,java.lang.String> getMapFromConfiguration(java.lang.String keyForMap, org.apache.commons.configuration.HierarchicalConfiguration config)
           
static org.apache.commons.configuration.XMLConfiguration getXmlConfigFromXmlString(java.lang.String xmlData)
           
static java.util.Map<java.lang.String,java.lang.Long> toLongMap(java.util.Map<java.lang.String,java.lang.String> stringMap)
           
static java.util.Map<java.lang.String,java.lang.String> toStringMap(java.util.Map<java.lang.String,?> objectsMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigUtils

public ConfigUtils()
Method Detail

copyMapToConfig

public static void copyMapToConfig(java.util.Map map,
                                   org.apache.commons.configuration.Configuration config)

asMap

public static java.util.Map asMap(org.apache.commons.configuration.Configuration config,
                                  java.lang.String filter)

debugXmlConfig

public static void debugXmlConfig(org.apache.commons.configuration.XMLConfiguration configuration)

addNodesAt

public static void addNodesAt(org.apache.commons.configuration.HierarchicalConfiguration config,
                              java.lang.String rootPath,
                              org.apache.commons.configuration.HierarchicalConfiguration configToAdd)

addNodeAt

public static void addNodeAt(org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration,
                             java.lang.String rootPath,
                             org.apache.commons.configuration.HierarchicalConfiguration configToAdd)

addMapToBuilConfiguration

public static void addMapToBuilConfiguration(@NotNull
                                             java.lang.String keyForMap,
                                             @NotNull
                                             java.util.Map<java.lang.String,java.lang.String> map,
                                             @NotNull
                                             org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)

getMapFromConfiguration

@NotNull
public static java.util.Map<java.lang.String,java.lang.String> getMapFromConfiguration(@NotNull
                                                                                               java.lang.String keyForMap,
                                                                                               @NotNull
                                                                                               org.apache.commons.configuration.HierarchicalConfiguration config)

toStringMap

@NotNull
public static java.util.Map<java.lang.String,java.lang.String> toStringMap(@NotNull
                                                                                   java.util.Map<java.lang.String,?> objectsMap)

toLongMap

@NotNull
public static java.util.Map<java.lang.String,java.lang.Long> toLongMap(@NotNull
                                                                               java.util.Map<java.lang.String,java.lang.String> stringMap)
                                                                throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

asXmlString

@NotNull
public static java.lang.String asXmlString(@NotNull
                                                   org.apache.commons.configuration.XMLConfiguration configuration)

getXmlConfigFromXmlString

@NotNull
public static org.apache.commons.configuration.XMLConfiguration getXmlConfigFromXmlString(@NotNull
                                                                                                  java.lang.String xmlData)

copyNodes

public static void copyNodes(@NotNull
                             org.apache.commons.configuration.HierarchicalConfiguration sourceConfig,
                             @NotNull
                             org.apache.commons.configuration.XMLConfiguration targetConfig)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.