org.zkoss.zest.sys.impl
Class ParserImpl

java.lang.Object
  extended by org.zkoss.zest.sys.impl.ParserImpl
All Implemented Interfaces:
Parser

public class ParserImpl
extends java.lang.Object
implements Parser

The default implementation of the parser of the configuration file (/WEB-INF/zest.xml).

Author:
tomyeh

Constructor Summary
ParserImpl()
           
 
Method Summary
 Configuration parse(org.zkoss.idom.Element root, org.zkoss.util.resource.Locator loc)
          Parses the specified root element.
 Configuration parse(java.net.URL url, org.zkoss.util.resource.Locator loc)
          Parses the specified configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserImpl

public ParserImpl()
Method Detail

parse

public Configuration parse(java.net.URL url,
                           org.zkoss.util.resource.Locator loc)
                    throws java.lang.Exception
Description copied from interface: Parser
Parses the specified configuration file.

Specified by:
parse in interface Parser
Parameters:
url - the configuration file's URL
loc - the locator used to locate the associated resources.
Returns:
the configuration.
Throws:
java.lang.Exception

parse

public Configuration parse(org.zkoss.idom.Element root,
                           org.zkoss.util.resource.Locator loc)
                    throws java.lang.Exception
Parses the specified root element.

Throws:
java.lang.Exception


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.