Package org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05

Examples of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionDocument


        .addNewArgument().setStringValue(stringPrm);

  }
 
  public static void setApplicationStdErr(JobDefinitionType value, HpcApplicationDeploymentType appDepType, String stderr) {
    FileNameType fName = FileNameType.Factory.newInstance();
    fName.setStringValue(stderr);
    if (isParallelJob(appDepType))
      JSDLUtils.getOrCreateSPMDApplication(value).setError(fName);
    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setError(fName);
  }
View Full Code Here


    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setError(fName);
  }
 
  public static void setApplicationStdOut(JobDefinitionType value, HpcApplicationDeploymentType appDepType, String stderr) {
    FileNameType fName = FileNameType.Factory.newInstance();
    fName.setStringValue(stderr);
    if (isParallelJob(appDepType))
      JSDLUtils.getOrCreateSPMDApplication(value).setOutput(fName);
    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setOutput(fName);
  }
View Full Code Here

  public static final String THREADSPERHOST = "ThreadsPerHost";

 
 
  public static EnvironmentType addEnvVariable(JobDefinitionType def,String name, String value) {
    POSIXApplicationType posixApp = getOrCreatePOSIXApplication(def);
    EnvironmentType newEnv = posixApp.addNewEnvironment();
    newEnv.setName(name);
    newEnv.setStringValue(value);
    return newEnv;
  }
View Full Code Here

    /**
     * Test for {@link XmlBeanUtils#setValueAsQName(XmlObject, QName)}.
     */
    public void testSetValueAsQName()
    {
        QueryExpressionDocument queryExpressionDocument = QueryExpressionDocument.Factory.newInstance();
        QueryExpressionType queryExpressionType = queryExpressionDocument.addNewQueryExpression();
        XmlBeanUtils.setValueAsQName( queryExpressionType, SushiPropertyQNames.AKAGI );
        XmlCursor xCursor = queryExpressionType.newCursor();
        String prefix = xCursor.prefixForNamespace( SushiPropertyQNames.AKAGI.getNamespaceURI() );
        String value = xCursor.getTextValue();
        assertEquals( prefix + ":" + SushiPropertyQNames.AKAGI.getLocalPart(), value );
View Full Code Here

        assertTrue( xBean instanceof SOAPEnvelope );
    }

    public void testGetSchemaSourceName() throws Exception
    {
        QueryExpressionDocument xBean = QueryExpressionDocument.Factory.newInstance();
        String schemaName = xBean.schemaType().getSourceName();
        String schemaPath = "schema/src/" + schemaName;
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        XmlObject schemaXBean = XmlObject.Factory.parse( classLoader.getResourceAsStream( schemaPath ) );
        assertTrue( schemaXBean instanceof SchemaDocument );
    }
View Full Code Here

   /**
    * Test for {@link XmlBeanUtils#setValueAsQName(XmlObject, QName)}.
    */
   public void testSetValueAsQName(  )
   {
      QueryExpressionDocument queryExpressionDocument = QueryExpressionDocument.Factory.newInstance(  );
      QueryExpressionType     queryExpressionType = queryExpressionDocument.addNewQueryExpression(  );
      XmlBeanUtils.setValueAsQName( queryExpressionType, SushiPropertyQNames.AKAGI );
      XmlCursor xCursor = queryExpressionType.newCursor(  );
      String    prefix = xCursor.prefixForNamespace( SushiPropertyQNames.AKAGI.getNamespaceURI(  ) );
      String    value  = xCursor.getTextValue(  );
      assertEquals( prefix + ":" + SushiPropertyQNames.AKAGI.getLocalPart(  ), value );
View Full Code Here

      return createResponseDocument(  );
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return createResponseDocument(  );
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionDocument

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.