public class ConfigUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CAT |
static String |
DEFAULT_CONFIG_NAME |
| Modifier and Type | Method and Description |
|---|---|
static String |
baseNameFromNames(String configName,
String tagName) |
static String |
baseNameFromNames(String configName,
String tagName,
String catName) |
static NamesAndTag |
namesFromDescriptionPath(String pathName) |
static NamesAndTag |
namesFromPath(String pathName)
gets subsystem name, configName and tag name from pathName
|
static NamesAndTag |
namesFromPaths(String descriptionName,
String configurationName)
gets subsystem name, configName and tag name from the description and configuration path names
rules: the subsystem name in both file names should be the same if the configuration name in the description file name is not set then the configuration name is in the configuration file name. |
static Set<String> |
parseCategories(Set<String> categorySet,
String... categories) |
static Map<String,String> |
parseConfigurationString(Set<String> categorySet,
String... configNames)
Parses a string of tagged categories.
|
static Map<String,String> |
parseConfigurationStringWithDefaults(Set<String> categories,
String... taggedCategories) |
static Map<String,String> |
rawParseConfigurationString(String... configNames)
ParseConfigurationString without checking for category consistency
|
public static final String DEFAULT_CONFIG_NAME
public static final String DEFAULT_CAT
public static NamesAndTag namesFromPath(String pathName)
pathName - NamesAndTag object structuring the names extracted from
the path name.public static NamesAndTag namesFromDescriptionPath(String pathName)
public static NamesAndTag namesFromPaths(String descriptionName, String configurationName)
descriptionName - configurationName - NamesAndTag object representing the extracted names from
the description and configuration names.IllegalArgumentException - if subsystem, config and tag names are not consistent in description and configuration file names.public static String baseNameFromNames(String configName, String tagName, String catName)
public static Map<String,String> rawParseConfigurationString(String... configNames)
configNames - public static Map<String,String> parseConfigurationString(Set<String> categorySet, String... configNames)
categorySet - configNames - IllegalArgumentException - if one of the categories is not present in categorySet.public static Map<String,String> parseConfigurationStringWithDefaults(Set<String> categories, String... taggedCategories)
Copyright © 2015 LSST. All rights reserved.