|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.utils.XSLT
org.jasig.portal.i18n.LocaleAwareXSLT
public class LocaleAwareXSLT
Selects XSLT stylesheets based on locale information.
Field Summary | |
---|---|
protected java.util.Locale[] |
locales
|
private static org.apache.commons.logging.Log |
log
|
private static org.apache.oro.text.perl.Perl5Util |
perl5Util
|
Fields inherited from class org.jasig.portal.utils.XSLT |
---|
caller, l18n, mediaProps, stylesheetParams, stylesheetRootCache, stylesheetRootCacheEnabled, stylesheetSetCache, stylesheetSetCacheEnabled, xmlResult, xmlSource, xslURI |
Constructor Summary | |
---|---|
LocaleAwareXSLT(java.lang.Object instance)
Constructor that configures the calling class. |
|
LocaleAwareXSLT(java.lang.Object instance,
java.util.Locale[] locales)
Constructor that configures both the calling class and the locale list. |
Method Summary | |
---|---|
static java.lang.String |
getLocaleAwareXslUri(java.lang.String xslUri,
java.util.Locale[] locales,
java.lang.Object caller)
Finds localized version of stylesheet according to the supplied list of locales. |
void |
setLocales(java.util.Locale[] locales)
Sets the locales. |
void |
setXSL(java.lang.String sslUri,
BrowserInfo browserInfo)
Configures the xsl source by choosing the appropriate stylesheet from the provided stylesheet list file, taking into account the list of locales. |
void |
setXSL(java.lang.String sslUri,
java.lang.String stylesheetTitle,
BrowserInfo browserInfo)
Configures the xsl source by choosing the appropriate stylesheet from the provided stylesheet list file, taking into account the list of locales. |
Methods inherited from class org.jasig.portal.utils.XSLT |
---|
addLocalization, escape, getSAXTFactory, getStylesheetCacheSize, getStylesheetSet, getStylesheetURI, getStylesheetURI, getTemplates, getTemplates, getTransformer, getTransformer, getTransformer, getTransformer, getTransformerHandler, getTransformerHandler, purgeStylesheetCache, setResourceBundle, setStylesheetParameter, setStylesheetParameters, setStylesheetParameters, setTarget, setTarget, setTarget, setXML, setXML, setXML, setXML, setXSL, toString, transform, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
protected java.util.Locale[] locales
private static org.apache.oro.text.perl.Perl5Util perl5Util
Constructor Detail |
---|
public LocaleAwareXSLT(java.lang.Object instance)
instance
- class name used to search for resourcespublic LocaleAwareXSLT(java.lang.Object instance, java.util.Locale[] locales)
instance
- class name used to search for resourceslocales
- a list of localesMethod Detail |
---|
public void setLocales(java.util.Locale[] locales)
locales
- a list of localespublic void setXSL(java.lang.String sslUri, java.lang.String stylesheetTitle, BrowserInfo browserInfo) throws PortalException
setXSL
in class XSLT
sslUri
- the URL of the stylesheet list filestylesheetTitle
- the title of a stylesheet within the stylesheet list filebrowserInfo
- the browser info object
PortalException
public void setXSL(java.lang.String sslUri, BrowserInfo browserInfo) throws PortalException
setXSL
in class XSLT
sslUri
- the URL of the stylesheet list filebrowserInfo
- the browser info object
PortalException
public static java.lang.String getLocaleAwareXslUri(java.lang.String xslUri, java.util.Locale[] locales, java.lang.Object caller)
xslUri
- the URL of the stylesheet filelocales
- the list of localescaller
- the calling class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |