public Evaluator( ReportPage page, ReportPages pages, Content content, ContentState contentState, DataContainer dataContainer) { this.basicContext = new BasicContext(); this.basicContext.report = content.getReport(); this.basicContext.data = content.getData(); this.basicContext.dataRecord = content.getData().getRecord(); this.contentContext = new ContentContext(); this.contentContext.content = content; this.contentContext.contentState = contentState; this.pageContext = new PageContext(); this.pageContext.page = page; this.pageContext.pages = pages; this.pageContext.dataContainer = dataContainer; { ContentDesign cd = this.contentContext.content.design; if (cd.variables != null) { for (String k : cd.variables.keySet()) { this.pageContext.variables.put(k, this.evalTry(cd.variables.get(k))); } } } }
public Evaluator(Content content, ContentState contentState) { this.basicContext = new BasicContext(); this.basicContext.report = content.getReport(); this.basicContext.data = content.getData(); this.basicContext.dataRecord = content.getData().getRecord(); this.contentContext = new ContentContext(); this.contentContext.content = content; this.contentContext.contentState = contentState; }