public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getCondition()); hashCodeBuilder.append(this.getAssign()); hashCodeBuilder.append(this.getCompensate()); hashCodeBuilder.append(this.getCompensateScope()); hashCodeBuilder.append(this.getEmpty()); hashCodeBuilder.append(this.getExit()); hashCodeBuilder.append(this.getExtensionActivity()); hashCodeBuilder.append(this.getFlow()); hashCodeBuilder.append(this.getForEach()); hashCodeBuilder.append(this.getIf()); hashCodeBuilder.append(this.getInvoke()); hashCodeBuilder.append(this.getPick()); hashCodeBuilder.append(this.getReceive()); hashCodeBuilder.append(this.getRepeatUntil()); hashCodeBuilder.append(this.getReply()); hashCodeBuilder.append(this.getRethrow()); hashCodeBuilder.append(this.getScope()); hashCodeBuilder.append(this.getSequence()); hashCodeBuilder.append(this.getThrow()); hashCodeBuilder.append(this.getValidate()); hashCodeBuilder.append(this.getWait()); hashCodeBuilder.append(this.getWhile()); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TWhile copy = ((target == null)?((TWhile) createCopy()):((TWhile) target)); super.copyTo(copy, copyBuilder); sourceCondition = this.getCondition(); TBooleanExpr copyCondition = ((TBooleanExpr) copyBuilder.copy(sourceCondition)); copy.setCondition(copyCondition); sourceAssign = this.getAssign(); TAssign copyAssign = ((TAssign) copyBuilder.copy(sourceAssign)); copy.setAssign(copyAssign); sourceCompensate = this.getCompensate(); TCompensate copyCompensate = ((TCompensate) copyBuilder.copy(sourceCompensate)); copy.setCompensate(copyCompensate); sourceCompensateScope = this.getCompensateScope(); TCompensateScope copyCompensateScope = ((TCompensateScope) copyBuilder.copy(sourceCompensateScope)); copy.setCompensateScope(copyCompensateScope); sourceEmpty = this.getEmpty(); TEmpty copyEmpty = ((TEmpty) copyBuilder.copy(sourceEmpty)); copy.setEmpty(copyEmpty); sourceExit = this.getExit(); TExit copyExit = ((TExit) copyBuilder.copy(sourceExit)); copy.setExit(copyExit); sourceExtensionActivity = this.getExtensionActivity(); TExtensionActivity copyExtensionActivity = ((TExtensionActivity) copyBuilder.copy(sourceExtensionActivity));
public static Activity analyzeWhileActivity(final TWhile internalActivity, final BPELElementImpl parent) throws BPELException { Activity res = null; final TWhile temp = internalActivity; if(temp.getEmpty() != null) { res = new EmptyImpl(temp.getEmpty(), parent); } else if(temp.getWait() != null) { res = new WaitImpl(temp.getWait(), parent); } else if(temp.getSequence() != null) { res = new SequenceImpl(temp.getSequence(), parent); } else if(temp.getFlow() != null) { res = new FlowImpl(temp.getFlow(), parent); } else if(temp.getIf() != null) { res = new IfImpl(temp.getIf(), parent); } else if(temp.getWhile() != null) { res = new WhileImpl(temp.getWhile(), parent); } else if(temp.getForEach() != null) { res = new ForEachImpl(temp.getForEach(), parent); } else if(temp.getRepeatUntil() != null) { res = new RepeatUntilImpl(temp.getRepeatUntil(), parent); } else if(temp.getAssign() != null) { res = new AssignImpl(temp.getAssign(), parent); } else if(temp.getPick() != null) { res = new PickImpl(temp.getPick(), parent); } else if(temp.getScope() != null) { res = new ScopeImpl(temp.getScope(), parent); } else if(temp.getInvoke() != null) { res = new InvokeImpl(temp.getInvoke(), parent); } else if(temp.getReceive() != null) { res = new ReceiveImpl(temp.getReceive(), parent); } else if(temp.getReply() != null) {
public WhileImpl(final TWhile model, final BPELElement parent) { super(Constants._While_QNAME, model, parent); if(this.model.getCondition() != null) { try { this.condition = new BPELBooleanExpressionImpl(this.model.getCondition(), parent); } catch (XPathExpressionException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException(e))); } if((this.model.getCondition().getContent() != null)&& (this.model.getCondition().getContent().size() > 0)) { this.condition.setContent((String)this.model.getCondition().getContent().get(0)); } } try { this.activity = ActivityImpl.analyzeWhileActivity(this.model, this); } catch (final BPELException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("In while " + this.getName() + " => " + e.getMessage(), e))); } }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TWhile copy = ((target == null)?((TWhile) createCopy()):((TWhile) target)); super.copyTo(copy, copyBuilder); sourceCondition = this.getCondition(); TBooleanExpr copyCondition = ((TBooleanExpr) copyBuilder.copy(sourceCondition)); copy.setCondition(copyCondition); sourceAssign = this.getAssign(); TAssign copyAssign = ((TAssign) copyBuilder.copy(sourceAssign)); copy.setAssign(copyAssign); sourceCompensate = this.getCompensate(); TCompensate copyCompensate = ((TCompensate) copyBuilder.copy(sourceCompensate)); copy.setCompensate(copyCompensate); sourceCompensateScope = this.getCompensateScope(); TCompensateScope copyCompensateScope = ((TCompensateScope) copyBuilder.copy(sourceCompensateScope)); copy.setCompensateScope(copyCompensateScope); sourceEmpty = this.getEmpty(); TEmpty copyEmpty = ((TEmpty) copyBuilder.copy(sourceEmpty)); copy.setEmpty(copyEmpty); sourceExit = this.getExit(); TExit copyExit = ((TExit) copyBuilder.copy(sourceExit)); copy.setExit(copyExit); sourceExtensionActivity = this.getExtensionActivity(); TExtensionActivity copyExtensionActivity = ((TExtensionActivity) copyBuilder.copy(sourceExtensionActivity));
@Override public void validate() { // validation if(((TWhile)((BPELElementImpl)this.getActivity()).getModel()).getCondition() == null) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In While => conditon of if cannot be null"))); } }
equalsBuilder.append(this.getCondition(), that.getCondition()); equalsBuilder.append(this.getAssign(), that.getAssign()); equalsBuilder.append(this.getCompensate(), that.getCompensate()); equalsBuilder.append(this.getCompensateScope(), that.getCompensateScope()); equalsBuilder.append(this.getEmpty(), that.getEmpty()); equalsBuilder.append(this.getExit(), that.getExit()); equalsBuilder.append(this.getExtensionActivity(), that.getExtensionActivity()); equalsBuilder.append(this.getFlow(), that.getFlow()); equalsBuilder.append(this.getForEach(), that.getForEach()); equalsBuilder.append(this.getIf(), that.getIf()); equalsBuilder.append(this.getInvoke(), that.getInvoke()); equalsBuilder.append(this.getPick(), that.getPick()); equalsBuilder.append(this.getReceive(), that.getReceive()); equalsBuilder.append(this.getRepeatUntil(), that.getRepeatUntil()); equalsBuilder.append(this.getReply(), that.getReply()); equalsBuilder.append(this.getRethrow(), that.getRethrow()); equalsBuilder.append(this.getScope(), that.getScope()); equalsBuilder.append(this.getSequence(), that.getSequence()); equalsBuilder.append(this.getThrow(), that.getThrow()); equalsBuilder.append(this.getValidate(), that.getValidate()); equalsBuilder.append(this.getWait(), that.getWait()); equalsBuilder.append(this.getWhile(), that.getWhile());
equalsBuilder.append(this.getCondition(), that.getCondition()); equalsBuilder.append(this.getAssign(), that.getAssign()); equalsBuilder.append(this.getCompensate(), that.getCompensate()); equalsBuilder.append(this.getCompensateScope(), that.getCompensateScope()); equalsBuilder.append(this.getEmpty(), that.getEmpty()); equalsBuilder.append(this.getExit(), that.getExit()); equalsBuilder.append(this.getExtensionActivity(), that.getExtensionActivity()); equalsBuilder.append(this.getFlow(), that.getFlow()); equalsBuilder.append(this.getForEach(), that.getForEach()); equalsBuilder.append(this.getIf(), that.getIf()); equalsBuilder.append(this.getInvoke(), that.getInvoke()); equalsBuilder.append(this.getPick(), that.getPick()); equalsBuilder.append(this.getReceive(), that.getReceive()); equalsBuilder.append(this.getRepeatUntil(), that.getRepeatUntil()); equalsBuilder.append(this.getReply(), that.getReply()); equalsBuilder.append(this.getRethrow(), that.getRethrow()); equalsBuilder.append(this.getScope(), that.getScope()); equalsBuilder.append(this.getSequence(), that.getSequence()); equalsBuilder.append(this.getThrow(), that.getThrow()); equalsBuilder.append(this.getValidate(), that.getValidate()); equalsBuilder.append(this.getWait(), that.getWait()); equalsBuilder.append(this.getWhile(), that.getWhile());
public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getCondition()); hashCodeBuilder.append(this.getAssign()); hashCodeBuilder.append(this.getCompensate()); hashCodeBuilder.append(this.getCompensateScope()); hashCodeBuilder.append(this.getEmpty()); hashCodeBuilder.append(this.getExit()); hashCodeBuilder.append(this.getExtensionActivity()); hashCodeBuilder.append(this.getFlow()); hashCodeBuilder.append(this.getForEach()); hashCodeBuilder.append(this.getIf()); hashCodeBuilder.append(this.getInvoke()); hashCodeBuilder.append(this.getPick()); hashCodeBuilder.append(this.getReceive()); hashCodeBuilder.append(this.getRepeatUntil()); hashCodeBuilder.append(this.getReply()); hashCodeBuilder.append(this.getRethrow()); hashCodeBuilder.append(this.getScope()); hashCodeBuilder.append(this.getSequence()); hashCodeBuilder.append(this.getThrow()); hashCodeBuilder.append(this.getValidate()); hashCodeBuilder.append(this.getWait()); hashCodeBuilder.append(this.getWhile()); }
theCondition = this.getCondition(); toStringBuilder.append("condition", theCondition); theAssign = this.getAssign(); toStringBuilder.append("assign", theAssign); theCompensate = this.getCompensate(); toStringBuilder.append("compensate", theCompensate); theCompensateScope = this.getCompensateScope(); toStringBuilder.append("compensateScope", theCompensateScope); theEmpty = this.getEmpty(); toStringBuilder.append("empty", theEmpty); theExit = this.getExit(); toStringBuilder.append("exit", theExit); theExtensionActivity = this.getExtensionActivity(); toStringBuilder.append("extensionActivity", theExtensionActivity); theFlow = this.getFlow(); toStringBuilder.append("flow", theFlow); theForEach = this.getForEach(); toStringBuilder.append("forEach", theForEach); theIf = this.getIf(); toStringBuilder.append("_if", theIf);
theCondition = this.getCondition(); toStringBuilder.append("condition", theCondition); theAssign = this.getAssign(); toStringBuilder.append("assign", theAssign); theCompensate = this.getCompensate(); toStringBuilder.append("compensate", theCompensate); theCompensateScope = this.getCompensateScope(); toStringBuilder.append("compensateScope", theCompensateScope); theEmpty = this.getEmpty(); toStringBuilder.append("empty", theEmpty); theExit = this.getExit(); toStringBuilder.append("exit", theExit); theExtensionActivity = this.getExtensionActivity(); toStringBuilder.append("extensionActivity", theExtensionActivity); theFlow = this.getFlow(); toStringBuilder.append("flow", theFlow); theForEach = this.getForEach(); toStringBuilder.append("forEach", theForEach); theIf = this.getIf(); toStringBuilder.append("_if", theIf);