com.scudata.ide.spl.etl.element.TAppend Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.ide.spl.etl.element;
import com.scudata.chart.Consts;
import com.scudata.ide.spl.etl.EtlConsts;
import com.scudata.ide.spl.etl.ObjectElement;
import com.scudata.ide.spl.etl.ParamInfo;
import com.scudata.ide.spl.etl.ParamInfoList;
/**
* ?????????༭ t.append()
* ??????ǰT??ʾCTXʵ??
*
* @author Joancy
*
*/
public class TAppend extends ObjectElement {
public String cursorName;
public boolean i;
public boolean a;
public boolean x;
/**
* ??ȡ???ڽ???༭?IJ?????Ϣ?б?
*/
public ParamInfoList getParamInfoList() {
ParamInfoList paramInfos = new ParamInfoList();
ParamInfo.setCurrent(TAppend.class, this);
paramInfos.add(new ParamInfo("cursorName",EtlConsts.INPUT_CELLCURSOR,true));
String group = "options";
paramInfos.add(group, new ParamInfo("i", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("a", Consts.INPUT_CHECKBOX));
paramInfos.add(group, new ParamInfo("x", Consts.INPUT_CHECKBOX));
return paramInfos;
}
/**
* ??ȡ??????
* ???͵ij???????Ϊ
* EtlConsts.TYPE_XXX
* @return EtlConsts.TYPE_CTX
*/
public byte getParentType() {
return EtlConsts.TYPE_CTX;
}
/**
* ??ȡ?ú????ķ???????
* @return EtlConsts.TYPE_CTX;
*/
public byte getReturnType() {
return EtlConsts.TYPE_CTX;
}
/**
* ??ȡ????????SPL????ʽ??ѡ?
*/
public String optionString(){
StringBuffer sb = new StringBuffer();
if(i){
sb.append("i");
}
if(a){
sb.append("a");
}
if(x){
sb.append("x");
}
return sb.toString();
}
/**
* ??ȡ????????SPL????ʽ?ĺ?????
*/
public String getFuncName() {
return "append";
}
/**
* ??ȡ????????SPL????ʽ?ĺ?????
* ??setFuncBody???溯????Ȼ?????ʽ?ĸ?ֵҲ???ǻ????
*/
public String getFuncBody() {
StringBuffer sb = new StringBuffer();
sb.append(getExpressionExp(cursorName));
return sb.toString();
}
/**
* ???ú?????
* @param funcBody ??????
*/
public boolean setFuncBody(String funcBody) {
cursorName = getExpression( funcBody );
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy