com.java4less.rreport
Class RXMLSource

java.lang.Object
  |
  +--com.java4less.rreport.RXMLSource
All Implemented Interfaces:
RSource

public class RXMLSource
extends java.lang.Object
implements RSource

XML data source.


Constructor Summary
RXMLSource(java.lang.String sFile, java.lang.String node)
           
 
Method Summary
 org.w3c.dom.Node getCurrentNode()
          get current node
 java.lang.String[] getFromFields()
          not used methods
 RSource getLinkSource()
          linked RSource (if the RSource supports nested RSources).
 java.lang.String[] getToFields()
          field names in this RSource used for the relationship (this is normally a foreign key).
 void rsource_end()
          called after printing all records.
 java.lang.Object rsource_getData(java.lang.String FieldName)
          get value for field
 boolean rsource_nextRecord()
          get next node in NodeList
 boolean rsource_start()
          open node
 void setFromFields(java.lang.String[] s)
          field names in the linked RSource used for the relationship (this is normally the primary key).
 void setLinkSource(RSource l)
          linked RSource (if the RSource supports nested RSources).
 void setParameter(java.lang.String param, java.lang.String value)
          sets a value for a parameter.
 void setToFields(java.lang.String[] s)
          field names in this RSource used for the relationship (this is normally a foreign key).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RXMLSource

public RXMLSource(java.lang.String sFile,
                  java.lang.String node)
Method Detail

rsource_getData

public java.lang.Object rsource_getData(java.lang.String FieldName)
get value for field
Specified by:
rsource_getData in interface RSource

rsource_nextRecord

public boolean rsource_nextRecord()
get next node in NodeList
Specified by:
rsource_nextRecord in interface RSource

rsource_start

public boolean rsource_start()
open node
Specified by:
rsource_start in interface RSource

rsource_end

public void rsource_end()
Description copied from interface: RSource
called after printing all records. Can be used for example to close a connection to a database
Specified by:
rsource_end in interface RSource

getLinkSource

public RSource getLinkSource()
Description copied from interface: RSource
linked RSource (if the RSource supports nested RSources).
Specified by:
getLinkSource in interface RSource

setLinkSource

public void setLinkSource(RSource l)
Description copied from interface: RSource
linked RSource (if the RSource supports nested RSources).
Specified by:
setLinkSource in interface RSource

getCurrentNode

public org.w3c.dom.Node getCurrentNode()
get current node

getFromFields

public java.lang.String[] getFromFields()
not used methods
Specified by:
getFromFields in interface RSource

getToFields

public java.lang.String[] getToFields()
Description copied from interface: RSource
field names in this RSource used for the relationship (this is normally a foreign key).
Specified by:
getToFields in interface RSource

setFromFields

public void setFromFields(java.lang.String[] s)
Description copied from interface: RSource
field names in the linked RSource used for the relationship (this is normally the primary key).
Specified by:
setFromFields in interface RSource

setToFields

public void setToFields(java.lang.String[] s)
Description copied from interface: RSource
field names in this RSource used for the relationship (this is normally a foreign key).
Specified by:
setToFields in interface RSource

setParameter

public void setParameter(java.lang.String param,
                         java.lang.String value)
Description copied from interface: RSource
sets a value for a parameter. Some RSource can accept parameters, for example the RJDBCSource can use parameters to create a database SQl query.
Specified by:
setParameter in interface RSource