com.raritantechnologies.xml
Class PatternXMLResultRenderer

java.lang.Object
  extended bycom.raritantechnologies.xml.PatternXMLResultRenderer
All Implemented Interfaces:
IConfigurable, IXMLResultRenderer

public class PatternXMLResultRenderer
extends java.lang.Object
implements IXMLResultRenderer

XML Result Renderer that uses an XML result Template.

XML Configuration Template:
   <XMLResultRenderer class="com.raritantechnologies.xml.PatternXMLResultRenderer" >

     <ResultSetTemplate>
     <![CDATA[

     ]]>
     </ResultSetTemplate>

     <ResultTemplate>

     </ResultTemplate>

   </XMLResultRenderer>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
PatternXMLResultRenderer()
           
 
Method Summary
 java.lang.String getXML(IResult result)
           
 java.lang.String getXML(IResultSet resultSet)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternXMLResultRenderer

public PatternXMLResultRenderer()
Method Detail

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

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