| org.apache.cocoon.generation.AbstractGenerator org.apache.cocoon.generation.ServiceableGenerator org.apache.cocoon.generation.DirectoryGenerator org.apache.cocoon.generation.XPathDirectoryGenerator
Field Summary | |
final protected static String | QUERY_ATTR_NAME Attribute for the XPath query. | final protected static String | XPATH_NODE_NAME Local name for the element that contains the included XML snippet. | protected Document | doc The document that should be parsed and (partly) included. | final protected static Map | mappingFiles | protected DOMParser | parser The parser for the XML snippets to be included. | protected PrefixResolver | prefixResolver The PrefixResolver responsable for processing current request (if any). | protected XPathProcessor | processor The XPath processor. | protected RE | xmlRE The regular expression for the XML files pattern. | protected String | xpath The XPath. |
Method Summary | |
public void | dispose() | protected boolean | isXML(File path) Determines if a given File shall be handled as XML. | protected void | performXPathQuery(File xmlFile) Performs an XPath query on the file. | public void | recycle() | public void | service(ServiceManager manager) | public void | setup(SourceResolver resolver, Map objectModel, String src, Parameters par) | protected void | startNode(String nodeName, File path) Extends the startNode() method of the DirectoryGenerator by starting a possible XPath query on a file. |
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.
|
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 |
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.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)
|
|
|