Interface ConfigParser


public interface ConfigParser
A configuration parser is an application-specific parser to parse the configurations in zk.xml.

You can specify it in /metainfo/config.xml or WEB-INF/zk.xml as follows:


 <system-config>
 		<config-parser-class>com.foo.ConfigParser</config-parser-class>
 </system-config>
 
Since:
5.0.0
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    parse(Configuration config, org.zkoss.idom.Element el)
    Called to parse application-specific elements.
  • Method Details

    • parse

      boolean parse(Configuration config, org.zkoss.idom.Element el)
      Called to parse application-specific elements.
      Parameters:
      config - the configuration to store the info. The info can be stored with Configuration.setAttribute(java.lang.String, java.lang.Object).
      el - the element in zk.xml to be parsed
      Returns:
      whether the specified element is parsed by this parser. Return false if this parser doesn't recognize it.