public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getStartCounterValue()); hashCodeBuilder.append(this.getFinalCounterValue()); hashCodeBuilder.append(this.getCompletionCondition()); hashCodeBuilder.append(this.getScope()); hashCodeBuilder.append(this.getCounterName()); hashCodeBuilder.append(this.getParallel()); }
/** * Create an instance of {@link TForEach } * */ public TForEach createTForEach() { return new TForEach(); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TForEach copy = ((target == null)?((TForEach) createCopy()):((TForEach) target)); super.copyTo(copy, copyBuilder); sourceStartCounterValue = this.getStartCounterValue(); TExpression copyStartCounterValue = ((TExpression) copyBuilder.copy(sourceStartCounterValue)); copy.setStartCounterValue(copyStartCounterValue); sourceFinalCounterValue = this.getFinalCounterValue(); TExpression copyFinalCounterValue = ((TExpression) copyBuilder.copy(sourceFinalCounterValue)); copy.setFinalCounterValue(copyFinalCounterValue); sourceCompletionCondition = this.getCompletionCondition(); TCompletionCondition copyCompletionCondition = ((TCompletionCondition) copyBuilder.copy(sourceCompletionCondition)); copy.setCompletionCondition(copyCompletionCondition); sourceScope = this.getScope(); TScope copyScope = ((TScope) copyBuilder.copy(sourceScope)); copy.setScope(copyScope); sourceCounterName = this.getCounterName(); String copyCounterName = ((String) copyBuilder.copy(sourceCounterName)); copy.setCounterName(copyCounterName); sourceParallel = this.getParallel(); TBoolean copyParallel = ((TBoolean) copyBuilder.copy(sourceParallel)); copy.setParallel(copyParallel);
public ForEachImpl(final TForEach model, final BPELElement parent) { super(Constants._ForEach_QNAME, model, parent); if(this.model.getScope() != null) { this.scope = new ScopeImpl(this.model.getScope(), this); } if(this.model.getStartCounterValue() != null) { this.startCounterValue = new BPELUnsignedIntegerExpressionImpl(new QName(Constants.BPEL_20_EXECUTABLE_NAMESPACE, "startCounterValue", "bpws"), this.model.getStartCounterValue(), this); } if(this.model.getFinalCounterValue() != null) { this.finalCounterValue = new BPELUnsignedIntegerExpressionImpl(new QName(Constants.BPEL_20_EXECUTABLE_NAMESPACE, "finalCounterValue", "bpws"), this.model.getFinalCounterValue(), this); } }
public String getCounterName() { return this.model.getCounterName(); }
public boolean equals(Object object) { if (!(object instanceof TForEach)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TForEach copy = ((target == null)?((TForEach) createCopy()):((TForEach) target)); super.copyTo(copy, copyBuilder); sourceStartCounterValue = this.getStartCounterValue(); TExpression copyStartCounterValue = ((TExpression) copyBuilder.copy(sourceStartCounterValue)); copy.setStartCounterValue(copyStartCounterValue); sourceFinalCounterValue = this.getFinalCounterValue(); TExpression copyFinalCounterValue = ((TExpression) copyBuilder.copy(sourceFinalCounterValue)); copy.setFinalCounterValue(copyFinalCounterValue); sourceCompletionCondition = this.getCompletionCondition(); TCompletionCondition copyCompletionCondition = ((TCompletionCondition) copyBuilder.copy(sourceCompletionCondition)); copy.setCompletionCondition(copyCompletionCondition); sourceScope = this.getScope(); TScope copyScope = ((TScope) copyBuilder.copy(sourceScope)); copy.setScope(copyScope); sourceCounterName = this.getCounterName(); String copyCounterName = ((String) copyBuilder.copy(sourceCounterName)); copy.setCounterName(copyCounterName); sourceParallel = this.getParallel(); TBoolean copyParallel = ((TBoolean) copyBuilder.copy(sourceParallel)); copy.setParallel(copyParallel);
public boolean equals(Object object) { if (!(object instanceof TForEach)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { super.hashCode(hashCodeBuilder); hashCodeBuilder.append(this.getStartCounterValue()); hashCodeBuilder.append(this.getFinalCounterValue()); hashCodeBuilder.append(this.getCompletionCondition()); hashCodeBuilder.append(this.getScope()); hashCodeBuilder.append(this.getCounterName()); hashCodeBuilder.append(this.getParallel()); }
/** * Create an instance of {@link TForEach } * */ public TForEach createTForEach() { return new TForEach(); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TForEach)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } super.equals(object, equalsBuilder); final TForEach that = ((TForEach) object); equalsBuilder.append(this.getStartCounterValue(), that.getStartCounterValue()); equalsBuilder.append(this.getFinalCounterValue(), that.getFinalCounterValue()); equalsBuilder.append(this.getCompletionCondition(), that.getCompletionCondition()); equalsBuilder.append(this.getScope(), that.getScope()); equalsBuilder.append(this.getCounterName(), that.getCounterName()); equalsBuilder.append(this.getParallel(), that.getParallel()); }
public Object createCopy() { return new TForEach(); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TForEach)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } super.equals(object, equalsBuilder); final TForEach that = ((TForEach) object); equalsBuilder.append(this.getStartCounterValue(), that.getStartCounterValue()); equalsBuilder.append(this.getFinalCounterValue(), that.getFinalCounterValue()); equalsBuilder.append(this.getCompletionCondition(), that.getCompletionCondition()); equalsBuilder.append(this.getScope(), that.getScope()); equalsBuilder.append(this.getCounterName(), that.getCounterName()); equalsBuilder.append(this.getParallel(), that.getParallel()); }
public Object createCopy() { return new TForEach(); }
theStartCounterValue = this.getStartCounterValue(); toStringBuilder.append("startCounterValue", theStartCounterValue); theFinalCounterValue = this.getFinalCounterValue(); toStringBuilder.append("finalCounterValue", theFinalCounterValue); theCompletionCondition = this.getCompletionCondition(); toStringBuilder.append("completionCondition", theCompletionCondition); theScope = this.getScope(); toStringBuilder.append("scope", theScope); theCounterName = this.getCounterName(); toStringBuilder.append("counterName", theCounterName); theParallel = this.getParallel(); toStringBuilder.append("parallel", theParallel);
theStartCounterValue = this.getStartCounterValue(); toStringBuilder.append("startCounterValue", theStartCounterValue); theFinalCounterValue = this.getFinalCounterValue(); toStringBuilder.append("finalCounterValue", theFinalCounterValue); theCompletionCondition = this.getCompletionCondition(); toStringBuilder.append("completionCondition", theCompletionCondition); theScope = this.getScope(); toStringBuilder.append("scope", theScope); theCounterName = this.getCounterName(); toStringBuilder.append("counterName", theCounterName); theParallel = this.getParallel(); toStringBuilder.append("parallel", theParallel);
if((((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getCompletionCondition() != null) && (((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getCompletionCondition().getBranches() != null)) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.getActivity(), "In ForEach => [BPEL engine restriction] Sorry, but the completionCondition is not supported.")); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In ForEach => [BPEL engine restriction] Sorry, but the completionCondition is not supported."))); if((((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getParallel() != null) && ((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getParallel().equals(TBoolean.YES)) { BPELStaticAnalysisImpl.getInstance().addInfo(new BPELInfoImpl(this.getActivity(), "In ForEach => [BPEL engine restriction] Sorry, but the parrallel attribute at YES is not supported and so, it will be ignored.")); if(((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getScope() == null) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In ForEach => A forEach MUST have a scope."))); final String startString = this.getContent(((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getStartCounterValue()); if((((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getStartCounterValue() == null) || ((startString != null) && (startString.trim().length() == 0))) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In ForEach => the startCounterValue attribute cannot be null or empty."))); final String endString = this.getContent(((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getFinalCounterValue()); if((((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getFinalCounterValue() == null) || ((endString != null) && (endString.trim().length() == 0))) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this.getActivity(), new BPELException("In ForEach => the finalCounterValue attribute cannot be null or empty."))); if((((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getStartCounterValue() != null) && ((startString != null) && (startString.trim().length() > 0))) { try { start = Integer.parseInt(this.getContent(((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getStartCounterValue())); } catch (final NumberFormatException e) { if((((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getFinalCounterValue() != null) && ((endString != null) && (endString.trim().length() > 0))) { try { end = Integer.parseInt(this.getContent(((TForEach)((BPELElementImpl)this.getActivity()).getModel()).getFinalCounterValue())); } catch (final NumberFormatException e) {