JobDataXml Class Reference

Provides access to JobDataXml (a XML file that serves as JobData for a Job). More...

List of all members.

Public Member Functions

String getFilename ()
 Gets the name of the XML input file.
String getXsltFilename ()
 Gets the XSLT filename (optional).
String getXsltTfcFilename ()
 Gets the XSLT TFC filename (optional).
 JobDataXml (String filename)
 Initializes a new instance of the JobDataXml class.
 JobDataXml ()
 Initializes a new instance of the JobDataXml class.
void setFilename (String sFilename)
 Sets the name of the XML input file.
void setXsltFilename (String sXsltFilename)
 Sets the XSLT filename (optional).
void setXsltTfcFilename (String sXsltTfcFilename)
 Sets the XSLT TFC filename (optional).


Detailed Description

Provides access to JobDataXml (a XML file that serves as JobData for a Job).



The JobDataXml enables TFORMer Runtime to use XML-files as a JobData for printing a Job.

The specified XML-file must comply to the formats recognized by TFORMer. The following XML formats can be used:



Assume a suitable XML-file is stored in C:/temp/Import.xml. The corresponding call to create the JobData and to assign it to a Job is as follows:
 // create a Job instance
 Job job = new Job();

 // create the data source
 JobData jobData = new JobDataXml("c:/temp/Import.xml");

 job.setJobData(jobData);
 job.print ();

For a general description see JobData.


Constructor & Destructor Documentation

JobDataXml ( String  filename  ) 

Initializes a new instance of the JobDataXml class.

Parameters:
filename The name of the XML input file.


Member Function Documentation

String getFilename (  ) 

Gets the name of the XML input file.

Returns:
The name of the XML input file.

String getXsltFilename (  ) 

Gets the XSLT filename (optional).

Returns:
The XSLT filename (optional). null if not used.

String getXsltTfcFilename (  ) 

Gets the XSLT TFC filename (optional).

Returns:
The XSLT TFC filename (optional). null if not used.

void setFilename ( String  sFilename  ) 

Sets the name of the XML input file.

Parameters:
sFilename The name of the XML input file.

void setXsltFilename ( String  sXsltFilename  ) 

Sets the XSLT filename (optional).

Parameters:
sXsltFilename The XSLT filename (optional).

void setXsltTfcFilename ( String  sXsltTfcFilename  ) 

Sets the XSLT TFC filename (optional).



A TFC file (TFORMer Command File) may be used to modify an existing FormLayout based on current input data. This feature will be improved in future versions. The current implementation should not be used.

Parameters:
sXsltTfcFilename The XSLT TFC filename (optional). null if not used.


© 2006-2009 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Wed Sep 2 16:01:27 2009 for TFORMer Runtime JAVA Developer Reference with doxygen 1.5.8