public class DescriptorUtil extends Object
Constructor and Description |
---|
DescriptorUtil() |
Modifier and Type | Method and Description |
---|---|
static hudson.XmlFile |
getConfigFile(com.thoughtworks.xstream.XStream xs,
hudson.model.Descriptor<?> descriptor)
Get the configuration file for the provided descriptor
|
static hudson.XmlFile |
getConfigFile(com.thoughtworks.xstream.XStream xs,
String id)
Get the configuration file for the provided ID
|
static void |
load(com.thoughtworks.xstream.XStream xs,
hudson.model.Descriptor<?> descriptor,
String... ids)
Load the configuration by looking first for the nominal file, and then by
looking for the provided IDs.
|
public static hudson.XmlFile getConfigFile(com.thoughtworks.xstream.XStream xs, String id)
xs
- The XML streamid
- The IDpublic static hudson.XmlFile getConfigFile(com.thoughtworks.xstream.XStream xs, hudson.model.Descriptor<?> descriptor)
xs
- The XML streamdescriptor
- The descriptorpublic static void load(com.thoughtworks.xstream.XStream xs, hudson.model.Descriptor<?> descriptor, String... ids)
xs
- The XML streamdescriptor
- The descriptorids
- The addition IDsCopyright © 2004-2018. All Rights Reserved.