|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.util.ModelCache
ModelCache is a helper class to hold the models used during a transformation.
Constructor Summary | |
ModelCache(NodeNamePool namePool,
Object parser)
Create a ModelCache. |
Method Summary | |
void |
cleanup()
Call XPathRootNode.cleanup for every input document |
protected void |
finalize()
Calls cleanup. |
Object |
getItem(XPathRootNode root,
Object key)
Return a cached value. |
KeyMap[] |
getKeyMaps(XPathRootNode root)
Return the KeyMaps of a document. |
XPathRootNode |
getMainModel()
Return the main model. |
XPathRootNode |
getModel(String href,
String baseUri)
Get a document. |
XPathRootNode |
getModel(String href,
String baseUri,
XsltSecurityManager securityManager)
|
ModelReader |
getModelReader()
Return the model reader. |
NodeNamePool |
getNodeNamePool()
Return the NodeNamePool which is used as name pool for built documents. |
ParseHandler |
getParseHandler()
Return the ModelReaders ParseHandler. |
XPathNode |
getTextNodeFragment(String text)
|
void |
initMainModel(XmlSource source)
Initialize the main model of the ModelCache. |
Object |
putItem(XPathRootNode root,
Object key,
Object value)
Cache a value associated with a document. |
void |
setKeyMaps(XPathRootNode root,
KeyMap[] maps)
Set the KeyMaps of a document. |
void |
setUriResolver(UriResolver uriResolver)
Set the UriResolver. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModelCache(NodeNamePool namePool, Object parser) throws SAXException
namePool
- the namePool of the stylesheet. It will not be changed
(since all stylesheet data should be readonly so that a stylesheet can
be used multiple times). Therefore create a copy of the pool
is created and passed to the modelreaderparser
- a Sax1, Sax2, or pull parserMethod Detail |
public void setUriResolver(UriResolver uriResolver)
public NodeNamePool getNodeNamePool()
public ModelReader getModelReader()
public ParseHandler getParseHandler()
public void initMainModel(XmlSource source) throws IOException, SAXException, XsltException
IOException
SAXException
XsltException
public XPathRootNode getMainModel()
public XPathRootNode getModel(String href, String baseUri) throws IOException, SAXException
baseUri
- if uri is a relative uri, the baseUri parameter will be used
to build an valid absolute uri.
XsltException
- thrown if the document cannot be read
but errors should not be ignored
IOException
SAXException
public XPathRootNode getModel(String href, String baseUri, XsltSecurityManager securityManager) throws IOException, SAXException, SecurityException
IOException
SAXException
SecurityException
public XPathNode getTextNodeFragment(String text)
public Object putItem(XPathRootNode root, Object key, Object value)
public Object getItem(XPathRootNode root, Object key)
public KeyMap[] getKeyMaps(XPathRootNode root)
public void setKeyMaps(XPathRootNode root, KeyMap[] maps)
public void cleanup()
protected void finalize() throws Throwable
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |