Package org.zkoss.zk.ui.metainfo
Class Parser
java.lang.Object
org.zkoss.zk.ui.metainfo.Parser
Used to parse the ZUL file
- Author:
- tomyeh
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.zkoss.util.resource.Locatorreturns locator for locating resources.Parses the specified file.Parses from the specified reader.Parses the specified URL.Parse the raw content directly from a DOM tree.
-
Field Details
-
SIMPLIFIED_COMMAND_PARAM_PREFIX
- See Also:
-
-
Constructor Details
-
Parser
Constructor.- Parameters:
locator- the locator used to locate taglib and other resources. If null, wapp is assumed (WebAppis also assumed).
-
-
Method Details
-
parse
Parses the specified file.- Parameters:
path- the request path. It is used asPage.getRequestPath(), or null if not available.- Throws:
Exception
-
parse
Parses the specified URL.- Parameters:
path- the request path. It is used asPage.getRequestPath(), or null if not available.- Throws:
Exception
-
parse
Parses from the specified reader.- Parameters:
extension- the default extension if doc (of reader) doesn't specify an language. Ignored if null. If extension is null and the content doesn't specify a language, the language called "xul/html" is assumed.- Throws:
Exception
-
parse
Parse the raw content directly from a DOM tree.- Parameters:
extension- the default extension if doc doesn't specify an language. Ignored if null. If extension is null and the content doesn't specify a language, the language called "xul/html" is assumed.- Throws:
Exception
-
getLocator
public org.zkoss.util.resource.Locator getLocator()returns locator for locating resources.
-