public Set<IMessageBean> getMessages() { Set<IMessageBean> res = new HashSet<IMessageBean>(); for (IOperationBean op : getOperations()) { res.add(op.getMessageIn()); if (op.getMessageOut() != null) { res.add(op.getMessageOut()); } } return res; }
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; }
@Override protected boolean isValid(IOperationBean data) { if (data.getName()!=null && data.getName().equals("")==false && data.getMessageIn()!=null && data.getMessageOut()!=null){ return true; } return false; }
@Override protected Object[] convertDataToObject(IOperationBean data) { Object[] object = new Object[5]; object[0] = data.getName(); object[1] = data.getMessageIn(); object[2] = data.getMessageOut(); object[3] = data.getErrors(); object[4] = data.getWsdlImplementationRef(); return object; }
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)); } } }
this.visitOperationMessageIn(msg,op); msg = op.getMessageOut(); if(msg!=null){ this.visitOperationMessageOut(msg,op);