com.raritantechnologies.searchApp.taglibrary
Class CompositeCustomTag
java.lang.Object
com.raritantechnologies.searchApp.taglibrary.CompositeCustomTag
- All Implemented Interfaces:
- IConfigurable, ICustomTag
- public class CompositeCustomTag
- extends java.lang.Object
- implements ICustomTag
Enables a set of ICustomTags to be composed using an HTML template.
XML Configuration Template:
<SystemObject type="CustomTag" name="[ name of this composite tag ]"
class="com.raritantechnologies.searchApp.taglibrary.CompositeCustomTag" >
<!-- An HTML template with markers for tags like this: {TAG_} where tagID maps to -->
<!-- a tagID= attribute of a nested ICustomTag -->
<Template>
<![CDATA[ The HTML template with tag markers ]]>
</Template>
<!-- One or more Tag elements: -->
<Tag ID="[ tag id matching one of the elements in the template ]"
class="[ class of com.raritantechnologies.searchApp.taglibrary.ICustomTag ]" >
<!-- configuration details specific to implementation class -->
</Tag>
<!-- etc... -->
</SystemObject>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeCustomTag
public CompositeCustomTag()
getBody
public java.lang.String getBody(RaritanPageContext rpc)
- Description copied from interface:
ICustomTag
- Returns the tag body.
- Specified by:
getBody in interface ICustomTag
- Parameters:
rpc - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
- Returns:
- The tag body text string.
getRenderedTemplate
public java.lang.String getRenderedTemplate(java.util.HashMap renderMap)
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable
initialize
public void initialize(java.util.Map initParams)
- Specified by:
initialize in interface ICustomTag