|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.xml.dataCollection.FileXMLDataSource
Implementation of IXMLDataSource that retrieves xml data from one or more files.
XML Configuration Template:
<XMLSource class="com.raritantechnologies.xml.dataCollection.FileXMLDataSource"
filePath="[path to xml file(s)]"
fileNameParam="[ name of request parameter that contains fileName ]"
recurseSubdirectories="true|false(default)"
eventRecorderName="[name of IEventRecorder System Object]"
fileNameTag="[ optional tag name to include filename in XML document ]" />
| Constructor Summary | |
FileXMLDataSource()
|
|
| Method Summary | |
IEventRecorder |
getEventRecorder()
|
java.lang.String |
getFilePath()
|
org.w3c.dom.Document |
getNextResult()
returns next available document |
boolean |
getRecurseSubdirectories()
|
boolean |
hasMoreResults()
returns true if more results available, false otherwise |
void |
init(RaritanPageContext rpc)
Initialize the source. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
setEventRecorder(IEventRecorder eRecorder)
|
void |
setFilePath(java.lang.String filePath)
|
void |
setRecurseSubdirectories(boolean recurseSubdirectories)
|
void |
shutdown()
close all connections, or other application resources. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileXMLDataSource()
| Method Detail |
public void init(RaritanPageContext rpc)
IXMLDataSource
init in interface IXMLDataSourcepublic boolean hasMoreResults()
IXMLDataSource
hasMoreResults in interface IXMLDataSourcepublic org.w3c.dom.Document getNextResult()
IXMLDataSource
getNextResult in interface IXMLDataSourcepublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic void shutdown()
IXMLDataSource
shutdown in interface IXMLDataSourcepublic void setFilePath(java.lang.String filePath)
public java.lang.String getFilePath()
public void setRecurseSubdirectories(boolean recurseSubdirectories)
public boolean getRecurseSubdirectories()
public void setEventRecorder(IEventRecorder eRecorder)
public IEventRecorder getEventRecorder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||