Java Doc for XPathDirectoryGenerator.java in  » Web-Framework » cocoon » org » apache » cocoon » generation » 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 » Web Framework » cocoon » org.apache.cocoon.generation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.generation.AbstractGenerator
   org.apache.cocoon.generation.ServiceableGenerator
      org.apache.cocoon.generation.DirectoryGenerator
         org.apache.cocoon.generation.XPathDirectoryGenerator

XPathDirectoryGenerator
public class XPathDirectoryGenerator extends DirectoryGenerator (Code)

author:
   Giacomo Pati
author:
   Gianugo Rabellino
author:
   J\u00F6rg Heinicke
version:
   CVS $Id: XPathDirectoryGenerator.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
final protected static  StringQUERY_ATTR_NAME
     Attribute for the XPath query.
final protected static  StringXPATH_NODE_NAME
     Local name for the element that contains the included XML snippet.
protected  Documentdoc
     The document that should be parsed and (partly) included.
final protected static  MapmappingFiles
    
protected  DOMParserparser
     The parser for the XML snippets to be included.
protected  PrefixResolverprefixResolver
     The PrefixResolver responsable for processing current request (if any).
protected  XPathProcessorprocessor
     The XPath processor.
protected  RExmlRE
     The regular expression for the XML files pattern.
protected  Stringxpath
     The XPath.


Method Summary
public  voiddispose()
    
protected  booleanisXML(File path)
     Determines if a given File shall be handled as XML.
protected  voidperformXPathQuery(File xmlFile)
     Performs an XPath query on the file.
public  voidrecycle()
    
public  voidservice(ServiceManager manager)
    
public  voidsetup(SourceResolver resolver, Map objectModel, String src, Parameters par)
    
protected  voidstartNode(String nodeName, File path)
     Extends the startNode() method of the DirectoryGenerator by starting a possible XPath query on a file.

Field Detail
QUERY_ATTR_NAME
final protected static String QUERY_ATTR_NAME(Code)
Attribute for the XPath query.



XPATH_NODE_NAME
final protected static String XPATH_NODE_NAME(Code)
Local name for the element that contains the included XML snippet.



doc
protected Document doc(Code)
The document that should be parsed and (partly) included.



mappingFiles
final protected static Map mappingFiles(Code)
All the mapping files lastmodified dates



parser
protected DOMParser parser(Code)
The parser for the XML snippets to be included.



prefixResolver
protected PrefixResolver prefixResolver(Code)
The PrefixResolver responsable for processing current request (if any).



processor
protected XPathProcessor processor(Code)
The XPath processor.



xmlRE
protected RE xmlRE(Code)
The regular expression for the XML files pattern.



xpath
protected String xpath(Code)
The XPath.





Method Detail
dispose
public void dispose()(Code)
Disposable



isXML
protected boolean isXML(File path)(Code)
Determines if a given File shall be handled as XML.
Parameters:
  path - the File to check true if the given File shall handled as XML, false otherwise.



performXPathQuery
protected void performXPathQuery(File xmlFile) throws SAXException(Code)
Performs an XPath query on the file.
Parameters:
  xmlFile - the File the XPath is performed on.
throws:
  SAXException - if something goes wrong while adding the XML snippet.



recycle
public void recycle()(Code)
Recycle resources



service
public void service(ServiceManager manager) throws ServiceException(Code)
Serviceable
Parameters:
  manager - the ComponentManager
throws:
  ServiceException - in case a component could not be found



setup
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(Code)
Setup this sitemap component
Parameters:
  resolver - the SourceResolver
Parameters:
  objectModel - The environmental object model
Parameters:
  src - the source attribute
Parameters:
  par - the parameters
throws:
  ProcessingException - if processing failes
throws:
  SAXException - in case of XML related errors
throws:
  IOException - in case of file related errors



startNode
protected void startNode(String nodeName, File path) throws SAXException(Code)
Extends the startNode() method of the DirectoryGenerator by starting a possible XPath query on a file.
Parameters:
  nodeName - the node currently processing
Parameters:
  path - the file path
throws:
  SAXException - in case of errors



Fields inherited from org.apache.cocoon.generation.DirectoryGenerator
final protected static String DATE_ATTR_NAME(Code)(Java Doc)
final protected static String DIR_NODE_NAME(Code)(Java Doc)
final protected static String FILENAME_ATTR_NAME(Code)(Java Doc)
final protected static String FILE_NODE_NAME(Code)(Java Doc)
final protected static String LASTMOD_ATTR_NAME(Code)(Java Doc)
final protected static String PREFIX(Code)(Java Doc)
final protected static String SIZE_ATTR_NAME(Code)(Java Doc)
final protected static String URI(Code)(Java Doc)
protected AttributesImpl attributes(Code)(Java Doc)
protected List cacheKeyParList(Code)(Java Doc)
protected SimpleDateFormat dateFormatter(Code)(Java Doc)
protected int depth(Code)(Java Doc)
protected Source directorySource(Code)(Java Doc)
protected RE excludeRE(Code)(Java Doc)
protected RE includeRE(Code)(Java Doc)
protected boolean isRequestedDirectory(Code)(Java Doc)
protected long refreshDelay(Code)(Java Doc)
protected boolean reverse(Code)(Java Doc)
protected RE rootRE(Code)(Java Doc)
protected String sort(Code)(Java Doc)
protected DirValidity validity(Code)(Java Doc)

Methods inherited from org.apache.cocoon.generation.DirectoryGenerator
protected void addAncestorPath(File path, Stack ancestors) throws SAXException(Code)(Java Doc)
protected void addPath(File path, int depth) throws SAXException(Code)(Java Doc)
protected void endNode(String nodeName) throws SAXException(Code)(Java Doc)
public void generate() throws SAXException, ProcessingException(Code)(Java Doc)
protected Stack getAncestors(File path)(Code)(Java Doc)
public Serializable getKey()(Code)(Java Doc)
public SourceValidity getValidity()(Code)(Java Doc)
protected boolean isExcluded(File path)(Code)(Java Doc)
protected boolean isIncluded(File path)(Code)(Java Doc)
protected boolean isRoot(File path)(Code)(Java Doc)
public void recycle()(Code)(Java Doc)
protected void setNodeAttributes(File path) throws SAXException(Code)(Java Doc)
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(Code)(Java Doc)
protected void startNode(String nodeName, File path) throws SAXException(Code)(Java Doc)

Fields inherited from org.apache.cocoon.generation.ServiceableGenerator
protected ServiceManager manager(Code)(Java Doc)

Methods inherited from org.apache.cocoon.generation.ServiceableGenerator
public void dispose()(Code)(Java Doc)
public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)

Fields inherited from org.apache.cocoon.generation.AbstractGenerator
protected Map objectModel(Code)(Java Doc)
protected Parameters parameters(Code)(Java Doc)
protected SourceResolver resolver(Code)(Java Doc)
protected String source(Code)(Java Doc)

Methods inherited from org.apache.cocoon.generation.AbstractGenerator
public void recycle()(Code)(Java Doc)
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(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.