net.ibizsys.model.util.transpiler.app.PSAppLanTranspiler Maven / Gradle / Ivy
package net.ibizsys.model.util.transpiler.app;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.ibizsys.model.IPSModelObject;
import net.ibizsys.model.util.transpiler.IPSModelListTranspiler;
import net.ibizsys.model.util.transpiler.IPSModelTranspileContext;
import net.ibizsys.psmodel.core.util.IPSModel;
import static net.ibizsys.model.app.PSAppLanImpl.*;
public class PSAppLanTranspiler extends net.ibizsys.model.util.transpiler.app.PSApplicationObjectTranspiler{
@Override
protected void onDecompile(IPSModelTranspileContext iPSModelTranspileContext, IPSModelObject iPSModelObject, IPSModel domain, boolean bFullMode) throws Exception {
if(!(iPSModelObject instanceof net.ibizsys.model.app.PSAppLanImpl)){
super.onDecompile(iPSModelTranspileContext, iPSModelObject, domain, bFullMode);
return;
}
net.ibizsys.model.app.PSAppLanImpl realPSModelObject = (net.ibizsys.model.app.PSAppLanImpl)iPSModelObject;
this.setDomainValue(iPSModelTranspileContext, domain, "pslanguageid", realPSModelObject.getLanguage(), realPSModelObject, "getLanguage");
super.onDecompile(iPSModelTranspileContext, iPSModelObject, domain, bFullMode);
}
@Override
protected void onCompile(IPSModelTranspileContext iPSModelTranspileContext, IPSModel domain, ObjectNode objectNode) throws Exception {
this.setModelValue(iPSModelTranspileContext, objectNode, ATTR_GETLANGUAGE, domain, "pslanguageid", java.lang.String.class);
super.onCompile(iPSModelTranspileContext, domain, objectNode);
}
}