| java.lang.Object org.jasig.portal.utils.XSLT org.jasig.portal.i18n.LocaleAwareXSLT
LocaleAwareXSLT | public class LocaleAwareXSLT extends XSLT (Code) | | Selects XSLT stylesheets based on locale information.
author: Shoji Kajita kajita@itc.nagoya-u.ac.jp version: $Revision: 34931 $ since: uPortal 2.2 |
Method Summary | |
public static String | getLocaleAwareXslUri(String xslUri, Locale[] locales, Object caller) Finds localized version of stylesheet according to the supplied list of locales. | public void | setLocales(Locale[] locales) Sets the locales. | public void | setXSL(String sslUri, 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. | public void | setXSL(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. |
LocaleAwareXSLT | public LocaleAwareXSLT(Object instance)(Code) | | Constructor that configures the calling class.
Parameters: instance - class name used to search for resources |
LocaleAwareXSLT | public LocaleAwareXSLT(Object instance, Locale[] locales)(Code) | | Constructor that configures both the calling class and the locale list.
Parameters: instance - class name used to search for resources Parameters: locales - a list of locales |
getLocaleAwareXslUri | public static String getLocaleAwareXslUri(String xslUri, Locale[] locales, Object caller)(Code) | | Finds localized version of stylesheet according to the supplied list of locales.
Parameters: xslUri - the URL of the stylesheet file Parameters: locales - the list of locales Parameters: caller - the calling class |
setLocales | public void setLocales(Locale[] locales)(Code) | | Sets the locales.
Parameters: locales - a list of locales |
setXSL | public void setXSL(String sslUri, String stylesheetTitle, BrowserInfo browserInfo) throws PortalException(Code) | | Configures the xsl source by choosing the appropriate stylesheet from
the provided stylesheet list file, taking into account the list of locales.
Parameters: sslUri - the URL of the stylesheet list file Parameters: stylesheetTitle - the title of a stylesheet within the stylesheet list file Parameters: browserInfo - the browser info object throws: org.jasig.portal.PortalException - |
setXSL | public void setXSL(String sslUri, BrowserInfo browserInfo) throws PortalException(Code) | | Configures the xsl source by choosing the appropriate stylesheet from
the provided stylesheet list file, taking into account the list of locales.
Parameters: sslUri - the URL of the stylesheet list file Parameters: browserInfo - the browser info object throws: org.jasig.portal.PortalException - |
Methods inherited from org.jasig.portal.utils.XSLT | protected static void addLocalization(Document xsl, ResourceBundle localization)(Code)(Java Doc) protected static String escape(String s)(Code)(Java Doc) public static SAXTransformerFactory getSAXTFactory()(Code)(Java Doc) public static int getStylesheetCacheSize()(Code)(Java Doc) public static StylesheetSet getStylesheetSet(String stylesheetListURI) throws PortalException(Code)(Java Doc) public static String getStylesheetURI(String sslUri, BrowserInfo browserInfo) throws PortalException(Code)(Java Doc) public static String getStylesheetURI(String sslUri, String title, BrowserInfo browserInfo) throws PortalException(Code)(Java Doc) public static Templates getTemplates(String stylesheetURI, ResourceBundle l18n) throws SAXException, PortalException, TransformerConfigurationException(Code)(Java Doc) public static Templates getTemplates(String stylesheetURI) throws SAXException, PortalException(Code)(Java Doc) public static XSLT getTransformer(Object instance)(Code)(Java Doc) public static XSLT getTransformer(Object instance, Locale[] locales)(Code)(Java Doc) public static Transformer getTransformer(String stylesheetURI, ResourceBundle l18n) throws SAXException, PortalException(Code)(Java Doc) public static Transformer getTransformer(String stylesheetURI) throws SAXException, PortalException(Code)(Java Doc) public static TransformerHandler getTransformerHandler(String stylesheetURI) throws SAXException, PortalException(Code)(Java Doc) public static TransformerHandler getTransformerHandler(String stylesheetURI, Locale[] locales, Object caller) throws SAXException, PortalException(Code)(Java Doc) public static void purgeStylesheetCache()(Code)(Java Doc) public void setResourceBundle(ResourceBundle bundle)(Code)(Java Doc) public void setStylesheetParameter(String name, String value)(Code)(Java Doc) public void setStylesheetParameters(Hashtable stylesheetParameters)(Code)(Java Doc) public void setStylesheetParameters(HashMap stylesheetParameters)(Code)(Java Doc) public void setTarget(ContentHandler contentHandler)(Code)(Java Doc) public void setTarget(java.io.OutputStream os)(Code)(Java Doc) public void setTarget(org.w3c.dom.Node node)(Code)(Java Doc) public void setXML(String xml)(Code)(Java Doc) public void setXML(Node xml)(Code)(Java Doc) public void setXML(java.io.InputStream is)(Code)(Java Doc) public void setXML(java.io.File file)(Code)(Java Doc) public void setXSL(String xslUri) throws PortalException(Code)(Java Doc) public void setXSL(String sslUri, String stylesheetTitle, BrowserInfo browserInfo) throws PortalException(Code)(Java Doc) public void setXSL(String sslUri, BrowserInfo browserInfo) throws PortalException(Code)(Java Doc) public String toString()(Code)(Java Doc) public void transform() throws PortalException(Code)(Java Doc) public static void transform(Source xmlSource, Result xmlResult, Hashtable stylesheetParams, String xslURI) throws PortalException(Code)(Java Doc)
|
|
|