Package reportgen.utils

Examples of reportgen.utils.Atom


    private void loadExtraLink(Element atomRoot, String tag, Set<ColRowRange> lst,
            Context context) throws ReportException {
        for (Object incAtom : atomRoot.getChildren(tag)) {
            Element incAtomEl = (Element) incAtom;
            Atom iAtom = new Atom(incAtomEl.getTextTrim());
            ColRowRange range = context.getRange(iAtom);
            lst.add(range);
        }
    }
View Full Code Here


    private QueryExecuterSub query;
    private Atom atom;

    public CrossReport(QueryExecuterSub query) {
        this.query = query;
        atom = new Atom();
    }
View Full Code Here

        atom = new Atom();
    }

    CrossReport(Element root, Context context) throws ReportException {
        assert root.getName().equals(TAGNAME);
        atom = new Atom(root, context);
        query = context.getSubreport(new Atom(getStringAttribute(root, QUERYID)));
    }
View Full Code Here

        for (RegexElement item: items) {
            vars.addAll(item.getVariables());
        }
        HashMap<String, String> varsValues = new HashMap<String, String>();
        for(String var: vars) {
            Atom atom = new Atom();
            while(xml.indexOf("\"" + atom + "\"") != -1) {
                atom = new Atom();
            }
            varsValues.put(var, atom.toString());
        }

        for (RegexElement item: items) {
            xml = item.patch(xml, varsValues);
        }
View Full Code Here

    public DataRange(String title, Context context) {
        this.title = title;
        this.context = context;
        this.criteria = new MathExpressionConditions(context);
        atom = new Atom();
        style = new StyleDefault();
    }
View Full Code Here

        style = new StyleDefault();
    }

    protected DataRange(Element element, Context context) throws ReportException {
        this.context = context;
        atom = new Atom(element, context);
        title = getStringAttribute(element, ATTR_TITLE);
        style = new StyleAdaptor(element).getStyle();
       
        Element criteriaEl = element.getChild(MathExpressionConditions.TAG);
        if(criteriaEl != null) {
View Full Code Here

   public MathExpressionEntityFieldRef(Element element, Context context) throws ReportException {
        super(element, context);
        String fullname = getStringAttribute(element, ATTR_VALUE);
        int aliaspos = fullname.indexOf('.');
        Atom atom = new Atom(fullname.substring(0, aliaspos));
        QEntity entity = context.getEntity(atom);
       
        String propertyName = fullname.substring(aliaspos+1);
        ContextGroup contextGroup = getContextGroup(entity.getContextGroup());
        property = context.getProperty(contextGroup, entity, propertyName);
View Full Code Here

     * @throws reportgen.exception.ReportException
     */
    public CellValue(Element element, Context aContext) throws ReportException {
        assert element.getName().equals(TAG);

        colReference = aContext.getRange(new Atom(getStringAttribute(element, ATTR_COL)));
        rowReference = aContext.getRange(new Atom(getStringAttribute(element, ATTR_ROW)));

        context = new ContextSum(colReference.getLocalContext(),
                new Context[] {colReference.getLocalContext(), rowReference.getLocalContext()});
       
        restoreState(element);
View Full Code Here

    public MathExpressionInputValueRef(Element element,
            Context context)
            throws ReportException {
       super(element, context);
       value = context.getInput(new Atom(getStringAttribute(element, ATOM)));
    }
View Full Code Here

    }

   public MathExpressionEntityRef(Element element, Context context)
           throws ReportException {
        super(element, context);
        entity = context.getEntity(new Atom(getStringAttribute(element, ATOM)));
    }
View Full Code Here

TOP

Related Classes of reportgen.utils.Atom

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.