|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.spi.impl.FilterDynamicSchemaProcessor
mondrian.i18n.LocalizingDynamicSchemaProcessor
public class LocalizingDynamicSchemaProcessor
Schema processor which helps localize data and metadata.
Constructor Summary | |
---|---|
LocalizingDynamicSchemaProcessor()
Creates a new instance of LocalizingDynamicSchemaProcessor |
Method Summary | |
---|---|
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 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 |
---|
public LocalizingDynamicSchemaProcessor()
Method Detail |
---|
void populate(java.lang.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 java.lang.String filter(java.lang.String schemaUrl, Util.PropertyList connectInfo, java.io.InputStream stream) throws java.lang.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 stream
java.lang.Exception
- if an error occurspublic java.lang.String getLocale()
public void setLocale(java.lang.String locale)
locale
- New value of property locale.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |