public class SimpleStylesheetCache extends Object implements StylesheetCache
StylesheetCache that simply caches all stylesheets
in a HashMap.
This is used internally by SnuggleEngine and certain extensions. It might also
be useful in other very simple situations.
| Constructor and Description |
|---|
SimpleStylesheetCache() |
| Modifier and Type | Method and Description |
|---|---|
Templates |
getStylesheet(String key)
Tries to retrieve an XSLT stylesheet from the cache having the given key.
|
void |
putStylesheet(String key,
Templates stylesheet)
Instructs the cache that it might want to store the given XSLT stylesheet corresponding
to the given key.
|
String |
toString() |
public Templates getStylesheet(String key)
StylesheetCache
Return a previously cached Templates or null if your cache doesn't want to cache
this or if it does not contain the required result.
getStylesheet in interface StylesheetCachepublic void putStylesheet(String key, Templates stylesheet)
StylesheetCacheImplementations can safely choose to do absolutely nothing here if they want.
putStylesheet in interface StylesheetCacheCopyright © 2008–2026 The University of Edinburgh. All rights reserved.