jenkins.plugins.shiningpanda.utils
Class DescriptorUtil
java.lang.Object
jenkins.plugins.shiningpanda.utils.DescriptorUtil
public class DescriptorUtil
- extends Object
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DescriptorUtil
public DescriptorUtil()
getConfigFile
public static hudson.XmlFile getConfigFile(com.thoughtworks.xstream.XStream xs,
String id)
- Get the configuration file for the provided ID
- Parameters:
xs
- The XML streamid
- The ID
- Returns:
- The configuration file
getConfigFile
public static hudson.XmlFile getConfigFile(com.thoughtworks.xstream.XStream xs,
hudson.model.Descriptor<?> descriptor)
- Get the configuration file for the provided descriptor
- Parameters:
xs
- The XML streamdescriptor
- The descriptor
- Returns:
- The configuration file
load
public 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.
- Parameters:
xs
- The XML streamdescriptor
- The descriptorids
- The addition IDs
Copyright © 2004-2012. All Rights Reserved.