net.praqma.jenkins.configrotator
Class AbstractConfiguration<T extends AbstractConfigurationComponent>

java.lang.Object
  extended by net.praqma.jenkins.configrotator.AbstractConfiguration<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClearCaseUCMConfiguration, GitConfiguration

public abstract class AbstractConfiguration<T extends AbstractConfigurationComponent>
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  String description
           
protected  List<T> list
           
 
Constructor Summary
AbstractConfiguration()
           
 
Method Summary
 String basicHtml(StringBuilder builder, String... titles)
           
abstract
<T extends AbstractConfiguration>
T
clone()
           
abstract  List<ConfigRotatorChangeLogEntry> difference(T component, T other)
           
 AbstractConfigurationComponent getChangedComponent()
           
 int getChangedComponentIndex()
          Gets the index of the changed component.
 String getDescription(hudson.model.AbstractBuild<?,?> build)
           
 List<T> getList()
           
 String getView(Class<?> clazz)
           
abstract  String toHtml()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected List<T extends AbstractConfigurationComponent> list

description

protected String description
Constructor Detail

AbstractConfiguration

public AbstractConfiguration()
Method Detail

difference

public abstract List<ConfigRotatorChangeLogEntry> difference(T component,
                                                             T other)
                                                      throws ConfigurationRotatorException
Throws:
ConfigurationRotatorException

getView

public String getView(Class<?> clazz)

getChangedComponent

public AbstractConfigurationComponent getChangedComponent()

getChangedComponentIndex

public int getChangedComponentIndex()
Gets the index of the changed component.

Returns:
the index of the changed component. If there is no changed component default return value is -1

toString

public String toString()
Overrides:
toString in class Object

getList

public List<T> getList()

clone

public abstract <T extends AbstractConfiguration> T clone()

toHtml

public abstract String toHtml()

getDescription

public String getDescription(hudson.model.AbstractBuild<?,?> build)

basicHtml

public String basicHtml(StringBuilder builder,
                        String... titles)


Copyright © 2004-2013. All Rights Reserved.