mondrian.i18n
Class LocalizingDynamicSchemaProcessor

java.lang.Object
  extended by mondrian.spi.impl.FilterDynamicSchemaProcessor
      extended by mondrian.i18n.LocalizingDynamicSchemaProcessor
All Implemented Interfaces:
DynamicSchemaProcessor

public class LocalizingDynamicSchemaProcessor
extends FilterDynamicSchemaProcessor
implements DynamicSchemaProcessor

Schema processor which helps localize data and metadata.

Since:
August 26, 2005
Author:
arosselet
 

Constructor Summary
LocalizingDynamicSchemaProcessor()
          Creates a new instance of LocalizingDynamicSchemaProcessor
 
Method Summary
 String filter(String schemaUrl, Util.PropertyList connectInfo, InputStream stream)
          Reads the contents of a schema as a stream and returns the result as a string.
 String getLocale()
          Returns the property locale.
(package private)  void populate(String propFile)
           
 void setLocale(String locale)
          Sets the property locale.
 
Methods inherited from class mondrian.spi.impl.FilterDynamicSchemaProcessor
processSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mondrian.spi.DynamicSchemaProcessor
processSchema
 

Constructor Detail

LocalizingDynamicSchemaProcessor

public LocalizingDynamicSchemaProcessor()
Creates a new instance of LocalizingDynamicSchemaProcessor

Method Detail

populate

void populate(String propFile)

filter

public String filter(String schemaUrl,
                     Util.PropertyList connectInfo,
                     InputStream stream)
              throws 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
Throws:
Exception - if an error occurs
Parameters:
schemaUrl - the URL of the catalog
connectInfo - Connection properties
stream - Schema contents represented as a stream
Returns:
the modified schema

getLocale

public String getLocale()
Returns the property locale.

Returns:
Value of property locale.

setLocale

public void setLocale(String locale)
Sets the property locale.

Parameters:
locale - New value of property locale.

SourceForge.net_Logo