public class LocalizingDynamicSchemaProcessor extends FilterDynamicSchemaProcessor implements DynamicSchemaProcessor
Constructor and Description |
---|
LocalizingDynamicSchemaProcessor()
Creates a new instance of LocalizingDynamicSchemaProcessor
|
Modifier and Type | Method and Description |
---|---|
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)
Populates the bundle with the given resource.
|
void |
setLocale(String locale)
Sets the property locale.
|
processSchema
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processSchema
public LocalizingDynamicSchemaProcessor()
void populate(String propFile)
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".
propFile
- The name of the property fileMondrianProperties.LocalePropFile
public String filter(String schemaUrl, Util.PropertyList connectInfo, InputStream stream) throws Exception
FilterDynamicSchemaProcessor
The default implementation returns the contents of the schema unchanged.
filter
in class FilterDynamicSchemaProcessor
schemaUrl
- the URL of the catalogconnectInfo
- Connection propertiesstream
- Schema contents represented as a streamException
- if an error occurspublic String getLocale()
public void setLocale(String locale)
locale
- New value of property locale.