#include <XalanFileUtility.hpp>
Classes | |
struct | cmdParams |
struct | reportStruct |
Public Types | |
typedef XalanVector< XalanDOMString > | FileNameVectorType |
typedef XalanVector< char > | CharVectorType |
Public Member Functions | |
XalanFileUtility (MemoryManager &theManager) | |
Simple constructor, does not perform initialization. More... | |
~XalanFileUtility () | |
bool | getVerbose () const |
void | setVerbose (bool flag) |
int | getFailureCount () const |
XalanDOMString & | getDrive (XalanDOMString &theResult) |
Utility method used to get test files from a specific directory. More... | |
bool | getParams (int argc, char *argv[], const char *outDir, bool fsetGold=true) |
FileNameVectorType & | getTestFileNames (const XalanDOMString &baseDir, const XalanDOMString &relDir, bool useDirPrefix, FileNameVectorType &theFiles) |
FileNameVectorType & | getDirectoryNames (const XalanDOMString &rootDirectory, FileNameVectorType &theFiles) |
Utility method used to get subdirectories from a specific directory. More... | |
void | checkAndCreateDir (const XalanDOMString &directory) |
Utility method used to create default directories when neccessary. More... | |
bool | checkDir (const XalanDOMString &directory) |
Utility method determines if directory exists. More... | |
XalanDOMString & | getXSLFileName (const XalanDOMString &theXMLFileName, XalanDOMString &theResult) |
Utility method used to get XSL file based on XML file. More... | |
XalanDOMString & | generateFileName (const XalanDOMString &theXMLFileName, const char *suffix, XalanDOMString &theResult, bool *status=0) |
Utility method used to get OUT file based on XML file. More... | |
XalanDOMString & | generateUniqRunid (XalanDOMString &theResult) |
Utility method used to generate UniqRunid. More... | |
XalanDOMString & | getXercesVersion (XalanDOMString &theResult) |
Utility methods used to get Xerces Version number. More... | |
void | checkResults (const XalanDOMString &outputFile, const XalanDOMString &goldFile, XalanXMLFileReporter &logfile) |
void | checkAPIResults (const XalanDOMString &actual, const XalanDOMString &expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, bool containsOnly=false) |
void | checkAPIResults (const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, MemoryManager &, bool containsOnly=false) |
void | checkAPIResults (const char *actual, const char *expected, const char *msg, XalanXMLFileReporter &logfile, const XalanDOMString &outputFile, const XalanDOMString &goldFile, bool containsOnly=false) |
void | checkDOMResults (const XalanDOMString &theOutputFile, const XalanCompiledStylesheet *compiledSS, const XalanSourceTreeDocument *dom, const XSLTInputSource &goldInputSource, XalanXMLFileReporter &logfile) |
Utility method used to compare the results. More... | |
bool | compareSerializedResults (const XalanDOMString &transformResult, const XalanDOMString &goldInputSource) |
FormatterListener * | getXMLFormatter (PrintWriter &resultWriter, int indentAmount, const XalanDOMString &mimeEncoding, const StylesheetRoot *stylesheet) |
Utility method used to create a FormatterToXML FormatterListener. More... | |
bool | fileCompare (const char *goldFile, const char *outputFile) |
bool | domCompare (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to perform a DOM Compare. More... | |
bool | domCompare (const XalanDocument &gold, const XalanDocument &doc) |
Utility methods used to perform a DOM Compare. More... | |
bool | diffElement (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to diff two Element nodes. More... | |
bool | diffNode (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to diff two nodes. More... | |
bool | diffNode (const XalanNode *gold, const XalanNode *doc) |
Utility methods used to diff two nodes. More... | |
bool | diffElement2 (const XalanNode &gold, const XalanNode &doc) |
Utility methods used to diff two Element nodes. More... | |
bool | diffAttr (const XalanNode *gAttr, const XalanNode *dAttr) |
Utility methods used to diff two attribute nodes. More... | |
void | reportPassFail (XalanXMLFileReporter &logfile) |
Utility methods used to report Pass/Fail numbers. More... | |
void | reportPassFail (XalanXMLFileReporter &logfile, const XalanDOMString &runid) |
void | analyzeResults (XalanTransformer &xalan, const XalanDOMString &resultsFile) |
const MemoryManager & | getMemoryManager () const |
MemoryManager & | getMemoryManager () |
Public Attributes | |
struct XALAN_HARNESS_EXPORT XalanFileUtility::reportStruct | data |
struct XALAN_HARNESS_EXPORT XalanFileUtility::cmdParams | args |
Static Public Attributes | |
static const XalanDOMChar | s_xmlSuffix [] |
static const XalanDOMChar | s_pathSep [] |
Definition at line 62 of file XalanFileUtility.hpp.
typedef XalanVector<char> XalanFileUtility::CharVectorType |
Definition at line 69 of file XalanFileUtility.hpp.
Definition at line 68 of file XalanFileUtility.hpp.
XalanFileUtility::XalanFileUtility | ( | MemoryManager & | theManager | ) |
Simple constructor, does not perform initialization.
XalanFileUtility::~XalanFileUtility | ( | ) |
void XalanFileUtility::analyzeResults | ( | XalanTransformer & | xalan, |
const XalanDOMString & | resultsFile | ||
) |
void XalanFileUtility::checkAndCreateDir | ( | const XalanDOMString & | directory | ) |
Utility method used to create default directories when neccessary.
void XalanFileUtility::checkAPIResults | ( | const XalanDOMString & | actual, |
const XalanDOMString & | expected, | ||
const char * | msg, | ||
XalanXMLFileReporter & | logfile, | ||
const XalanDOMString & | outputFile, | ||
const XalanDOMString & | goldFile, | ||
bool | containsOnly = false |
||
) |
|
inline |
Definition at line 259 of file XalanFileUtility.hpp.
|
inline |
Definition at line 280 of file XalanFileUtility.hpp.
bool XalanFileUtility::checkDir | ( | const XalanDOMString & | directory | ) |
Utility method determines if directory exists.
void XalanFileUtility::checkDOMResults | ( | const XalanDOMString & | theOutputFile, |
const XalanCompiledStylesheet * | compiledSS, | ||
const XalanSourceTreeDocument * | dom, | ||
const XSLTInputSource & | goldInputSource, | ||
XalanXMLFileReporter & | logfile | ||
) |
Utility method used to compare the results.
It inturn call domCompare.
void XalanFileUtility::checkResults | ( | const XalanDOMString & | outputFile, |
const XalanDOMString & | goldFile, | ||
XalanXMLFileReporter & | logfile | ||
) |
bool XalanFileUtility::compareSerializedResults | ( | const XalanDOMString & | transformResult, |
const XalanDOMString & | goldInputSource | ||
) |
Utility methods used to diff two attribute nodes.
Utility methods used to diff two Element nodes.
Utility methods used to diff two Element nodes.
Utility methods used to diff two nodes.
Utility methods used to diff two nodes.
Utility methods used to perform a DOM Compare.
bool XalanFileUtility::domCompare | ( | const XalanDocument & | gold, |
const XalanDocument & | doc | ||
) |
Utility methods used to perform a DOM Compare.
bool XalanFileUtility::fileCompare | ( | const char * | goldFile, |
const char * | outputFile | ||
) |
XalanDOMString& XalanFileUtility::generateFileName | ( | const XalanDOMString & | theXMLFileName, |
const char * | suffix, | ||
XalanDOMString & | theResult, | ||
bool * | status = 0 |
||
) |
Utility method used to get OUT file based on XML file.
XalanDOMString& XalanFileUtility::generateUniqRunid | ( | XalanDOMString & | theResult | ) |
Utility method used to generate UniqRunid.
FileNameVectorType& XalanFileUtility::getDirectoryNames | ( | const XalanDOMString & | rootDirectory, |
FileNameVectorType & | theFiles | ||
) |
Utility method used to get subdirectories from a specific directory.
XalanDOMString& XalanFileUtility::getDrive | ( | XalanDOMString & | theResult | ) |
Utility method used to get test files from a specific directory.
|
inline |
Definition at line 159 of file XalanFileUtility.hpp.
|
inline |
Definition at line 410 of file XalanFileUtility.hpp.
|
inline |
Definition at line 416 of file XalanFileUtility.hpp.
bool XalanFileUtility::getParams | ( | int | argc, |
char * | argv[], | ||
const char * | outDir, | ||
bool | fsetGold = true |
||
) |
FileNameVectorType& XalanFileUtility::getTestFileNames | ( | const XalanDOMString & | baseDir, |
const XalanDOMString & | relDir, | ||
bool | useDirPrefix, | ||
FileNameVectorType & | theFiles | ||
) |
|
inline |
Definition at line 147 of file XalanFileUtility.hpp.
XalanDOMString& XalanFileUtility::getXercesVersion | ( | XalanDOMString & | theResult | ) |
Utility methods used to get Xerces Version number.
FormatterListener* XalanFileUtility::getXMLFormatter | ( | PrintWriter & | resultWriter, |
int | indentAmount, | ||
const XalanDOMString & | mimeEncoding, | ||
const StylesheetRoot * | stylesheet | ||
) |
Utility method used to create a FormatterToXML FormatterListener.
This is required to DOM comparisions.
XalanDOMString& XalanFileUtility::getXSLFileName | ( | const XalanDOMString & | theXMLFileName, |
XalanDOMString & | theResult | ||
) |
Utility method used to get XSL file based on XML file.
void XalanFileUtility::reportPassFail | ( | XalanXMLFileReporter & | logfile | ) |
Utility methods used to report Pass/Fail numbers.
void XalanFileUtility::reportPassFail | ( | XalanXMLFileReporter & | logfile, |
const XalanDOMString & | runid | ||
) |
|
inline |
Definition at line 153 of file XalanFileUtility.hpp.
struct XALAN_HARNESS_EXPORT XalanFileUtility::cmdParams XalanFileUtility::args |
struct XALAN_HARNESS_EXPORT XalanFileUtility::reportStruct XalanFileUtility::data |
|
static |
Definition at line 407 of file XalanFileUtility.hpp.
|
static |
Definition at line 405 of file XalanFileUtility.hpp.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|