Package nl.nikhef.xhtmlrenderer.swing

Class TemplateDocument

    • Constructor Detail

      • TemplateDocument

        public TemplateDocument​(Document template)
        Create a new document from a template with empty data.
      • TemplateDocument

        public TemplateDocument​(Document template,
                                Properties data)
        Create a new document from a template and directly parse from properties.
    • Method Detail

      • setData

        public void setData​(Properties p)
        Set the properties to use for the template.
        Parameters:
        p - New properties to set
      • data

        public Properties data()
        Return the properties.
      • refresh

        public void refresh()
        Rebuild the document from its template and properties
      • doTemplate

        protected void doTemplate​(Node node)
        Processes an XML Node to apply the template recursively.
      • parseConditional

        protected boolean parseConditional​(String expr)
        returns the result of a boolean expression
      • parseExpression

        protected String parseExpression​(String expr)
        evaluates an expression by replacing variables

Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.