- Timestamp:
- 07/15/13 16:46:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/dcworms/schedframe/scheduling/utils/JobDescription.java
r490 r1130 12 12 import schedframe.DescriptionContainer; 13 13 14 import org.qcg.broker.schemas.jobdesc.QcgJob;15 14 16 17 public class JobDescription extends ArrayList<TaskDescription> implements DescriptionContainer<QcgJob>{ 15 public class JobDescription extends ArrayList<TaskDescription> implements DescriptionContainer<org.qcg.broker.schemas.jobdesc.Job>{ 18 16 19 17 private static final long serialVersionUID = 7853990656207447619L; … … 22 20 XMLContext context = new XMLContext(); 23 21 try { 24 context.addClass(org.qcg.broker.schemas.jobdesc. QcgJob.class);22 context.addClass(org.qcg.broker.schemas.jobdesc.Job.class); 25 23 unmarshaller = context.createUnmarshaller(); 26 24 } catch (ResolverException e) { … … 31 29 32 30 protected String xml; 33 protected QcgJob job;31 protected org.qcg.broker.schemas.jobdesc.Job job; 34 32 protected String jobId; 35 33 … … 54 52 } 55 53 56 public QcgJob getDescription() {54 public org.qcg.broker.schemas.jobdesc.Job getDescription() { 57 55 if(job == null){ 58 56 try { 59 job = ( QcgJob) unmarshaller.unmarshal(new StringReader(xml));57 job = (org.qcg.broker.schemas.jobdesc.Job) unmarshaller.unmarshal(new StringReader(xml)); 60 58 } catch (MarshalException e) { 61 59 e.printStackTrace();
Note: See TracChangeset
for help on using the changeset viewer.