Package org.zkoss.zk.ui.metainfo
Class Parser
- java.lang.Object
-
- org.zkoss.zk.ui.metainfo.Parser
-
public class Parser extends java.lang.ObjectUsed to parse the ZUL file- Author:
- tomyeh
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSIMPLIFIED_COMMAND_PARAM_PREFIX
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.zkoss.util.resource.LocatorgetLocator()returns locator for locating resources.PageDefinitionparse(java.io.File file, java.lang.String path)Parses the specified file.PageDefinitionparse(java.io.Reader reader, java.lang.String extension)Parses from the specified reader.PageDefinitionparse(java.net.URL url, java.lang.String path)Parses the specified URL.PageDefinitionparse(org.zkoss.idom.Document doc, java.lang.String extension)Parse the raw content directly from a DOM tree.
-
-
-
Field Detail
-
SIMPLIFIED_COMMAND_PARAM_PREFIX
public static final java.lang.String SIMPLIFIED_COMMAND_PARAM_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public PageDefinition parse(java.io.File file, java.lang.String path) throws java.lang.Exception
Parses the specified file.- Parameters:
path- the request path. It is used asPage.getRequestPath(), or null if not available.- Throws:
java.lang.Exception
-
parse
public PageDefinition parse(java.net.URL url, java.lang.String path) throws java.lang.Exception
Parses the specified URL.- Parameters:
path- the request path. It is used asPage.getRequestPath(), or null if not available.- Throws:
java.lang.Exception
-
parse
public PageDefinition parse(java.io.Reader reader, java.lang.String extension) throws java.lang.Exception
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:
java.lang.Exception
-
parse
public PageDefinition parse(org.zkoss.idom.Document doc, java.lang.String extension) throws java.lang.Exception
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:
java.lang.Exception
-
getLocator
public org.zkoss.util.resource.Locator getLocator()
returns locator for locating resources.
-
-