public class XmlTemplateLibrary extends Object implements TemplateLibrary
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVASCRIPT_TAG |
static String |
NAMESPACE_TAG |
static String |
STYLE_TAG |
static String |
TAG_ATTRIBUTE |
static String |
TEMPLATE_TAG |
static String |
TEMPLATEDEF_TAG |
| Constructor and Description |
|---|
XmlTemplateLibrary(Uri uri,
Element root,
String source) |
XmlTemplateLibrary(Uri uri,
Element root,
String source,
boolean safe) |
| Modifier and Type | Method and Description |
|---|---|
protected TagHandler |
createTagHandler(Element template,
String namespaceUri,
String localName)
Creates a tag handler wrapping an element.
|
Uri |
getLibraryUri() |
TagRegistry |
getTagRegistry() |
boolean |
isSafe() |
String |
serialize() |
public static final String TAG_ATTRIBUTE
public static final String NAMESPACE_TAG
public static final String TEMPLATE_TAG
public static final String STYLE_TAG
public static final String JAVASCRIPT_TAG
public static final String TEMPLATEDEF_TAG
public XmlTemplateLibrary(Uri uri, Element root, String source) throws GadgetException
uri - URI of the template libraryroot - Element representing the Templates tag of this libraryGadgetExceptionpublic XmlTemplateLibrary(Uri uri, Element root, String source, boolean safe) throws GadgetException
uri - URI of the template libraryroot - Element representing the Templates tag of this librarysafe - Is this library exempt from being sanitized?GadgetExceptionpublic TagRegistry getTagRegistry()
getTagRegistry in interface TemplateLibrarypublic Uri getLibraryUri()
getLibraryUri in interface TemplateLibrarypublic boolean isSafe()
isSafe in interface TemplateLibrarypublic String serialize()
serialize in interface TemplateLibraryprotected TagHandler createTagHandler(Element template, String namespaceUri, String localName)
TemplateBasedTagHandler. Override this to create custom
tag handlers.Copyright © 2007-2012. All Rights Reserved.