Examples of xmlText()


Examples of org.ogce.schemas.gfac.documents.ApplicationDescriptionType.xmlText()

    ResourceMapping resourceMapping = null;
    if (contextHeader != null) {
      resourceMapping = contextHeader.getResourceMappings().getResourceMappingArray(0);
    }

    log.info("Configure using App Desc = " + app.xmlText());
    if (resourceMapping != null && resourceMapping.getMaxWallTime() > 0) {
      log.info("Header Setting Max Wall Time" + resourceMapping.getMaxWallTime());
      jobAttr.setMaxWallTime(resourceMapping.getMaxWallTime());

    } else if (app.getMaxWallTime() > 0) {
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.HostDescriptionDocument.xmlText()

    }
   
    SchemaValidator validator = new SchemaValidator(hostDesc);
    validator.validate();

    return hostDescDoc.xmlText();
  }
}
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.HostDescriptionDocument.xmlText()

        SchemaValidator validator = new SchemaValidator(hostDesc);
        validator.validate();
      } catch (GFacSchemaException e) {
        throw new GfacException(e,FaultCode.SchemaValidationError);
      }
      return hostDescDoc.xmlText();
    } catch (NumberFormatException e) {
      throw new GfacException(e, FaultCode.InvaliedLocalArgumnet);
    }
  }
 
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.HostDescriptionDocument.xmlText()

        SchemaValidator validator = new SchemaValidator(hostDesc);
        validator.validate();
      } catch (GFacSchemaException e) {
        throw new GfacException(e,FaultCode.SchemaValidationError);
      }
      return hostDescDoc.xmlText();
    } catch (NumberFormatException e) {
      throw new GfacException(e, FaultCode.InvaliedLocalArgumnet);
    }
  }
}
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceMapDocument.xmlText()

    }
    try {
      RegistryUtil.registerServiceMapFromStr(regService, serviceMapStr);
    } catch (Exception e) {
      if (oldServiceMap != null) {
        RegistryUtil.registerServiceMapFromStr(regService, oldServiceMap.xmlText());
      }
      throw new GfacException(e, FaultCode.ErrorAtClientWhileWsCall);
    }
    // System.out.println("######"+serviceMapStr);
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceMapDocument.xmlText()

        smt.addNewLifeTime().setNotAfterInactiveMinutes(serviceInfo.getNotAfterInactiveMinutes());
      } else {
        smt.getLifeTime().setNotAfterInactiveMinutes(serviceInfo.getNotAfterInactiveMinutes());
      }
    }
    return smd.xmlText();

  }

  public static String simpleServiceXMLRequest(ServiceBean serviceInfo) throws GfacException {
    ServiceMapDocument smd;
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceMapDocument.xmlText()

        smt.addNewLifeTime().setNotAfterInactiveMinutes(serviceInfo.getNotAfterInactiveMinutes());
      } else {
        smt.getLifeTime().setNotAfterInactiveMinutes(serviceInfo.getNotAfterInactiveMinutes());
      }
    }
    return smd.xmlText();

  }

  /**
   * @see edu.indiana.extreme.gfac.beanutils.UtilMethods#getBeanObjectInfo(edu.indiana.extreme.gfac.external.RegistryService,
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ServiceMapDocument.xmlText()

    }
   
    SchemaValidator validator = new SchemaValidator(serviceMapType);
    validator.validate();

    return serviceMapDocument.xmlText();
  }

  public static ServiceBean serviceBeanRequest(String serviceMapStr)
      throws XmlException, IOException {
View Full Code Here

Examples of org.openuri.lut.ListsDocument.xmlText()

    {
        ListsDocument doc = ListsDocument.Factory.newInstance();
        ListsDocument.Lists lists = doc.addNewLists();
        lists.setIntList(Arrays.asList(new Object[] { new Integer(4), new Integer(18) }));
        lists.setNniList(Arrays.asList(new Object[] { BigInteger.valueOf(1), BigInteger.valueOf(2), "unbounded" }));
        String xtext = doc.xmlText();

        ListsDocument docrt = ListsDocument.Factory.parse(xtext);
        List intList = docrt.getLists().getIntList();
        Assert.assertEquals(new Integer(4), intList.get(0));
        Assert.assertEquals(new Integer(18), intList.get(1));
View Full Code Here

Examples of org.openuri.lut.UnionsDocument.xmlText()

        UnionsDocument.Unions unions = doc.addNewUnions();
        unions.setNni("unbounded");
        unions.setSizes(Arrays.asList(new Object[] { new Integer(5), new Integer(22) }));

        // round trip to s text
        String xtext = doc.xmlText();
        UnionsDocument docrt = UnionsDocument.Factory.parse(xtext);

        // verify contents
        Assert.assertEquals("unbounded", docrt.getUnions().getNni());
        List sizes = (List)docrt.getUnions().getSizes();
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.