public Set<IOperationBean> getOperations() { Set<IOperationBean> res = new HashSet<IOperationBean>(); for (IInterfaceBean itf : interfaces) { res.addAll(itf.getOperations()); } return res; }
public List<IOperationBean> getOperations(){ List<IOperationBean> result = new ArrayList<IOperationBean>(); for(IInterfaceBean i:getInterfaces()){ for(IOperationBean o: i.getOperations()){ result.add(o); } } return result; }
public IOperationBean getOperationByName(String name) { for (IInterfaceBean itf : interfaces) { for (IOperationBean op : itf.getOperations()) { if (op.getName().equals(name)) { return op; } } } return null; }
@Override protected boolean isValid(IInterfaceBean data) { if (data.getName().equals("")==false && data.getName()!=null && data.getOperations().size()>0){ return true; } return false; }
@Override protected Object[] convertDataToObject(IInterfaceBean data) { Object[] object = new Object[3]; object[0] = data.getName(); object[1] = data.getOperations(); object[2] = data.getWsdlImplementationRef(); return object; }
public IMessageBean getMessageByName(String name) { for (IInterfaceBean itf : interfaces) { for (IOperationBean op : itf.getOperations()) { if (op.getMessageIn().getName().equals(name)) { return op.getMessageIn(); } if (op.getMessageOut() != null && op.getMessageOut().getName().equals(name)) { return op.getMessageOut(); } } } return null; }
private void validate(IOperationBean operationBean){ //check if operation is ok, if yes, add it to interface if (operationBean.getName()!=null && operationBean.getName().equals("")==false && operationBean.getMessageIn()!=null && operationBean.getMessageOut()!=null){ if (actualInterface.getOperations().contains(operationBean)==false) actualInterface.addOperation(operationBean); //if interface is ok if (actualInterface.getName()!=null && actualInterface.getName().equals("")==false ){ //add interface to definitions interfaceController.fireEvent(new AddInterfaceEvent(actualInterface)); } } }
private void editInterace(InterfaceEditPanel panel,IInterfaceBean interfaceBean){ //load operations panel.getOperationPanel().load(interfaceBean.getOperations()); //set interface name panel.getInterfaceNameTxtField().setValue(interfaceBean.getName()); }
this.actualRecord.set(Interface.operations.toString(), ib.getOperations());
if(itf.getOperations()!=null){ for(IOperationBean op : itf.getOperations()){ this.visitOperation(op);