Package org.ogce.schemas.gfac.documents.ApplicationType

Examples of org.ogce.schemas.gfac.documents.ApplicationType.ApplicationName


      ApplicationType appType = method.getApplication();
      if (appType == null) {
        appType = method.addNewApplication();
      }
      appType.setParamValuesOnly(true);
      ApplicationName appNameType = appType.getApplicationName();
      if (appNameType == null) {
        appNameType = appType.addNewApplicationName();
      }
      QName appName = new QName(serviceInfo.getObjectNamespace(),
          serviceInfo.getApplicationName());
      appNameType.setStringValue(appName.getLocalPart());
      appNameType.setTargetNamespace(appName.getNamespaceURI());
      appType.setApplicationDescription(op.getMethodDescription());

      // Boolean parameters from Service screen
      if (op.isStageOutputDataFiles()) {
        method.setStageOutputDataFiles(true);
View Full Code Here


      notAfterInactiveMinutes = serviceMapType.getLifeTime()
          .getNotAfterInactiveMinutes();
    }
    MethodType method = findOperationWithApplication(serviceMapType);
    ApplicationType appType = method.getApplication();
    ApplicationName appxbeanName = method.getApplication()
        .getApplicationName();
    String appName = new QName(appxbeanName.getTargetNamespace(),
        appxbeanName.getStringValue()).toString();
    MethodBean methodBean = new MethodBean(method.getMethodName(), method
        .getMethodDescription(), method.isSetStageOutputDataFiles(),
        method.isSetForceFileStagingToWorkDir(), appType
            .isSetUseLEADNameListFile(), appType
            .isSetUseLEADNameListPropertiesFile());

    InputParameterType[] inputparams = method.getInputParameterArray();
    for (int index = 0; index < inputparams.length; index++) {

      InputParameterType inputParameterType = inputparams[index];
      methodBean.addInputParms(new ParamObject(inputParameterType
          .getParameterName(), inputParameterType.getParameterType()
          .toString(), index, inputParameterType
          .getParameterDescription()));

    }

    OutputParameterType[] outparams = method.getOutputParameterArray();
    for (int index = 0; index < outparams.length; index++) {

      OutputParameterType outputParameterType = outparams[index];
      methodBean.addOutputParms(new ParamObject(outputParameterType
          .getParameterName(), outputParameterType.getParameterType()
          .toString(), index, outputParameterType
          .getParameterDescription()));

    }

    serviceBean.setApplicationName(appName);
    serviceBean.setServiceName(serviceMapType.getService().getServiceName()
        .getStringValue());
    serviceBean.setApplicationName(appxbeanName.getStringValue());
    serviceBean.setNotAfterInactiveMinutes(notAfterInactiveMinutes);
    serviceBean.setMethodBean(methodBean);
    serviceBean.setObjectNamespace(serviceMapType.getService()
        .getServiceName().getTargetNamespace());
View Full Code Here

    if (serviceMapType.getLifeTime() != null) {
      notAfterInactiveMinutes = serviceMapType.getLifeTime().getNotAfterInactiveMinutes();
    }
    MethodType method = GfacUtils.findOperationWithApplication(serviceMapType);
    ApplicationType appType = method.getApplication();
    ApplicationName appxbeanName = method.getApplication().getApplicationName();
    String appName = new QName(appxbeanName.getTargetNamespace(), appxbeanName.getStringValue()).toString();
    MethodBean methodBean = new MethodBean(method.getMethodName(), method.getMethodDescription(),
        method.isSetStageOutputDataFiles(), method.isSetForceFileStagingToWorkDir(),
        appType.isSetUseLEADNameListFile(), appType.isSetUseLEADNameListPropertiesFile());

    // Done to convert the parameter type of enum to string which was not
    // possible in JSF selectOneListbox. For inputText it works without
    // doing this change
    InputParameterType[] inputparams = method.getInputParameterArray();
    ServiceParam[] inparam = new ServiceParam[inputparams.length];

    for (int i = 0; i < inputparams.length; i++) {
      inparam[i] = new ServiceParam();
      InputParameterType inputParameterType = inputparams[i];
      inparam[i].paramName = inputParameterType.getParameterName();
      inparam[i].paramDesc = inputParameterType.getParameterDescription();
      inparam[i].paramValue = inputParameterType.getParameterType().toString();

    }
    // Done to convert the parameter type of enum to string which was not
    // possible in JSF selectOneListbox. For inputText it works without
    // doing this change
    OutputParameterType[] outparams = method.getOutputParameterArray();
    ServiceParam[] outparam = new ServiceParam[outparams.length];
    for (int i = 0; i < outparams.length; i++) {
      outparam[i] = new ServiceParam();
      OutputParameterType outputParameterType = outparams[i];
      outparam[i].paramName = outputParameterType.getParameterName();
      outparam[i].paramDesc = outputParameterType.getParameterDescription();
      outparam[i].paramValue = outputParameterType.getParameterType().toString();
    }

    bean.setOutputParam(outparams);
    bean.setInputPrm(inparam);
    bean.setOutPrm(outparam);
    bean.setServiceName(name);
    bean.setApplicationName(appxbeanName.getStringValue());
    bean.setNotAfterInactiveMinutes(notAfterInactiveMinutes);
    bean.setMethodBean(methodBean);
    bean.setObjectNamespace(serviceMapType.getService().getServiceName().getTargetNamespace());

    return bean;
View Full Code Here

      ApplicationType appType = method.getApplication();
      if (appType == null) {
        appType = method.addNewApplication();
      }
      appType.setParamValuesOnly(true);
      ApplicationName appNameType = appType.getApplicationName();
      if (appNameType == null) {
        appNameType = appType.addNewApplicationName();
      }
      QName appName = new QName(serviceInfo.getObjectNamespace(), serviceInfo.getApplicationName());
      appNameType.setStringValue(appName.getLocalPart());
      appNameType.setTargetNamespace(appName.getNamespaceURI());
      appType.setApplicationDescription(op.getMethodDescription());

      // Boolean parameters from Service screen
      if (op.isStageOutputDataFiles()) {
        method.setStageOutputDataFiles(true);
View Full Code Here

      ApplicationType appType = method.getApplication();
      if (appType == null) {
        appType = method.addNewApplication();
      }
      appType.setParamValuesOnly(true);
      ApplicationName appNameType = appType.getApplicationName();
      if (appNameType == null) {
        appNameType = appType.addNewApplicationName();
      }
      QName appName = new QName(serviceInfo.getObjectNamespace(), serviceInfo.getApplicationName());
      appNameType.setStringValue(appName.getLocalPart());
      appNameType.setTargetNamespace(appName.getNamespaceURI());
      appType.setApplicationDescription(op.getMethodDescription());

      // Boolean parameters from Service screen
      if (op.isStageOutputDataFiles()) {
        method.setStageOutputDataFiles(true);
View Full Code Here

TOP

Related Classes of org.ogce.schemas.gfac.documents.ApplicationType.ApplicationName

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.