Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » generation » [javadoc | source]
org.apache.cocoon.generation
public class: XPathDirectoryGenerator [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.xml.AbstractXMLProducer
         org.apache.cocoon.generation.AbstractGenerator
            org.apache.cocoon.generation.ServiceableGenerator
               org.apache.cocoon.generation.DirectoryGenerator
                  org.apache.cocoon.generation.XPathDirectoryGenerator

All Implemented Interfaces:
    CacheableProcessingComponent, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.service.Serviceable, Generator, org.apache.avalon.excalibur.pool.Recyclable, XMLProducer

Field Summary
protected static final  String XPATH_NODE_NAME    Local name for the element that contains the included XML snippet. 
protected static final  String QUERY_ATTR_NAME    Attribute for the XPath query. 
protected static final  Map mappingFiles    All the mapping files lastmodified dates 
protected  DOMParser parser    The parser for the XML snippets to be included. 
protected  Document doc    The document that should be parsed and (partly) included. 
protected  PrefixResolver prefixResolver    The PrefixResolver responsable for processing current request (if any). 
protected  RE xmlRE    The regular expression for the XML files pattern. 
protected  String xpath    The XPath. 
protected  XPathProcessor processor    The XPath processor. 
Fields inherited from org.apache.cocoon.generation.DirectoryGenerator:
URI,  PREFIX,  DIR_NODE_NAME,  FILE_NODE_NAME,  FILENAME_ATTR_NAME,  LASTMOD_ATTR_NAME,  DATE_ATTR_NAME,  SIZE_ATTR_NAME,  validity,  attributes,  cacheKeyParList,  depth,  dateFormatter,  refreshDelay,  sort,  reverse,  rootRE,  includeRE,  excludeRE,  isRequestedDirectory,  directorySource
Fields inherited from org.apache.cocoon.generation.ServiceableGenerator:
manager
Fields inherited from org.apache.cocoon.generation.AbstractGenerator:
resolver,  objectModel,  parameters,  source
Fields inherited from org.apache.cocoon.xml.AbstractXMLProducer:
EMPTY_CONTENT_HANDLER,  xmlConsumer,  contentHandler,  lexicalHandler
Method from org.apache.cocoon.generation.XPathDirectoryGenerator Summary:
dispose,   isXML,   performXPathQuery,   recycle,   service,   setup,   startNode
Methods from org.apache.cocoon.generation.DirectoryGenerator:
addAncestorPath,   addPath,   endNode,   generate,   getAncestors,   getKey,   getValidity,   isExcluded,   isIncluded,   isRoot,   recycle,   setNodeAttributes,   setup,   startNode
Methods from org.apache.cocoon.generation.ServiceableGenerator:
dispose,   service
Methods from org.apache.cocoon.generation.AbstractGenerator:
recycle,   setup
Methods from org.apache.cocoon.xml.AbstractXMLProducer:
recycle,   setConsumer,   setContentHandler,   setLexicalHandler
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.generation.XPathDirectoryGenerator Detail:
 public  void dispose() 
    Disposable
 protected boolean isXML(File path) 
    Determines if a given File shall be handled as XML.
 protected  void performXPathQuery(File xmlFile) throws SAXException 
    Performs an XPath query on the file.
 public  void recycle() 
    Recycle resources
 public  void service(ServiceManager manager) throws ServiceException 
    Serviceable
 public  void setup(SourceResolver resolver,
    Map objectModel,
    String src,
    Parameters par) throws IOException, SAXException, ProcessingException 
    Setup this sitemap component
 protected  void startNode(String nodeName,
    File path) throws SAXException 
    Extends the startNode() method of the DirectoryGenerator by starting a possible XPath query on a file.