Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.composite
Class TemplateUIExtension

java.lang.Object
  |
  +--oracle.cabo.ui.composite.TemplateUIExtension
All Implemented Interfaces:
UIExtension
Direct Known Subclasses:
StrutsTemplateUIExtension

public class TemplateUIExtension
extends java.lang.Object
implements UIExtension

The TemplateUIExtension allows developers to turn a template library file into a RendererFactory and ParserFactory that can be registered by developers with a single API. This allows templates to be used in UIX files without any need for explict imports, but as importantly allows UIX templates to be used in non-XML scenarios - including Java code or JSP tag libraries.


Constructor Summary
TemplateUIExtension(TemplateLibrary library)
          Create a TemplateUIExtension.
TemplateUIExtension(TemplateLibrary[] libraries)
          Create a TemplateUIExtension.
 
Method Summary
 boolean isLenient()
          Returns whether the template extension is lenient in its parsing.
protected  void registerRendererFactory(RendererManager manager, java.lang.String namespaceURI, RendererFactoryImpl factory)
           
 void registerSelf(LookAndFeel laf)
          Registers the extension explicitly on a LookAndFeel.
 void registerSelf(ParserManager manager)
          Registers the extension explicitly on a ParserManager.
protected  void registerUINodeParserFactory(ParserManager manager, java.lang.String namespaceURI, java.util.Dictionary types)
           
 void setLenient(boolean lenient)
          Sets whether the template extension is lenient in its parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateUIExtension

public TemplateUIExtension(TemplateLibrary library)
Create a TemplateUIExtension.

TemplateUIExtension

public TemplateUIExtension(TemplateLibrary[] libraries)
Create a TemplateUIExtension.
Method Detail

isLenient

public boolean isLenient()
Returns whether the template extension is lenient in its parsing. Specifically, lenient extensions will explicitly raise errors when unknown elements are encountered. This defaults to false.

setLenient

public void setLenient(boolean lenient)
Sets whether the template extension is lenient in its parsing. Specifically, lenient extensions will explicitly raise errors when unknown elements are encountered. This defaults to true.

registerSelf

public void registerSelf(LookAndFeel laf)
Registers the extension explicitly on a LookAndFeel.
Specified by:
registerSelf in interface UIExtension

registerSelf

public void registerSelf(ParserManager manager)
Registers the extension explicitly on a ParserManager.
Specified by:
registerSelf in interface UIExtension

registerRendererFactory

protected void registerRendererFactory(RendererManager manager,
                                       java.lang.String namespaceURI,
                                       RendererFactoryImpl factory)

registerUINodeParserFactory

protected void registerUINodeParserFactory(ParserManager manager,
                                           java.lang.String namespaceURI,
                                           java.util.Dictionary types)

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.