/** * Create an instance of {@link TFrom } * */ public TFrom createTFrom() { return new TFrom(); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getContent()); hashCodeBuilder.append(this.getExpressionLanguage()); hashCodeBuilder.append(this.getVariable()); hashCodeBuilder.append(this.getPart()); hashCodeBuilder.append(this.getProperty()); hashCodeBuilder.append(this.getPartnerLink()); hashCodeBuilder.append(this.getEndpointReference()); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TFrom copy = ((target == null)?((TFrom) createCopy()):((TFrom) target)); sourceContent = this.getContent(); List<Object> copyContent = ((List<Object> ) copyBuilder.copy(sourceContent)); copy.content = null; List<Object> uniqueContentl = copy.getContent(); uniqueContentl.addAll(copyContent); sourceExpressionLanguage = this.getExpressionLanguage(); String copyExpressionLanguage = ((String) copyBuilder.copy(sourceExpressionLanguage)); copy.setExpressionLanguage(copyExpressionLanguage); sourceVariable = this.getVariable(); String copyVariable = ((String) copyBuilder.copy(sourceVariable)); copy.setVariable(copyVariable); sourcePart = this.getPart(); String copyPart = ((String) copyBuilder.copy(sourcePart)); copy.setPart(copyPart); sourceProperty = this.getProperty(); QName copyProperty = ((QName) copyBuilder.copy(sourceProperty)); copy.setProperty(copyProperty); sourcePartnerLink = this.getPartnerLink(); String copyPartnerLink = ((String) copyBuilder.copy(sourcePartnerLink)); copy.setPartnerLink(copyPartnerLink); sourceEndpointReference = this.getEndpointReference();
final TCopy copyAI = new TCopy(); modelAI.getCopyOrExtensionAssignOperation().add(copyAI); final TFrom fromAI = new TFrom(); copyAI.setFrom(fromAI); final TTo toAI = new TTo(); copyAI.setTo(toAI); fromAI.getContent().add( forEach_.getStartCounterValue().getContent()); fromAI final TCopy copyAE = new TCopy(); modelAE.getCopyOrExtensionAssignOperation().add(copyAE); final TFrom fromAE = new TFrom(); copyAE.setFrom(fromAE); final TTo toAE = new TTo(); copyAE.setTo(toAE); fromAE.getContent().add( "$" + forEach_.getCounterName() + " + 1"); fromAE
public void setExpressionDefinition(final BPELExpression<Element> exp) { this.expression = exp; this.model.getContent().clear(); if(((TExpression)((AbstractSchemaElementImpl)this.expression).getModel()).getContent().size() > 0) this.model.getContent().add(((TExpression)((AbstractSchemaElementImpl)this.expression).getModel()).getContent().get(0)); }
public void setExpressionLanguage(final URI language) { this.model.setExpressionLanguage(language.toString()); if(this.expression != null) { this.expression.setExpressionLanguage(language); } else { final TExpression exp = new TExpression(); exp.setExpressionLanguage(language.toString()); try { this.setExpressionDefinition(new BPELElementExpressionImpl(exp, this, ScopeUtil.getProcess(this))); } catch (XPathExpressionException e) { // do nothing } } }
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TFrom copy = ((target == null)?((TFrom) createCopy()):((TFrom) target)); sourceContent = this.getContent(); List<Object> copyContent = ((List<Object> ) copyBuilder.copy(sourceContent)); copy.content = null; List<Object> uniqueContentl = copy.getContent(); uniqueContentl.addAll(copyContent); sourceExpressionLanguage = this.getExpressionLanguage(); String copyExpressionLanguage = ((String) copyBuilder.copy(sourceExpressionLanguage)); copy.setExpressionLanguage(copyExpressionLanguage); sourceVariable = this.getVariable(); String copyVariable = ((String) copyBuilder.copy(sourceVariable)); copy.setVariable(copyVariable); sourcePart = this.getPart(); String copyPart = ((String) copyBuilder.copy(sourcePart)); copy.setPart(copyPart); sourceProperty = this.getProperty(); QName copyProperty = ((QName) copyBuilder.copy(sourceProperty)); copy.setProperty(copyProperty); sourcePartnerLink = this.getPartnerLink(); String copyPartnerLink = ((String) copyBuilder.copy(sourcePartnerLink)); copy.setPartnerLink(copyPartnerLink); sourceEndpointReference = this.getEndpointReference();
public Object copyTo(Object target) { final CopyBuilder copyBuilder = new JAXBCopyBuilder(); return copyTo(target, copyBuilder); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getContent()); hashCodeBuilder.append(this.getExpressionLanguage()); hashCodeBuilder.append(this.getVariable()); hashCodeBuilder.append(this.getPart()); hashCodeBuilder.append(this.getProperty()); hashCodeBuilder.append(this.getPartnerLink()); hashCodeBuilder.append(this.getEndpointReference()); }
/** * Create an instance of {@link TFrom } * */ public TFrom createTFrom() { return new TFrom(); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TFrom)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final TFrom that = ((TFrom) object); equalsBuilder.append(this.getContent(), that.getContent()); equalsBuilder.append(this.getExpressionLanguage(), that.getExpressionLanguage()); equalsBuilder.append(this.getVariable(), that.getVariable()); equalsBuilder.append(this.getPart(), that.getPart()); equalsBuilder.append(this.getProperty(), that.getProperty()); equalsBuilder.append(this.getPartnerLink(), that.getPartnerLink()); equalsBuilder.append(this.getEndpointReference(), that.getEndpointReference()); }
public Object createCopy() { return new TFrom(); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TFrom)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final TFrom that = ((TFrom) object); equalsBuilder.append(this.getContent(), that.getContent()); equalsBuilder.append(this.getExpressionLanguage(), that.getExpressionLanguage()); equalsBuilder.append(this.getVariable(), that.getVariable()); equalsBuilder.append(this.getPart(), that.getPart()); equalsBuilder.append(this.getProperty(), that.getProperty()); equalsBuilder.append(this.getPartnerLink(), that.getPartnerLink()); equalsBuilder.append(this.getEndpointReference(), that.getEndpointReference()); }
public Object createCopy() { return new TFrom(); }
public void toString(ToStringBuilder toStringBuilder) { theContent = this.getContent(); toStringBuilder.append("content", theContent); theExpressionLanguage = this.getExpressionLanguage(); toStringBuilder.append("expressionLanguage", theExpressionLanguage); theVariable = this.getVariable(); toStringBuilder.append("variable", theVariable); thePart = this.getPart(); toStringBuilder.append("part", thePart); theProperty = this.getProperty(); toStringBuilder.append("property", theProperty); thePartnerLink = this.getPartnerLink(); toStringBuilder.append("partnerLink", thePartnerLink); theEndpointReference = this.getEndpointReference(); toStringBuilder.append("endpointReference", theEndpointReference);
public void addAssign(Activity a, String assignName, String fromXPath, String toXPath) throws Exception{ Assign assign1 = new AssignImpl(new TAssign(),a); Copy c = new CopyImpl(new TCopy(), assign1); From from = new FromImpl(new TFrom(), c); from.setContent(fromXPath); from.setExpressionLanguage(URI.create("http://www.w3.org/TR/xpath20/")); To to = new ToImpl(new TTo(), c); to.setExpressionLanguage(URI.create("http://www.w3.org/TR/xpath20/")); to.setContent(toXPath); c.setFrom(from); c.setTo(to); assign1.addCopy(c); assign1.setName(assignName); if(a instanceof Sequence){ ((Sequence) a).addActivity(assign1); }else{ throw new Exception("addActivity not yet implemented for "+a.getClass().getName()+" activity"); } }
public void toString(ToStringBuilder toStringBuilder) { theContent = this.getContent(); toStringBuilder.append("content", theContent); theExpressionLanguage = this.getExpressionLanguage(); toStringBuilder.append("expressionLanguage", theExpressionLanguage); theVariable = this.getVariable(); toStringBuilder.append("variable", theVariable); thePart = this.getPart(); toStringBuilder.append("part", thePart); theProperty = this.getProperty(); toStringBuilder.append("property", theProperty); thePartnerLink = this.getPartnerLink(); toStringBuilder.append("partnerLink", thePartnerLink); theEndpointReference = this.getEndpointReference(); toStringBuilder.append("endpointReference", theEndpointReference);
new TFrom(), null); from .setKind(From.Kind.VARIABLE_PROPERTY);
for(final Object item: this.model.getContent()) { if ((item instanceof TLiteral)) { this.kind = Kind.LITERAL; if(this.model.getPartnerLink() != null) { this.partner = new PartnerLinkVarImpl(this.model.getPartnerLink(), this.model.getEndpointReference()); } else if(this.model.getVariable() != null) { for(final Object obj: this.model.getContent()) { if((obj instanceof JAXBElement)&&(((JAXBElement)obj).getValue() instanceof TQuery)) { final TQuery modelQ = (TQuery) ((JAXBElement)obj).getValue(); this.variablePart = new VariablePartImpl(new QName(this.model.getVariable()), this.model.getPart(), query); } else if(this.model.getProperty() != null) { this.variableProperty = new VariablePropertyImpl(this.model.getVariable(), this.model.getProperty()); } else if((this.kind == null)&&(this.model.getContent().size() > 0)) { exp.getContent().add(this.model.getContent().get(0)); try { this.expression = new BPELElementExpressionImpl(exp, this, ScopeUtil.getProcess(this));