Package gri.data.serializers.jdom

Examples of gri.data.serializers.jdom.ListSerializer.readList()


      else if (name.equals("help"))
        param.setHelp(child.getText());
      else if (name.equals("options"))  {
        ListSerializer serializer = new ListSerializer(
            new OptionSerializer(), "option");
        param.setOptionList(serializer.readList(child));
      }
      else if (name.equals("default"))
        param.setDefault(child.getText());
      else if (name.equals("scriptlet"))
        param.setScriptlet(child.getText());
View Full Code Here


      else if (name.equals("functions")) {
        ListSerializer serializer = new ListSerializer(
            new FunctionSerializer(
                module.getParameterMap(), module.getOutputMap()),
        "function");
        List functions = serializer.readList(child);
        for (int functionIndex=0; functionIndex<functions.size(); functionIndex++) {
          Function function = (Function)functions.get(functionIndex);   
          module.addFunction(function);
        }
      }
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

            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

            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

TOP
Copyright © 2018 www.massapi.com. 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.