Package gri.data.serializers.jdom

Examples of gri.data.serializers.jdom.ListSerializer


            String xml = service.listWorkflows();
            Document doc = buildXML(xml);
            throwExceptions(doc);
           
            Element rootElem = doc.getRootElement();
            ListSerializer serializer = new ListSerializer(
              serializers.getJobInfoSerializer(), "workflowInfo");
            List infoList = serializer.readList(rootElem);
           
            return (WorkflowInfo [])infoList.toArray(new WorkflowInfo [] {});
        }
        catch(Exception e) {
            throw new RemoteRuntimeException(e);
View Full Code Here


    public void writeSet(JobManagerSet managers, Element elem) {
      throw new RuntimeException("Not implemented");
    }
    public JobManagerSet readSet(Element elem) throws IOException {
      ListSerializer listSerializer = new ListSerializer(jobEntrySerializer, "jobManagerEntry");
      List entries = listSerializer.readList(elem);
      return new JobManagerSet(entries);
    }
View Full Code Here

            String xml = service.listJobs();
            Document doc = buildXML(xml);
            throwExceptions(doc);
           
            Element rootElem = doc.getRootElement();
            ListSerializer serializer = new ListSerializer(serializers.getJobInfoSerializer(), "jobInfo");
            List jobs = serializer.readList(rootElem);
           
            return (JobInfo [])jobs.toArray(new JobInfo [] {});
        }
        catch(Exception e) {
            throw new RemoteRuntimeException(e);
View Full Code Here

    ListSerializer jobInfoListSerializer;
   
    // ----------------------------------------------------- Constructors
   
    public WorkflowInfoSerializer() {
  jobInfoListSerializer = new ListSerializer(
    new JobInfoSerializer(), "job");
    }
View Full Code Here

TOP

Related Classes of gri.data.serializers.jdom.ListSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.