public String getContent(final TExpression exp) { String content = null; if((exp != null) && (exp.getContent() != null) && (exp.getContent().size() > 0)) { content = exp.getContent().get(0).toString(); } return content; } }
public void setContent(final String content) { if(this.model != null) { this.model.getContent().add(0, content); } }
public String getContent() { String def = null; if((this.model != null) && (this.model.getContent() != null) && (this.model.getContent().size() > 0)) { def = (String) this.model.getContent().get(0); for(final Object s: this.model.getContent()) { if((s != null) && (s.toString().trim().length() > 0)) { def = (String) s; } } } return def; }
public String getContent() { String content = null; if((this.model.getContent() != null) && (this.model.getContent().size() > 0)) { content = this.model.getContent().get(0).toString(); } return content; }
public String getContent() { String content = null; if((this.model.getContent() != null) && (this.model.getContent().size() > 0)) { content = this.model.getContent().get(0).toString(); } return content; }
public void toString(ToStringBuilder toStringBuilder) { { List<Object> theContent; theContent = this.getContent(); toStringBuilder.append("content", theContent); } { String theExpressionLanguage; theExpressionLanguage = this.getExpressionLanguage(); toStringBuilder.append("expressionLanguage", theExpressionLanguage); } }
public void toString(ToStringBuilder toStringBuilder) { { List<Object> theContent; theContent = this.getContent(); toStringBuilder.append("content", theContent); } { String theExpressionLanguage; theExpressionLanguage = this.getExpressionLanguage(); toStringBuilder.append("expressionLanguage", theExpressionLanguage); } }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getContent()); hashCodeBuilder.append(this.getExpressionLanguage()); }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getContent()); hashCodeBuilder.append(this.getExpressionLanguage()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TExpression)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final TExpression that = ((TExpression) object); equalsBuilder.append(this.getContent(), that.getContent()); equalsBuilder.append(this.getExpressionLanguage(), that.getExpressionLanguage()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof TExpression)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final TExpression that = ((TExpression) object); equalsBuilder.append(this.getContent(), that.getContent()); equalsBuilder.append(this.getExpressionLanguage(), that.getExpressionLanguage()); }
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 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 Object copyTo(Object target, CopyBuilder copyBuilder) { final TExpression copy = ((target == null)?((TExpression) createCopy()):((TExpression) target)); { List<Object> sourceContent; sourceContent = this.getContent(); List<Object> copyContent = ((List<Object> ) copyBuilder.copy(sourceContent)); copy.content = null; List<Object> uniqueContentl = copy.getContent(); uniqueContentl.addAll(copyContent); } { String sourceExpressionLanguage; sourceExpressionLanguage = this.getExpressionLanguage(); String copyExpressionLanguage = ((String) copyBuilder.copy(sourceExpressionLanguage)); copy.setExpressionLanguage(copyExpressionLanguage); } return copy; }
public Object copyTo(Object target, CopyBuilder copyBuilder) { final TExpression copy = ((target == null)?((TExpression) createCopy()):((TExpression) target)); { List<Object> sourceContent; sourceContent = this.getContent(); List<Object> copyContent = ((List<Object> ) copyBuilder.copy(sourceContent)); copy.content = null; List<Object> uniqueContentl = copy.getContent(); uniqueContentl.addAll(copyContent); } { String sourceExpressionLanguage; sourceExpressionLanguage = this.getExpressionLanguage(); String copyExpressionLanguage = ((String) copyBuilder.copy(sourceExpressionLanguage)); copy.setExpressionLanguage(copyExpressionLanguage); } return copy; }
public void setContent(final String content) { if(this.expression != null) { this.expression.setContent(content); } else { final TExpression exp = new TExpression(); exp.getContent().add(content); try { this.setExpressionDefinition(new BPELElementExpressionImpl(exp, this, ScopeUtil.getProcess(this))); } catch (XPathExpressionException e) { // do nothing } } }
public void setContent(final String content) { if(this.expression != null) { this.expression.setContent(content); } else { final TExpression exp = new TExpression(); exp.getContent().add(content); try { this.setExpressionDefinition(new BPELElementExpressionImpl(exp, this, ScopeUtil.getProcess(this))); } catch (XPathExpressionException e) { e.printStackTrace();// do nothing } } log.finest("Impossible to set content: It is not an expression"); }
public EchoActivityImpl(Element elmt, ExtensionActivity parent) throws BPELException { super(Constants._Breakpoint_QNAME, elmt, parent); TExpression exp = new TExpression(); exp.setExpressionLanguage(this.model.getMessage().getExpressionLanguage()); exp.getContent().addAll(this.model.getMessage().getContent()); try { this.exp = new BPELStringExpressionImpl(exp, this); } catch (XPathExpressionException e) { throw new BPELException(e); } }
public EchoActivityImpl(TEchoActivity model, ExtensionActivity parent) throws BPELException { super(Constants._Breakpoint_QNAME, model, parent); TExpression exp = new TExpression(); exp.setExpressionLanguage(this.model.getMessage().getExpressionLanguage()); exp.getContent().addAll(this.model.getMessage().getContent()); try { this.exp = new BPELStringExpressionImpl(exp, this); } catch (XPathExpressionException e) { throw new BPELException(e); } }
public Node generate(Scope scope) throws CoreException { LoggerBehaviour loggerBehaviour = new LoggerBehaviourImpl(); TExpression expression = new TExpression(); expression.getContent().add(this.getMessage()); BPELStringExpression msg = new BPELStringExpressionImpl(expression, this); loggerBehaviour.setMessage(msg); loggerBehaviour.setLevel(LoggerBehaviour.LEVEL.valueOf(this.getLevel())); Node loggerNode = scope.createNode(this.model.getName(), loggerBehaviour); return loggerNode; }