org.daisy.pipeline.client.models
Class Job

java.lang.Object
  extended by org.daisy.pipeline.client.models.Job

public class Job
extends java.lang.Object

A representation of a Pipeline 2 job.

Author:
jostein

Nested Class Summary
static class Job.Status
           
 
Field Summary
 java.lang.String href
           
 java.lang.String id
           
 java.lang.String logHref
           
 java.util.List<Message> messages
           
 java.lang.String resultHref
           
 Script script
           
 Job.Status status
           
 
Constructor Summary
Job()
          Create an empty representation of a job.
Job(org.w3c.dom.Node jobXml)
          Parse the job described by the provided XML document/node.
Job(Pipeline2WSResponse response)
          Parse the job described by the provided Pipeline2WSResponse.
 
Method Summary
static java.util.List<Job> getJobs(org.w3c.dom.Node jobsXml)
          Parse the list of jobs described by the provided XML document/node.
static java.util.List<Job> getJobs(Pipeline2WSResponse response)
          Parse the list of jobs described by the provided Pipeline2WSResponse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id

href

public java.lang.String href

status

public Job.Status status

script

public Script script

messages

public java.util.List<Message> messages

logHref

public java.lang.String logHref

resultHref

public java.lang.String resultHref
Constructor Detail

Job

public Job()
Create an empty representation of a job.


Job

public Job(Pipeline2WSResponse response)
    throws Pipeline2WSException
Parse the job described by the provided Pipeline2WSResponse.

Parameters:
response -
Throws:
Pipeline2WSException

Job

public Job(org.w3c.dom.Node jobXml)
    throws Pipeline2WSException
Parse the job described by the provided XML document/node. Example: http://daisy-pipeline.googlecode.com/hg/webservice/samples/xml-formats/job.xml

Parameters:
jobXml -
Throws:
Pipeline2WSException
Method Detail

getJobs

public static java.util.List<Job> getJobs(Pipeline2WSResponse response)
                                   throws Pipeline2WSException
Parse the list of jobs described by the provided Pipeline2WSResponse.

Parameters:
response -
Returns:
Throws:
Pipeline2WSException

getJobs

public static java.util.List<Job> getJobs(org.w3c.dom.Node jobsXml)
                                   throws Pipeline2WSException
Parse the list of jobs described by the provided XML document/node. Example: http://daisy-pipeline.googlecode.com/hg/webservice/samples/xml-formats/jobs.xml

Parameters:
response -
Returns:
Throws:
Pipeline2WSException