Package org.hpi.dialogue.protocol.entities

Examples of org.hpi.dialogue.protocol.entities.Parameter


                ssdExecutable.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.CANONICAL_PATH, executable.getCanonicalPath()));

                SSDObjectArray ssdParemeters = new SSDObjectArray(HPIDialogueConstants.PARAMETERS);
                if (executable.getParameters() != null && executable.getParameters().size() > 0) {
                    for (int p = 0; p < executable.getParameters().size(); p ++) {
                        Parameter parameter = (Parameter) executable.getParameters().elementAt(p);
                        SSDObjectNode ssdParemeter = new SSDObjectNode(HPIDialogueConstants.PARAMETER);
                        ssdParemeter.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.KEY, parameter.getKey()));
                        ssdParemeter.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.VALUE, parameter.getValue()));

                        ssdParemeters.addElement(ssdParemeter);
                    }
                }
View Full Code Here


                        ssdExecutable.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.CANONICAL_PATH, executable.getCanonicalPath()));

                        SSDObjectArray ssdParemeters = new SSDObjectArray(HPIDialogueConstants.PARAMETERS);
                        if (executable.getParameters() != null && executable.getParameters().size() > 0) {
                            for (int p =0; p < executable.getParameters().size(); p ++) {
                                Parameter parameter = (Parameter) executable.getParameters().elementAt(p);
                                SSDObjectNode ssdParemeter = new SSDObjectNode(HPIDialogueConstants.PARAMETER);
                                ssdParemeter.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.KEY, parameter.getKey()));
                                ssdParemeter.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.VALUE, parameter.getValue()));

                                ssdParemeters.addElement(ssdParemeter);
                            }
                        }
View Full Code Here

            executable.setCanonicalPath(ssdExecutable.getLeaf(HPIDialogueConstants.CANONICAL_PATH).getValue());
           
            SSDObjectArray ssdParameters = ssdExecutable.getArray(HPIDialogueConstants.PARAMETERS);
            for (int p = 0; p < ssdParameters.getSize(); p ++) {
              SSDObjectNode ssdParameter = ssdParameters.getNode(p);
              Parameter parameter = new Parameter();
              parameter.setKey(ssdParameter.getLeaf(HPIDialogueConstants.KEY).getValue());
              parameter.setValue(ssdParameter.getLeaf(HPIDialogueConstants.VALUE).getValue());
             
              executable.getParameters().add(parameter);
            }
           
            invoker.getExecutables().add(executable);
          }
         
          listInvokers.add(invoker);
        }
       
        return new ListInvokersResponse(listInvokers, responseMessage, responseStatus);
      } else if (serviceName.equals(HPIDialogueConstants.DESCRIBE_INVOKER_SERVICE)) {
        SSDObjectNode ssdInvoker = parameters.getNode(HPIDialogueConstants.INVOKER);
        Invoker invoker = new Invoker();
        invoker.setId(ssdInvoker.getLeaf(HPIDialogueConstants.ID).getValue());
        invoker.setDescription(ssdInvoker.getLeaf(HPIDialogueConstants.DESCRIPTION).getValue());
       
        SSDObjectArray ssdExecutables = ssdInvoker.getArray(HPIDialogueConstants.EXECUTABLES);
        for (int e = 0; e < ssdExecutables.getSize(); e ++) {
          SSDObjectNode ssdExecutable = ssdExecutables.getNode(e);
          Executable executable = new Executable();
          executable.setCanonicalPath(ssdExecutable.getLeaf(HPIDialogueConstants.CANONICAL_PATH).getValue());
         
          SSDObjectArray ssdParameters = ssdExecutable.getArray(HPIDialogueConstants.PARAMETERS);
          for (int p = 0; p < ssdParameters.getSize(); p ++) {
            SSDObjectNode ssdParameter = ssdParameters.getNode(p);
            Parameter parameter = new Parameter();
            parameter.setKey(ssdParameter.getLeaf(HPIDialogueConstants.KEY).getValue());
            parameter.setValue(ssdParameter.getLeaf(HPIDialogueConstants.VALUE).getValue());
           
            executable.getParameters().add(parameter);
          }
         
          invoker.getExecutables().add(executable);
View Full Code Here

            executable.setCanonicalPath(ssdExecutable.getLeaf(HPIDialogueConstants.CANONICAL_PATH).getValue());
           
            SSDObjectArray ssdParameters = ssdExecutable.getArray(HPIDialogueConstants.PARAMETERS);
            for (int p = 0; p < ssdParameters.getSize(); p ++) {
              SSDObjectNode ssdParameter = ssdParameters.getNode(p);
              Parameter parameter = new Parameter();
              parameter.setKey(ssdParameter.getLeaf(HPIDialogueConstants.KEY).getValue());
              parameter.setValue(ssdParameter.getLeaf(HPIDialogueConstants.VALUE).getValue());
             
              executable.getParameters().addElement(parameter);
            }
           
            invoker.getExecutables().addElement(executable);
          }
         
          listInvokers.addElement(invoker);
        }
       
        return new ListInvokersResponse(listInvokers, responseMessage, responseStatus);
      } else if (serviceName.equals(HPIDialogueConstants.DESCRIBE_INVOKER_SERVICE)) {
        SSDObjectNode ssdInvoker = parameters.getNode(HPIDialogueConstants.INVOKER);
        Invoker invoker = new Invoker();
        invoker.setId(ssdInvoker.getLeaf(HPIDialogueConstants.ID).getValue());
        invoker.setDescription(ssdInvoker.getLeaf(HPIDialogueConstants.DESCRIPTION).getValue());
       
        SSDObjectArray ssdExecutables = ssdInvoker.getArray(HPIDialogueConstants.EXECUTABLES);
        for (int e = 0; e < ssdExecutables.getSize(); e ++) {
          SSDObjectNode ssdExecutable = ssdExecutables.getNode(e);
          Executable executable = new Executable();
          executable.setCanonicalPath(ssdExecutable.getLeaf(HPIDialogueConstants.CANONICAL_PATH).getValue());
         
          SSDObjectArray ssdParameters = ssdExecutable.getArray(HPIDialogueConstants.PARAMETERS);
          for (int p = 0; p < ssdParameters.getSize(); p ++) {
            SSDObjectNode ssdParameter = ssdParameters.getNode(p);
            Parameter parameter = new Parameter();
            parameter.setKey(ssdParameter.getLeaf(HPIDialogueConstants.KEY).getValue());
            parameter.setValue(ssdParameter.getLeaf(HPIDialogueConstants.VALUE).getValue());
           
            executable.getParameters().addElement(parameter);
          }
         
          invoker.getExecutables().addElement(executable);
View Full Code Here

      executable.setCanonicalPath(ssdExecutable.getLeaf(HPIConstants.CANONICAL_PATH_INVOKER_FILE).getValue());
     
      SSDObjectArray ssdParameters = ssdExecutable.getArray(HPIConstants.PARAMETERS_INVOKER_FILE);
      for (int j = 0; j < ssdParameters.getSize(); j++) {
        SSDObjectNode ssdParameter = ssdParameters.getNode(j);
        Parameter parameter = new Parameter();
        parameter.setKey(ssdParameter.getLeaf(HPIConstants.KEY_INVOKER_FILE).getValue());
        parameter.setValue(ssdParameter.getLeaf(HPIConstants.VALUE_INVOKER_FILE).getValue());
        executable.getParameters().add(parameter);
      }
      invoker.getExecutables().add(executable);
    }
   
View Full Code Here

TOP

Related Classes of org.hpi.dialogue.protocol.entities.Parameter

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.