Package mondrian.i18n
Class LocalizingDynamicSchemaProcessor
java.lang.Object
mondrian.spi.impl.FilterDynamicSchemaProcessor
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
ConstructorDescriptionCreates a new instance of LocalizingDynamicSchemaProcessor -
Method Summary
Modifier and TypeMethodDescriptionfilter
(String catalog, Util.PropertyList connectInfo) Reads the contents of a catalog and returns the result as a 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.Returns the property locale.void
Sets the property locale.Methods inherited from class mondrian.spi.impl.FilterDynamicSchemaProcessor
processCatalog, 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
processCatalog, processSchema
-
Constructor Details
-
LocalizingDynamicSchemaProcessor
public LocalizingDynamicSchemaProcessor()Creates a new instance of LocalizingDynamicSchemaProcessor
-
-
Method Details
-
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 classFilterDynamicSchemaProcessor
- Parameters:
schemaUrl
- the URL of the catalogconnectInfo
- Connection propertiesstream
- Schema contents represented as a stream- Returns:
- the modified schema
- Throws:
Exception
- if an error occurs
-
filter
Description copied from class:FilterDynamicSchemaProcessor
Reads the contents of a catalog and returns the result as a string.The default implementation returns the contents of the catalog unchanged.
- Overrides:
filter
in classFilterDynamicSchemaProcessor
- Parameters:
catalog
- the catalog contentconnectInfo
- Connection properties- Returns:
- the modified catalog
-
getLocale
Returns the property locale.- Returns:
- Value of property locale.
-
setLocale
Sets the property locale.- Parameters:
locale
- New value of property locale.
-