Class CommonsConfigUtils

java.lang.Object
com.atlassian.bamboo.utils.CommonsConfigUtils

public class CommonsConfigUtils extends Object
  • Field Details

    • ATTRIBUTE_XML_SPACE

      public static final String ATTRIBUTE_XML_SPACE
    • ATTRIBUTE_XML_SPACE_PRESERVE

      public static final String ATTRIBUTE_XML_SPACE_PRESERVE
  • Constructor Details

    • CommonsConfigUtils

      public CommonsConfigUtils()
  • Method Details

    • sanitiseAndSave

      public static void sanitiseAndSave(@NotNull @NotNull org.apache.commons.configuration.XMLConfiguration configuration, @NotNull @NotNull Writer writer) throws org.apache.commons.configuration.ConfigurationException
      Throws:
      org.apache.commons.configuration.ConfigurationException
    • copyContent

      public static void copyContent(org.apache.commons.configuration.XMLConfiguration src, org.apache.commons.configuration.HierarchicalConfiguration dst)
      Copies content from src to dst. Current dst content will be cleared.
    • newHierarchicalConfiguration

      public static org.apache.commons.configuration.HierarchicalConfiguration newHierarchicalConfiguration()
    • asHierarchicalConfiguration

      public static org.apache.commons.configuration.HierarchicalConfiguration asHierarchicalConfiguration(org.apache.commons.configuration.XMLConfiguration xmlConfiguration)
    • getKeys

      public static Iterable<String> getKeys(@NotNull @NotNull org.apache.commons.configuration.PropertiesConfiguration config)