/** * Create an instance of {@link TVariables } * */ public TVariables createTVariables() { return new TVariables(); }
/** * Create an instance of {@link TVariables } * */ public TVariables createTVariables() { return new TVariables(); }
public Object createCopy() { return new TVariables(); }
public Object createCopy() { return new TVariables(); }
public BPELIntVariable createBPELIntVariable(String varName, QName e){ TVariable tvar = new TVariable(); tvar.setName(varName); tvar.setType(e); TVariables tvars = this.model.getVariables(); if(tvars == null){ tvars = new TVariables(); this.model.setVariables(tvars); } this.model.getVariables().getVariable().add(tvar); BPELIntVariable var = new BPELIntVariableImpl(tvar, this.model.getVariables(), this); return var; }
public static BPELVariable findVariableRecursively(final QName name, final BPELElement parent) { BPELVariable res = null; if((name != null) && (parent != null)) { if(parent instanceof BPELProcess) { res = ((BPELProcess)parent).findVariable(name); } else if(parent instanceof Scope) { res = ((Scope)parent).findVariable(name); } else if(parent instanceof ForEach) { final ForEach forEach = (ForEach)parent; if(forEach.getCounterName().equals(name.getLocalPart())) { final TVariable tvar = new TVariable(); tvar.setName(name.getLocalPart()); tvar.setType(DefaultSchemaImpl.getInstance().getTypeInt().getQName()); final TVariables tvars = new TVariables(); tvars.getVariable().add(tvar); final BPELVariable<Integer> var = new BPELIntVariableImpl(tvar, tvars, parent); res = var; } } if(res == null) { res = ScopeImpl.findVariableRecursively(name, (BPELElement) ((AbstractSchemaElementImpl)parent).getParent()); } } return res; }
public BPELElementVariable createBPELElementVariable(String varName, QName e, BPELElementVariable.VariableType varType){ TVariable tvar = new TVariable(); tvar.setName(varName); //TODO switch to if switch( varType ){ case MESSAGE: tvar.setMessageType(e); break; case ELEMENT: tvar.setElement(e); break; case TYPE: tvar.setType(e); } TVariables tvars = this.model.getVariables(); if(tvars == null){ tvars = new TVariables(); this.model.setVariables(tvars); } // this.model.getVariables().getVariable().add(tvar); BPELElementVariable var = new BPELElementVariableImpl(tvar, this.model.getVariables(), this); this.addVariable(var); return var; }