com.raritantechnologies.xml.dataCollection.atom
Class AtomDisplayFormRenderer

java.lang.Object
  extended bycom.raritantechnologies.searchApp.taglibrary.BasicDisplayFormRenderer
      extended bycom.raritantechnologies.xml.dataCollection.atom.AtomDisplayFormRenderer
All Implemented Interfaces:
IConfigurable, IDisplayFormRenderer, IXMLResultRenderer

public class AtomDisplayFormRenderer
extends BasicDisplayFormRenderer
implements IDisplayFormRenderer, IXMLResultRenderer

Transforms an IResultSet into ATOM XML format.

XML Configuration Template:
  <DisplayForm rendererClass="com.raritantechnologies.xml.dataCollection.atom.AtomDisplayFormRenderer"
                  dateFormat="[ format for date strings... ]" >

    <AtomFeed title="[ title of Atom feed ]"
                   url="[ url of Atom feed ]"
                   description="[ description ]" />

    <AtomResultRenderer>
      <!-- Configuration parameters for AtomResultRenderer -->
    </AtomResultRenderer>

  </DisplayForm>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.taglibrary.BasicDisplayFormRenderer
trailerBuffer
 
Fields inherited from interface com.raritantechnologies.searchApp.taglibrary.IDisplayFormRenderer
TEMPLATE
 
Constructor Summary
AtomDisplayFormRenderer()
           
 
Method Summary
 java.lang.String getBody(IResultSet resultSet, java.lang.String displayFormName, RaritanPageContext pageContext)
          Returns the display form body as an HTML fragment, by formatting the data contained in an IResultSet.
 java.lang.String getXML(IResult result)
           
 java.lang.String getXML(IResultSet resultSet)
           
 void initialize(org.w3c.dom.Element elem)
          Initialize the search form renderer from the configuration XML.
 
Methods inherited from class com.raritantechnologies.searchApp.taglibrary.BasicDisplayFormRenderer
addBodyTrailerContent, disableRenderers, enableRenderers, getConfigurationXML, getResultRenderer, initialize, setBackgroundColor1, setBackgroundColor2, setColumnSpacing, setDisabledRendererParam, setEnabledRendererParam, setEnabledRenderers, setFieldNameCSSClass, setFielValueCSSClass, setHeaderWidth, setResultWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.raritantechnologies.searchApp.taglibrary.IDisplayFormRenderer
addBodyTrailerContent, disableRenderers, enableRenderers, getResultRenderer, setDisabledRendererParam, setEnabledRendererParam, setEnabledRenderers
 

Constructor Detail

AtomDisplayFormRenderer

public AtomDisplayFormRenderer()
Method Detail

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IDisplayFormRenderer
Initialize the search form renderer from the configuration XML.

Specified by:
initialize in interface IDisplayFormRenderer
Overrides:
initialize in class BasicDisplayFormRenderer

getBody

public java.lang.String getBody(IResultSet resultSet,
                                java.lang.String displayFormName,
                                RaritanPageContext pageContext)
Description copied from interface: IDisplayFormRenderer
Returns the display form body as an HTML fragment, by formatting the data contained in an IResultSet.

Specified by:
getBody in interface IDisplayFormRenderer
Overrides:
getBody in class BasicDisplayFormRenderer

getXML

public java.lang.String getXML(IResultSet resultSet)
Specified by:
getXML in interface IXMLResultRenderer

getXML

public java.lang.String getXML(IResult result)
Specified by:
getXML in interface IXMLResultRenderer