public class TagLibraryRegistry
extends java.lang.Object
TagLibraryRegistry
represents a registry for all
TagLibraries
containing Tags
.Constructor | Description |
---|---|
TagLibraryRegistry() |
Construct a
TagLibraryRegistry . |
Modifier and Type | Method | Description |
---|---|---|
Tag |
createTag(TagParser parser,
TagContext context,
WorkbookContext workbookContext) |
Creates a
Tag , looking in a specific namespace for a class
matching a specific tag name. |
void |
registerTagLibrary(java.lang.String namespace,
TagLibrary library) |
Add the given
TagLibrary to the registry, associated with
the given namespace. |
public void registerTagLibrary(java.lang.String namespace, TagLibrary library)
TagLibrary
to the registry, associated with
the given namespace.namespace
- The namespace.library
- The TagLibrary
to register.java.lang.IllegalArgumentException
- If the namespace has already been
registered.public Tag createTag(TagParser parser, TagContext context, WorkbookContext workbookContext)
Tag
, looking in a specific namespace for a class
matching a specific tag name. The given TagParser
supplies
the namespace, the tag name, and the attributes. If found, this creates
the Tag
and gives it the given TagContext
, else
it returns null
.parser
- A TagParser
that has parsed tag text.context
- The TagContext
.workbookContext
- The WorkbookContext
.Tag
, or null
if it couldn't be
created.TagParseException
- If there was a problem instantiating the
desired Tag
.Copyright © 2012–2018 Jett Team. All rights reserved.