public String getServiceName() {
return HPIDialogueConstants.LIST_INVOKERS_SERVICE;
}
public SSDObjectNode getSSDParameters() {
SSDObjectNode parameters = new SSDObjectNode(HPIDialogueConstants.PARAMETERS);
SSDObjectArray listInvokers = new SSDObjectArray(HPIDialogueConstants.LIST_INVOKERS);
if (this.listInvokers != null && this.listInvokers.size() > 0) {
for (int i = 0; i < this.listInvokers.size(); i++) {
Invoker invoker = (Invoker) this.listInvokers.elementAt(i);
SSDObjectNode ssdInvoker = new SSDObjectNode(HPIDialogueConstants.INVOKER);
ssdInvoker.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.ID, invoker.getId()));
ssdInvoker.addAttribute(new SSDObjectLeaf(HPIDialogueConstants.DESCRIPTION, invoker.getDescription()));
SSDObjectArray ssdExecutables = new SSDObjectArray(HPIDialogueConstants.EXECUTABLES);
if (invoker.getExecutables() != null && invoker.getExecutables().size() > 0) {
for (int e = 0; e < invoker.getExecutables().size(); e++) {
Executable executable = (Executable) invoker.getExecutables().elementAt(e);
SSDObjectNode ssdExecutable = new SSDObjectNode(HPIDialogueConstants.EXECUTABLE);
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);
}
}