org.apache.shindig.gadgets.templates.tags
Interface TagHandler

All Known Implementing Classes:
AbstractTagHandler, FlashTagHandler, HtmlTagHandler, IfTagHandler, RenderTagHandler, RepeatTagHandler, TemplateBasedTagHandler, VariableTagHandler

public interface TagHandler

A Handler for custom tags in template markup.


Field Summary
static String OPENSOCIAL_NAMESPACE
          Namespace used by tags in the default Opensocial namespace.
 
Method Summary
 String getNamespaceUri()
           
 String getTagName()
           
 void process(Node result, Element tag, TemplateProcessor processor)
          Processes the custom tag.
 

Field Detail

OPENSOCIAL_NAMESPACE

static final String OPENSOCIAL_NAMESPACE
Namespace used by tags in the default Opensocial namespace.

See Also:
Constant Field Values
Method Detail

getTagName

String getTagName()
Returns:
the local name of the element this tag parses.

getNamespaceUri

String getNamespaceUri()
Returns:
the namespace of the element this tag parses.

process

void process(Node result,
             Element tag,
             TemplateProcessor processor)
Processes the custom tag.

Parameters:
result - A Node to append output to.
tag - The Element reference to the tag, useful for inspecting attributes and children
processor - A TemplateProcessor, used to evaluate expressions and render sub-templates if needed.


Copyright © 2007-2012. All Rights Reserved.