|
uPortal 2.4.1 API Documentation |
|||||||||
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
Selects XSLT stylesheets based on locale information.
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 |
getSAXTFactory, getStylesheetSet, getStylesheetURI, getStylesheetURI, getTemplates, getTemplates, getTransformer, getTransformer, getTransformer, getTransformer, getTransformerHandler, getTransformerHandler, setResourceBundle, setStylesheetParameter, setStylesheetParameters, setStylesheetParameters, setTarget, setTarget, setTarget, setXML, setXML, setXML, setXML, setXSL, transform, transform |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |