org.jenkinsci.lib.configprovider.model
Class Config

java.lang.Object
  extended by org.jenkinsci.lib.configprovider.model.Config
All Implemented Interfaces:
hudson.model.Describable<Config>, Serializable

public class Config
extends Object
implements Serializable, hudson.model.Describable<Config>

Represents a particular configuration file and its content. A Config object "belongs to" a ConfigProvider instance.

Author:
domi
See Also:
Serialized Form

Field Summary
 String comment
          Any note that the author of this configuration wants to associate with this.
 String content
          Content of the file as-is.
 String id
          a unique id along all providers!
 String name
          Human readable display name that distinguishes this Config instance among other Config instances.
 
Constructor Summary
Config(String id, String name, String comment, String content)
           
 
Method Summary
 ConfigProvider getDescriptor()
          Gets the ConfigProvider that owns and manages this config.
 ConfigProvider getProvider()
          Alias for getProvider()
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public final String id
a unique id along all providers!


name

public final String name
Human readable display name that distinguishes this Config instance among other Config instances.


comment

public final String comment
Any note that the author of this configuration wants to associate with this. Jenkins doesn't use this. Can be null.


content

public final String content
Content of the file as-is.

Constructor Detail

Config

@DataBoundConstructor
public Config(String id,
                                   String name,
                                   String comment,
                                   String content)
Method Detail

getDescriptor

public ConfigProvider getDescriptor()
Gets the ConfigProvider that owns and manages this config.

Specified by:
getDescriptor in interface hudson.model.Describable<Config>
Returns:
never null.

getProvider

public ConfigProvider getProvider()
Alias for getProvider()


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2013. All Rights Reserved.