Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.composite
Class TemplateUtils

java.lang.Object
  |
  +--oracle.cabo.ui.composite.TemplateUtils

public class TemplateUtils
extends java.lang.Object

Utilities for parsing with (and against) templates.


Constructor Summary
TemplateUtils()
           
 
Method Summary
static NamespaceURI getRootNamespaceURI(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
          Given the namespace and local name that a parsed template is derived from, returns the "root" namespace and local name.
static Template getTemplate(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
          Find a template registered on the ParseContext.
static void registerTemplate(ParseContext context, Template template)
          Register a template on a ParseContext.
static void registerTemplates(ParseContext context, Template[] templates)
          Registers an array of templates on a ParseContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateUtils

public TemplateUtils()
Method Detail

getTemplate

public static Template getTemplate(ParseContext context,
                                   java.lang.String namespaceURI,
                                   java.lang.String localName)
Find a template registered on the ParseContext.

getRootNamespaceURI

public static NamespaceURI getRootNamespaceURI(ParseContext context,
                                               java.lang.String namespaceURI,
                                               java.lang.String localName)
Given the namespace and local name that a parsed template is derived from, returns the "root" namespace and local name. In particular, this should be a namespace and local name that are available outside of this parse.

registerTemplate

public static void registerTemplate(ParseContext context,
                                    Template template)
Register a template on a ParseContext. You cannot add templates to a namespace that already has registered types - e.g., the UIX Component (Marlin) namespace. Conversely, you cannot programmatically register types into a namespace.

registerTemplates

public static void registerTemplates(ParseContext context,
                                     Template[] templates)
Registers an array of templates on a ParseContext.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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