Class DefaultDocumentContext

    • Constructor Detail

      • DefaultDocumentContext

        public DefaultDocumentContext()
    • Method Detail

      • getStringPolicy

        public CSSValue getStringPolicy​(java.lang.String name)
        Description copied from interface: DocumentContext
        Returns the string policy for this named string. The is either one of the defined PagePolicy constants or null, if no policy is defined, in which case always the current value is used.
        Specified by:
        getStringPolicy in interface DocumentContext
        Returns:
      • getCounterPolicy

        public CSSValue getCounterPolicy​(java.lang.String name)
        Description copied from interface: DocumentContext
        Returns the counter policy for this counter. The is either one of the defined PagePolicy constants or null, if no policy is defined, in which case always the current value is used.
        Specified by:
        getCounterPolicy in interface DocumentContext
        Returns:
      • getResourceManager

        public org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
        Specified by:
        getResourceManager in interface DocumentContext
      • setCounterStyle

        public void setCounterStyle​(java.lang.String counterName,
                                    CounterStyle style)
        Description copied from interface: DocumentContext
        Defines a global counter style. The style is stored by the counter's name, and if not defined in the counter-property, the counter style is looked up here. This offers a way to define a style for counters at one point, instead of having to copy the style definition for all counter instances.
        Specified by:
        setCounterStyle in interface DocumentContext
      • getCounterStyle

        public CounterStyle getCounterStyle​(java.lang.String counterName)
        Description copied from interface: DocumentContext
        Looks up a global counter style. If not defined, this returns the default decimal style.
        Specified by:
        getCounterStyle in interface DocumentContext
        Parameters:
        counterName - the name of the counter, for which we search the style.
        Returns:
        the defined style or the decimal style.
      • initialize

        public void initialize()
        This method is called once after the input-feed received all the document meta-data.
        Specified by:
        initialize in interface DocumentContext
      • getQuoteLevel

        public int getQuoteLevel()
      • openQuote

        public void openQuote()
      • closeQuote

        public void closeQuote()