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.
Method Summary |
static NodeRole |
getNodeRole(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
Given the namespace and local name of a parsed template,
return its NodeRole. |
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 |
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.
getNodeRole
public static NodeRole getNodeRole(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
- Given the namespace and local name of a parsed template,
return its NodeRole. This node role will not incorporate
any Renderer-based roles, only roles discovered while parsing.
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 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.