public class PageDefinitions
extends java.lang.Object
Constructor and Description |
---|
PageDefinitions() |
Modifier and Type | Method and Description |
---|---|
static Locator |
getLocator(WebApp wapp,
java.lang.String path)
Returns the locator for the specified context.
|
static PageDefinition |
getPageDefinition(WebApp wapp,
Locator locator,
java.lang.String path)
Returns the page definition of the specified path, or null if not
found or failed to parse.
|
static PageDefinition |
getPageDefinitionDirectly(WebApp wapp,
Locator locator,
Document doc,
java.lang.String extension)
Returns the page definition of the specified raw content in DOM;
never null.
|
static PageDefinition |
getPageDefinitionDirectly(WebApp wapp,
Locator locator,
java.io.Reader reader,
java.lang.String extension)
Returns the page definition of the raw content from the specified
reader; never null.
|
static PageDefinition |
getPageDefinitionDirectly(WebApp wapp,
Locator locator,
java.lang.String content,
java.lang.String extension)
Returns the page definition of the specified raw content; never null.
|
public static final PageDefinition getPageDefinitionDirectly(WebApp wapp, Locator locator, java.lang.String content, java.lang.String extension)
This is the lowest method that other getPageDefinitionDirectly depends.
Dependency: Execution.createComponentsDirectly -& Execution.getPageDefinitionDirectly -& UiFactory.getPageDefiitionDirectly -& PageDefintions.getPageDefinitionDirectly
locator
- the locator used to locate taglib and other resources.
If null, wapp is assumed (WebApp
is also assumed).extension
- the default extension if the content doesn't specify
an language. In other words, if
the content doesn't specify an language, LanguageDefinition.getByExtension(java.lang.String)
is called.
If extension is null and the content doesn't specify a language,
the language called "xul/html" is assumed.UiException
- if failed to parsepublic static final PageDefinition getPageDefinitionDirectly(WebApp wapp, Locator locator, java.io.Reader reader, java.lang.String extension) throws java.io.IOException
locator
- the locator used to locate taglib and other resources.
If null, wapp is assumed (WebApp
is also assumed).extension
- the default extension if the content doesn't specify
an language. In other words, if
the content doesn't specify an language, LanguageDefinition.getByExtension(java.lang.String)
is called.
If extension is null and the content doesn't specify a language,
the language called "xul/html" is assumed.UiException
- if failed to parsejava.io.IOException
public static final PageDefinition getPageDefinitionDirectly(WebApp wapp, Locator locator, Document doc, java.lang.String extension)
locator
- the locator used to locate taglib and other resources.
If null, wapp is assumed (WebApp
is also assumed).extension
- the default extension if the content doesn't specify
an language. In other words, if
the content doesn't specify an language, LanguageDefinition.getByExtension(java.lang.String)
is called.
If extension is null and the content doesn't specify a language,
the language called "xul/html" is assumed.UiException
- if failed to parsepublic static final PageDefinition getPageDefinition(WebApp wapp, Locator locator, java.lang.String path)
This is the lowest method that other getPageDefinition depends.
Dependency: Execution.createComponents -& Execution.getPageDefinition -& UiFactory.getPageDefiition -& PageDefintions.getPageDefinition
locator
- the locator used to locate taglib and other resources.
If null, wapp is assumed (WebApp
is also assumed).public static final Locator getLocator(WebApp wapp, java.lang.String path)
path
- the original path, or null if not available.
The original path is used to resolve a relative path.
If not specified, Desktop.getCurrentDirectory()
is used.Copyright © 2005-2018 Potix Corporation. All Rights Reserved.