import { IPSSysResource } from './ipssys-resource'; import { IPSSystemModule } from '../system/ipssystem-module'; import { PSModelObjectImpl } from '../psmodel-object-impl'; export class PSSysResourceImpl extends PSModelObjectImpl implements IPSSysResource { get codeName(): string { return this.M.codeName; } get content(): string { return this.M.content; } get dynaModelFilePath(): string { return this.M.dynaModelFilePath; } get mOSFilePath(): string { return this.M.mOSFilePath; } get memo(): string { return this.M.memo; } get name(): string { return this.M.name; } protected pssystemmodule: IPSSystemModule | null = null; getPSSystemModule(): IPSSystemModule | null { if (this.pssystemmodule != null) return this.pssystemmodule; const value = this.M.getPSSystemModule; if (value == null) { return null; } this.pssystemmodule = this.getPSModel4('system.IPSSystemModule', value, 'getPSSystemModule') as IPSSystemModule; return this.pssystemmodule; } get psSystemModule(): IPSSystemModule | null { return this.getPSSystemModule(); } getPSSystemModuleMust(): IPSSystemModule { const value = this.getPSSystemModule(); if (value == null) { throw new Error('未指定系统模块'); } return value; } get rTMOSFilePath(): string { return this.M.rTMOSFilePath; } get resTag(): string { return this.M.resTag; } get resourceType(): 'IMAGE' | 'STRING' | 'ZIPFILE' | 'GITPROJECT' | 'USER' | 'USER2' | 'USER3' | 'USER4' | 'USER5' | 'USER6' | 'USER7' | 'USER8' | 'USER9' { return this.M.resourceType; } get userCat(): string { return this.M.userCat; } get userTag(): string { return this.M.userTag; } get userTag2(): string { return this.M.userTag2; } get userTag3(): string { return this.M.userTag3; } get userTag4(): string { return this.M.userTag4; } get cls(): string { return 'PSSysResourceImpl'; } instanceof(cls: string): boolean { if (cls == 'res.IPSSysResource') return true; return super.instanceof(cls); } }