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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateUtils
public TemplateUtils()
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.