org.jenkinsci.plugins.pom2config
Class Pom2ConfigHandler

java.lang.Object
  extended by org.jenkinsci.plugins.pom2config.Pom2ConfigHandler
All Implemented Interfaces:
hudson.ExtensionPoint, Comparable<Handler>, Handler
Direct Known Subclasses:
EmailExtHandler, JobHandler, ScmHandler

public class Pom2ConfigHandler
extends Object
implements Handler

Author:
Michael Klein

Nested Class Summary
static class Pom2ConfigHandler.Pom2ConfigHandlerSpec
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
Pom2ConfigHandler(Pom2ConfigHandler.Pom2ConfigHandlerSpec spec)
           
 
Method Summary
 int compareTo(Handler handler)
           
 String getName()
          Name of the plugin
 List<DataSet> getPomValues()
          List of found values in the pom
 boolean isLoaded()
          Is the plugin loaded in Jenkins
 List<DataSet> parsePom(hudson.model.AbstractProject<?,?> project, Document doc)
          Parses the pom and looks for the searched values
 String setDetails(hudson.model.AbstractProject<?,?> project, net.sf.json.JSONObject formData)
          Sets the selected values from the pom in the job configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pom2ConfigHandler

public Pom2ConfigHandler(Pom2ConfigHandler.Pom2ConfigHandlerSpec spec)
Method Detail

getName

public String getName()
Description copied from interface: Handler
Name of the plugin

Specified by:
getName in interface Handler
Returns:
plugin name

getPomValues

public List<DataSet> getPomValues()
Description copied from interface: Handler
List of found values in the pom

Specified by:
getPomValues in interface Handler
Returns:
found pom values

parsePom

public List<DataSet> parsePom(hudson.model.AbstractProject<?,?> project,
                              Document doc)
                       throws IOException
Description copied from interface: Handler
Parses the pom and looks for the searched values

Specified by:
parsePom in interface Handler
doc - the pom
Returns:
A List of DataSet for the found values
Throws:
IOException

setDetails

public String setDetails(hudson.model.AbstractProject<?,?> project,
                         net.sf.json.JSONObject formData)
Description copied from interface: Handler
Sets the selected values from the pom in the job configuration

Specified by:
setDetails in interface Handler
Returns:
A message if setting the values was successful or not

compareTo

public int compareTo(Handler handler)
Specified by:
compareTo in interface Comparable<Handler>

isLoaded

public boolean isLoaded()
Description copied from interface: Handler
Is the plugin loaded in Jenkins

Specified by:
isLoaded in interface Handler
Returns:
true if it is or no if not


Copyright © 2004-2013. All Rights Reserved.