public class ConfigUtils extends Object
| Constructor and Description |
|---|
ConfigUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
baseNameFromNames(NamesAndTag namesAndTag)
creates a fileName from a NamesAndTag object (reverse operation of namesFromPath
|
static String |
baseNameFromNames(String subsystemName,
String configName,
String tagName) |
static boolean |
isAPath(String string) |
static NamesAndTag |
namesFromDescriptionPath(String pathName) |
static NamesAndTag |
namesFromPath(String pathName)
gets subsystem name, configName and tag name from pathName
|
static NamesAndTag |
namesFromPaths(String descriptionPathName,
String configurationPathName)
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. |
public static NamesAndTag namesFromPath(String pathName)
pathName - public static NamesAndTag namesFromDescriptionPath(String pathName)
public static NamesAndTag namesFromPaths(String descriptionPathName, String configurationPathName)
descriptionPathName - configurationPathName - IllegalArgumentException - if subsystem, config and tag names are not consistent in description and configuration file names.public static String baseNameFromNames(NamesAndTag namesAndTag)
namesAndTag - public static String baseNameFromNames(String subsystemName, String configName, String tagName)
public static boolean isAPath(String string)
Copyright © 2015 LSST. All rights reserved.