|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.composite.TemplateLibrary
The TemplateLibrary class allows the loading of a "template
library" UIX file. These XML files will (usually) have
<templateLibrary>
as a root element.
Once loaded, the library can be used, for instance, to form a
TemplateUIExtension.
A major limitation (at this time) is that a template library can only consist of templates in a single namespace.
TemplateUIExtension
Constructor Summary | |
TemplateLibrary(NameResolver resolver,
java.lang.String name,
ParserManager manager,
XMLProvider provider,
ErrorLog log)
Create a TemplateLibrary. |
Method Summary | |
java.lang.String[] |
getNamespaceURIs()
Gets the single namespace of the templates. |
RendererFactoryImpl |
getRenderers(RendererFactoryImpl factory,
java.lang.String namespaceURI)
Registers the renderers of this template library from one namespace onto a renderer factory. |
Template[] |
getTemplates()
Returns all the templates. |
java.util.Dictionary |
getUINodeTypes(java.util.Dictionary in,
java.lang.String namespaceURI)
Creates a Dictionary of UINodeType objects, suitable for use in parsing UIX. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateLibrary(NameResolver resolver, java.lang.String name, ParserManager manager, XMLProvider provider, ErrorLog log)
resolver
- NameResolver implementation for finding the template
libraryname
- name of the template library filemanager
- ParserManager to be used for loading the template libraryprovider
- an XMLProvider implementation; if null,
defaults to the Oracle XML parserlog
- an ErrorLogMethod Detail |
public java.lang.String[] getNamespaceURIs()
public RendererFactoryImpl getRenderers(RendererFactoryImpl factory, java.lang.String namespaceURI)
factory
- a pre-created RendererFactoryImpl instance; if null,
an empty factory will be creatednamespaceURI
- the namespace of the desired templatespublic java.util.Dictionary getUINodeTypes(java.util.Dictionary in, java.lang.String namespaceURI)
in
- a dictionary; if null, one will be creatednamespaceURI
- the namespace of the desired templatesUINodeParserFactory
public Template[] getTemplates()
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |