Package mondrian.i18n

Class LocalizingDynamicSchemaProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String filter​(java.lang.String schemaUrl, Util.PropertyList connectInfo, java.io.InputStream stream)
      Reads the contents of a schema as a stream and returns the result as a string.
      java.lang.String getLocale()
      Returns the property locale.
      (package private) void populate​(java.lang.String propFile)
      Populates the bundle with the given resource.
      void setLocale​(java.lang.String locale)
      Sets the property locale.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalizingDynamicSchemaProcessor

        public LocalizingDynamicSchemaProcessor()
        Creates a new instance of LocalizingDynamicSchemaProcessor
    • Method Detail

      • populate

        void populate​(java.lang.String propFile)
        Populates the bundle with the given resource.

        The name of the property file is typically the name of a class, as per ResourceBundle.getBundle(String). However, for backwards compatibility, the name can contain slashes (which are converted to dots) and end with ".properties" (which is removed). Therefore "com/acme/MyResource.properties" is equivalent to "com.acme.MyResource".

        Parameters:
        propFile - The name of the property file
        See Also:
        MondrianProperties.LocalePropFile
      • filter

        public java.lang.String filter​(java.lang.String schemaUrl,
                                       Util.PropertyList connectInfo,
                                       java.io.InputStream stream)
                                throws java.lang.Exception
        Description copied from class: FilterDynamicSchemaProcessor
        Reads the contents of a schema as a stream and returns the result as a string.

        The default implementation returns the contents of the schema unchanged.

        Overrides:
        filter in class FilterDynamicSchemaProcessor
        Parameters:
        schemaUrl - the URL of the catalog
        connectInfo - Connection properties
        stream - Schema contents represented as a stream
        Returns:
        the modified schema
        Throws:
        java.lang.Exception - if an error occurs
      • getLocale

        public java.lang.String getLocale()
        Returns the property locale.
        Returns:
        Value of property locale.
      • setLocale

        public void setLocale​(java.lang.String locale)
        Sets the property locale.
        Parameters:
        locale - New value of property locale.