Java Doc for SourceTreeManager.java in  » XML » xalan » org » apache » xpath » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xpath 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xpath.SourceTreeManager

SourceTreeManager
public class SourceTreeManager (Code)
This class bottlenecks all management of source trees. The methods in this class should allow easy garbage collection of source trees (not yet!), and should centralize parsing for those source trees.


Field Summary
 URIResolverm_uriResolver
     The TrAX URI resolver used to obtain source trees.


Method Summary
public  StringfindURIFromDoc(int owner)
     Given a document, find the URL associated with that document.
Parameters:
  owner - Document that was previously processed by this liaison.
public  intgetNode(Source source)
     Given a Source object, find the node associated with it.
Parameters:
  source - The Source object to act as the key.
public  intgetSourceTree(String base, String urlString, SourceLocator locator, XPathContext xctxt)
     Get the source tree from the a base URL and a URL string.
Parameters:
  base - The base URI to use if the urlString is relative.
Parameters:
  urlString - An absolute or relative URL string.
Parameters:
  locator - The location of the caller, for diagnostic purposes.
public  intgetSourceTree(Source source, SourceLocator locator, XPathContext xctxt)
     Get the source tree from the input source.
Parameters:
  source - The Source object that should identify the desired node.
Parameters:
  locator - The location of the caller, for diagnostic purposes.
public  URIResolvergetURIResolver()
     Get the object that will be used to resolve URIs used in document(), etc.
public static  XMLReadergetXMLReader(Source inputSource, SourceLocator locator)
     This method returns the SAX2 parser to use with the InputSource obtained from this URI. It may return null if any SAX2-conformant XML parser can be used, or if getInputSource() will also return null.
public  intparseToNode(Source source, SourceLocator locator, XPathContext xctxt)
     Try to create a DOM source tree from the input source.
Parameters:
  source - The Source object that identifies the source node.
Parameters:
  locator - The location of the caller, for diagnostic purposes.
public  voidputDocumentInCache(int n, Source source)
     Put the source tree root node in the document cache.
public  voidremoveDocumentFromCache(int n)
     JJK: Support kluge in ElemForEach. TODO: This function is highly dangerous.
public  voidreset()
     Reset the list of SourceTree objects that this manager manages.
public  SourceresolveURI(String base, String urlString, SourceLocator locator)
     This will be called by the processor when it encounters an xsl:include, xsl:import, or document() function.
Parameters:
  base - The base URI that should be used.
Parameters:
  urlString - Value from an xsl:import or xsl:include's href attribute,or a URI specified in the document() function.
public  voidsetURIResolver(URIResolver resolver)
     Set an object that will be used to resolve URIs used in document(), etc.

Field Detail
m_uriResolver
URIResolver m_uriResolver(Code)
The TrAX URI resolver used to obtain source trees.





Method Detail
findURIFromDoc
public String findURIFromDoc(int owner)(Code)
Given a document, find the URL associated with that document.
Parameters:
  owner - Document that was previously processed by this liaison. The base URI of the owner argument.



getNode
public int getNode(Source source)(Code)
Given a Source object, find the node associated with it.
Parameters:
  source - The Source object to act as the key. The node that is associated with the Source, or null if not found.



getSourceTree
public int getSourceTree(String base, String urlString, SourceLocator locator, XPathContext xctxt) throws TransformerException(Code)
Get the source tree from the a base URL and a URL string.
Parameters:
  base - The base URI to use if the urlString is relative.
Parameters:
  urlString - An absolute or relative URL string.
Parameters:
  locator - The location of the caller, for diagnostic purposes. should be a non-null reference to the node identified by the base and urlString.
throws:
  TransformerException - If the URL can not resolve to a node.



getSourceTree
public int getSourceTree(Source source, SourceLocator locator, XPathContext xctxt) throws TransformerException(Code)
Get the source tree from the input source.
Parameters:
  source - The Source object that should identify the desired node.
Parameters:
  locator - The location of the caller, for diagnostic purposes. non-null reference to a node.
throws:
  TransformerException - if the Source argument can't be resolved to a node.



getURIResolver
public URIResolver getURIResolver()(Code)
Get the object that will be used to resolve URIs used in document(), etc. An object that implements the URIResolver interface,or null.



getXMLReader
public static XMLReader getXMLReader(Source inputSource, SourceLocator locator) throws TransformerException(Code)
This method returns the SAX2 parser to use with the InputSource obtained from this URI. It may return null if any SAX2-conformant XML parser can be used, or if getInputSource() will also return null. The parser must be free for use (i.e. not currently in use for another parse().
Parameters:
  inputSource - The value returned from the URIResolver. a SAX2 XMLReader to use to resolve the inputSource argument.
Parameters:
  locator - The location of the original caller, for diagnostic purposes.
throws:
  TransformerException - if the reader can not be created.



parseToNode
public int parseToNode(Source source, SourceLocator locator, XPathContext xctxt) throws TransformerException(Code)
Try to create a DOM source tree from the input source.
Parameters:
  source - The Source object that identifies the source node.
Parameters:
  locator - The location of the caller, for diagnostic purposes. non-null reference to node identified by the source argument.
throws:
  TransformerException - if the source argument can not be resolved to a source node.



putDocumentInCache
public void putDocumentInCache(int n, Source source)(Code)
Put the source tree root node in the document cache. TODO: This function needs to be a LOT more sophisticated.
Parameters:
  n - The node to cache.
Parameters:
  source - The Source object to cache.



removeDocumentFromCache
public void removeDocumentFromCache(int n)(Code)
JJK: Support kluge in ElemForEach. TODO: This function is highly dangerous. Cache management must be improved.
Parameters:
  n - The node to remove.



reset
public void reset()(Code)
Reset the list of SourceTree objects that this manager manages.



resolveURI
public Source resolveURI(String base, String urlString, SourceLocator locator) throws TransformerException, IOException(Code)
This will be called by the processor when it encounters an xsl:include, xsl:import, or document() function.
Parameters:
  base - The base URI that should be used.
Parameters:
  urlString - Value from an xsl:import or xsl:include's href attribute,or a URI specified in the document() function. a Source that can be used to process the resource.
throws:
  IOException -
throws:
  TransformerException -



setURIResolver
public void setURIResolver(URIResolver resolver)(Code)
Set an object that will be used to resolve URIs used in document(), etc.
Parameters:
  resolver - An object that implements the URIResolver interface,or null.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.