Package gri.data.serializers.jdom

Examples of gri.data.serializers.jdom.MissingElementException


  }

  public FileBasedInfoManager readManager(Element elem) throws IOException {
    Element fileElem = elem.getChild("file");
    if (fileElem == null)
      throw new MissingElementException("file", elem);
    File file = new File(fileElem.getText());

    FileBasedInfoManager manager = new FileBasedInfoManager(file);

    Element saveElem = elem.getChild("autoSave");
View Full Code Here


    elem.addContent(managerElem);
  }
  public BasicJobManager readJobManager(Element elem) throws IOException {
    Element managerElem = elem.getChild("taskManager");
    if (managerElem == null)
      throw new MissingElementException("taskManager", elem);

    TaskManager taskManager = (TaskManager)taskManagerSerializer.read(managerElem);
    return new BasicJobManager(taskManager);
  }
View Full Code Here

      throw new MissingAttributeException(id, elem);

    //jobManager:
    Element jobManagerElem = elem.getChild("jobManager");
    if (jobManagerElem == null)
      throw new MissingElementException("jobManager", elem);
    JobManager jobManager = (JobManager)jobManagerSerializer.read(jobManagerElem);

    JobManagerEntry entry = new JobManagerEntry(id, jobManager);

    //name:
View Full Code Here

        info.setPassword(child.getText());
    }

    //validate:
    if (info.getSystem() == null)
      throw new MissingElementException("system", elem);

    return info;
  }
View Full Code Here

    }
    public WorkflowSubmission readWorkflow(Element elem) throws IOException {
  Element jobsElem = elem.getChild("jobs");
  if (jobsElem == null)
      throw new MissingElementException("jobs");
 
  WorkflowSubmission submission = new WorkflowSubmission();
 
  List children = jobsElem.getChildren();
  int jobIndex = 0;
View Full Code Here

   
    public AxisJobManagerStub readStub(Element elem) throws InvalidXMLException {
  //location:
  Element locationElem = elem.getChild("location");
  if (locationElem == null)
      throw new MissingElementException("location", elem);
 
  String location = locationElem.getText();
 
  //port:
  String portName;
View Full Code Here

    public TaskStub readTaskStub(Element elem) throws IOException {
 
  //get ids and create stub:
  Element idElem = elem.getChild("id");
  if (idElem == null)
      throw new MissingElementException("id", elem);
 
  String stubId = idElem.getText();
  String taskId = stubId;
 
  Element taskElem = elem.getChild("task");
View Full Code Here

      elem.addContent(outputElem);
  }
  public IdentifiedReference readRef(Element elem) throws IOException {
      Element taskElem = elem.getChild("task");
      if (taskElem == null)
    throw new MissingElementException("task", elem);
      String stubId = taskElem.getText();
     
      Element outputElem = elem.getChild("output");
      if (outputElem == null)
    throw new MissingElementException("output", elem);
      String outputName = outputElem.getText();
     
      return new IdentifiedReference(stubId, outputName);
  }
View Full Code Here

    }
    public ProxyJobManager readJobManager(Element elem) throws IOException {
  //service:
  Element serviceElem = elem.getChild("service");
  if (serviceElem == null)
      throw new MissingElementException("service", elem);
 
  JobManagerService service = (JobManagerService)serviceSerializer.read(serviceElem);
 
  //serializers:
  Element serializerElem = elem.getChild("serializers");
View Full Code Here

    public OutputRequestMessage readRequest(Element elem) throws IOException {
  OutputRequestMessage msg = new OutputRequestMessage(null);
 
  Element jobIdElem = elem.getChild("jobId");
  if (jobIdElem == null)
      throw new MissingElementException("jobId");
 
  msg.setJobId(jobIdElem.getText());
 
  Element paramsElem = elem.getChild("params");
  if (paramsElem != null) {
View Full Code Here

TOP

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

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.