import { IPSAppDEUIAction } from '../../app/dataentity/ipsapp-deuiaction'; import { IPSAppDataEntity } from '../../app/dataentity/ipsapp-data-entity'; import { IPSDEUIActionLogic } from './ipsdeuiaction-logic'; import { IPSDEUILogic } from './ipsdeuilogic'; import { IPSDEUILogicParam } from './ipsdeuilogic-param'; import { PSDEUILogicNodeImpl } from './psdeuilogic-node-impl'; export class PSDEUIActionLogicImpl extends PSDEUILogicNodeImpl implements IPSDEUIActionLogic { protected dstpsappdeuiaction: IPSAppDEUIAction | null = null; getDstPSAppDEUIAction(): IPSAppDEUIAction | null { if (this.dstpsappdeuiaction != null) return this.dstpsappdeuiaction; const value = this.M.getDstPSAppDEUIAction; if (value == null) { return null; } this.dstpsappdeuiaction = this.getPSModel4('app.dataentity.IPSAppDEUIAction', value, 'getDstPSAppDEUIAction') as IPSAppDEUIAction; return this.dstpsappdeuiaction; } get dstPSAppDEUIAction(): IPSAppDEUIAction | null { return this.getDstPSAppDEUIAction(); } getDstPSAppDEUIActionMust(): IPSAppDEUIAction { const value = this.getDstPSAppDEUIAction(); if (value == null) { throw new Error('未指定调用应用实体界面行为'); } return value; } protected dstpsappdataentity: IPSAppDataEntity | null = null; getDstPSAppDataEntity(): IPSAppDataEntity | null { if (this.dstpsappdataentity != null) return this.dstpsappdataentity; const value = this.M.getDstPSAppDataEntity; if (value == null) { return null; } this.dstpsappdataentity = this.getPSModel4('app.dataentity.IPSAppDataEntity', value, 'getDstPSAppDataEntity') as IPSAppDataEntity; return this.dstpsappdataentity; } get dstPSAppDataEntity(): IPSAppDataEntity | null { return this.getDstPSAppDataEntity(); } getDstPSAppDataEntityMust(): IPSAppDataEntity { const value = this.getDstPSAppDataEntity(); if (value == null) { throw new Error('未指定目标应用实体对象'); } return value; } protected dstpsdeuilogicparam: IPSDEUILogicParam | null = null; getDstPSDEUILogicParam(): IPSDEUILogicParam | null { if (this.dstpsdeuilogicparam != null) return this.dstpsdeuilogicparam; const value = this.M.getDstPSDEUILogicParam; if (value == null) { return null; } const ipsdeuilogic = this.getParentPSModelObject('dataentity.logic.IPSDEUILogic') as IPSDEUILogic; if (ipsdeuilogic != null) { this.dstpsdeuilogicparam = ipsdeuilogic.findPSDEUILogicParam(value); } return this.dstpsdeuilogicparam; } get dstPSDEUILogicParam(): IPSDEUILogicParam | null { return this.getDstPSDEUILogicParam(); } getDstPSDEUILogicParamMust(): IPSDEUILogicParam { const value = this.getDstPSDEUILogicParam(); if (value == null) { throw new Error('未指定目标逻辑参数对象'); } return value; } get cls(): string { return 'PSDEUIActionLogicImpl'; } instanceof(cls: string): boolean { if (cls == 'dataentity.logic.IPSDEUIActionLogic') return true; return super.instanceof(cls); } }