public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getCorrelations()); hashCodeBuilder.append(this.getFromParts()); hashCodeBuilder.append(this.getPartnerLink()); hashCodeBuilder.append(this.getPortType()); hashCodeBuilder.append(this.getOperation()); hashCodeBuilder.append(this.getVariable()); hashCodeBuilder.append(this.getCreateInstance()); hashCodeBuilder.append(this.getMessageExchange()); }
public void setCreateInstance(boolean b) { TBoolean tb; if(b){ tb = TBoolean.YES; }else{ tb = TBoolean.NO; } this.model.setCreateInstance(tb); }
public void setMessageExchange(String me) { this.model.setMessageExchange(me); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TReceive copy = ((target == null)?((TReceive) createCopy()):((TReceive) target)); super.copyTo(copy, copyBuilder); sourceCorrelations = this.getCorrelations(); TCorrelations copyCorrelations = ((TCorrelations) copyBuilder.copy(sourceCorrelations)); copy.setCorrelations(copyCorrelations); sourceFromParts = this.getFromParts(); TFromParts copyFromParts = ((TFromParts) copyBuilder.copy(sourceFromParts)); copy.setFromParts(copyFromParts); sourcePartnerLink = this.getPartnerLink(); String copyPartnerLink = ((String) copyBuilder.copy(sourcePartnerLink)); copy.setPartnerLink(copyPartnerLink); sourcePortType = this.getPortType(); QName copyPortType = ((QName) copyBuilder.copy(sourcePortType)); copy.setPortType(copyPortType); sourceOperation = this.getOperation(); String copyOperation = ((String) copyBuilder.copy(sourceOperation)); copy.setOperation(copyOperation); sourceVariable = this.getVariable(); String copyVariable = ((String) copyBuilder.copy(sourceVariable)); copy.setVariable(copyVariable); sourceCreateInstance = this.getCreateInstance(); TBoolean copyCreateInstance = ((TBoolean) copyBuilder.copy(sourceCreateInstance));
@SuppressWarnings("unchecked") public ReceiveImpl(final TReceive model, final BPELElement parent) { super(Constants._Receive_QNAME, model, parent); if(this.model.getCorrelations() != null) { this.correlations = new ArrayList<Correlation>(); for(final TCorrelation corr: this.model.getCorrelations().getCorrelation()) { this.correlations.add(new CorrelationImpl(corr, this.model.getCorrelations(), this)); } } log.finest("[DEBUG] CreateInstance is set to "+String.valueOf(this.model.getCreateInstance())+" in JAXB model..."); // TBoolean tb = model.getCreateInstance(); // if(tb.compareTo(TBoolean.NO)==0){ // createInstance = false; // }else{ // createInstance = true; // } }
if((((TReceive)((BPELElementImpl)this.getActivity()).getModel()).getFromParts() != null) && (((TReceive)((BPELElementImpl)this.getActivity()).getModel()).getFromParts().getFromPart().size() > 0)) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.getActivity(), "In receive " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the activity fromPart is not supported by BPEL engine for the moment. Use assign element after this receive instead")); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In receive " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the activity fromPart is not supported by BPEL engine for the moment. Use assign element after this receive instead"))); if(((TReceive)((BPELElementImpl)this.getActivity()).getModel()).getMessageExchange() != null) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.getActivity(), "In receive " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the messageExchange attribute is not supported by BPEL engine for the moment.")); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In receive " + this.getActivity().getName() + " => [BPEL engine Restriction] Sorry, but the activity fromPart is not supported by BPEL engine for the moment. Use assign element after this receive instead")));
public String getInputVariable() { return this.model.getVariable(); }
public String getMessageExchange() { return this.model.getMessageExchange(); }
public String getOperation() { return this.model.getOperation(); }
public QName getInterface() { return this.model.getPortType(); }
public String getPartnerLink() { return this.model.getPartnerLink(); }
public boolean getCreateInstance() { boolean res = false; if((this.model.getCreateInstance() != null) && this.model.getCreateInstance().equals(TBoolean.YES) ) { res = true; } else { res = false; } return res; }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TReceive copy = ((target == null)?((TReceive) createCopy()):((TReceive) target)); super.copyTo(copy, copyBuilder); sourceCorrelations = this.getCorrelations(); TCorrelations copyCorrelations = ((TCorrelations) copyBuilder.copy(sourceCorrelations)); copy.setCorrelations(copyCorrelations); sourceFromParts = this.getFromParts(); TFromParts copyFromParts = ((TFromParts) copyBuilder.copy(sourceFromParts)); copy.setFromParts(copyFromParts); sourcePartnerLink = this.getPartnerLink(); String copyPartnerLink = ((String) copyBuilder.copy(sourcePartnerLink)); copy.setPartnerLink(copyPartnerLink); sourcePortType = this.getPortType(); QName copyPortType = ((QName) copyBuilder.copy(sourcePortType)); copy.setPortType(copyPortType); sourceOperation = this.getOperation(); String copyOperation = ((String) copyBuilder.copy(sourceOperation)); copy.setOperation(copyOperation); sourceVariable = this.getVariable(); String copyVariable = ((String) copyBuilder.copy(sourceVariable)); copy.setVariable(copyVariable); sourceCreateInstance = this.getCreateInstance(); TBoolean copyCreateInstance = ((TBoolean) copyBuilder.copy(sourceCreateInstance));
public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getCorrelations()); hashCodeBuilder.append(this.getFromParts()); hashCodeBuilder.append(this.getPartnerLink()); hashCodeBuilder.append(this.getPortType()); hashCodeBuilder.append(this.getOperation()); hashCodeBuilder.append(this.getVariable()); hashCodeBuilder.append(this.getCreateInstance()); hashCodeBuilder.append(this.getMessageExchange()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TReceive)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } super.equals(object, equalsBuilder); final TReceive that = ((TReceive) object); equalsBuilder.append(this.getCorrelations(), that.getCorrelations()); equalsBuilder.append(this.getFromParts(), that.getFromParts()); equalsBuilder.append(this.getPartnerLink(), that.getPartnerLink()); equalsBuilder.append(this.getPortType(), that.getPortType()); equalsBuilder.append(this.getOperation(), that.getOperation()); equalsBuilder.append(this.getVariable(), that.getVariable()); equalsBuilder.append(this.getCreateInstance(), that.getCreateInstance()); equalsBuilder.append(this.getMessageExchange(), that.getMessageExchange()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TReceive)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } super.equals(object, equalsBuilder); final TReceive that = ((TReceive) object); equalsBuilder.append(this.getCorrelations(), that.getCorrelations()); equalsBuilder.append(this.getFromParts(), that.getFromParts()); equalsBuilder.append(this.getPartnerLink(), that.getPartnerLink()); equalsBuilder.append(this.getPortType(), that.getPortType()); equalsBuilder.append(this.getOperation(), that.getOperation()); equalsBuilder.append(this.getVariable(), that.getVariable()); equalsBuilder.append(this.getCreateInstance(), that.getCreateInstance()); equalsBuilder.append(this.getMessageExchange(), that.getMessageExchange()); }
theCorrelations = this.getCorrelations(); toStringBuilder.append("correlations", theCorrelations); theFromParts = this.getFromParts(); toStringBuilder.append("fromParts", theFromParts); thePartnerLink = this.getPartnerLink(); toStringBuilder.append("partnerLink", thePartnerLink); thePortType = this.getPortType(); toStringBuilder.append("portType", thePortType); theOperation = this.getOperation(); toStringBuilder.append("operation", theOperation); theVariable = this.getVariable(); toStringBuilder.append("variable", theVariable); theCreateInstance = this.getCreateInstance(); toStringBuilder.append("createInstance", theCreateInstance); theMessageExchange = this.getMessageExchange(); toStringBuilder.append("messageExchange", theMessageExchange);
theCorrelations = this.getCorrelations(); toStringBuilder.append("correlations", theCorrelations); theFromParts = this.getFromParts(); toStringBuilder.append("fromParts", theFromParts); thePartnerLink = this.getPartnerLink(); toStringBuilder.append("partnerLink", thePartnerLink); thePortType = this.getPortType(); toStringBuilder.append("portType", thePortType); theOperation = this.getOperation(); toStringBuilder.append("operation", theOperation); theVariable = this.getVariable(); toStringBuilder.append("variable", theVariable); theCreateInstance = this.getCreateInstance(); toStringBuilder.append("createInstance", theCreateInstance); theMessageExchange = this.getMessageExchange(); toStringBuilder.append("messageExchange", theMessageExchange);