org.squashtest.tm.plugin.testautomation.jenkins.internal
Class JsonParser

java.lang.Object
  extended by org.squashtest.tm.plugin.testautomation.jenkins.internal.JsonParser

public class JsonParser
extends Object


Constructor Summary
JsonParser()
           
 
Method Summary
protected  JobList filterDisabledJobs(JobList fullList)
           
 Build getBuildFromJson(String json)
           
 BuildList getBuildListFromJson(String json)
           
 ItemList getQueuedListFromJson(String json)
           
 TestList getTestListFromJson(String json)
           
 Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> readJobListFromJson(String json)
           
protected
<R> R
safeReadValue(String json, Class<R> clazz)
           
 String toJson(Object object)
           
protected  Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> toProjectList(JobList jobList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonParser

public JsonParser()
Method Detail

readJobListFromJson

public Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> readJobListFromJson(String json)

getQueuedListFromJson

public ItemList getQueuedListFromJson(String json)

getBuildListFromJson

public BuildList getBuildListFromJson(String json)

getTestListFromJson

public TestList getTestListFromJson(String json)

getBuildFromJson

public Build getBuildFromJson(String json)

toJson

public String toJson(Object object)

safeReadValue

protected <R> R safeReadValue(String json,
                              Class<R> clazz)

filterDisabledJobs

protected JobList filterDisabledJobs(JobList fullList)

toProjectList

protected Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> toProjectList(JobList jobList)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.