jenkins.plugins.shiningpanda.utils
Class DescriptorUtil

java.lang.Object
  extended by jenkins.plugins.shiningpanda.utils.DescriptorUtil

public class DescriptorUtil
extends Object


Constructor Summary
DescriptorUtil()
           
 
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
 

Constructor Detail

DescriptorUtil

public DescriptorUtil()
Method Detail

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 stream
id - 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 stream
descriptor - 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 stream
descriptor - The descriptor
ids - The addition IDs


Copyright © 2004-2012. All Rights Reserved.