Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes

XalanFileUtility Class Reference

#include <XalanFileUtility.hpp>

Collaboration diagram for XalanFileUtility:
Collaboration graph
[legend]

List of all members.

Classes

Public Types

Public Member Functions

Public Attributes

Static Public Attributes


Detailed Description

Definition at line 62 of file XalanFileUtility.hpp.


Member Typedef Documentation

Definition at line 69 of file XalanFileUtility.hpp.

Definition at line 68 of file XalanFileUtility.hpp.


Constructor & Destructor Documentation

XalanFileUtility::XalanFileUtility ( MemoryManager &  theManager  ) 

Simple constructor, does not perform initialization.

XalanFileUtility::~XalanFileUtility (  ) 

Member Function Documentation

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 char *  actual,
const char *  expected,
const char *  msg,
XalanXMLFileReporter logfile,
const XalanDOMString outputFile,
const XalanDOMString goldFile,
MemoryManager &  ,
bool  containsOnly = false 
) [inline]

Definition at line 259 of file XalanFileUtility.hpp.

void XalanFileUtility::checkAPIResults ( const char *  actual,
const char *  expected,
const char *  msg,
XalanXMLFileReporter logfile,
const XalanDOMString outputFile,
const XalanDOMString goldFile,
bool  containsOnly = false 
) [inline]

Definition at line 280 of file XalanFileUtility.hpp.

void XalanFileUtility::checkAPIResults ( const XalanDOMString actual,
const XalanDOMString expected,
const char *  msg,
XalanXMLFileReporter logfile,
const XalanDOMString outputFile,
const XalanDOMString goldFile,
bool  containsOnly = false 
)
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.

Returns:
Void.
void XalanFileUtility::checkResults ( const XalanDOMString outputFile,
const XalanDOMString goldFile,
XalanXMLFileReporter logfile 
)
bool XalanFileUtility::compareSerializedResults ( const XalanDOMString transformResult,
const XalanDOMString goldInputSource 
)
bool XalanFileUtility::diffAttr ( const XalanNode gAttr,
const XalanNode dAttr 
)

Utility methods used to diff two attribute nodes.

Returns:
boolean.
bool XalanFileUtility::diffElement ( const XalanNode gold,
const XalanNode doc 
)

Utility methods used to diff two Element nodes.

Returns:
boolean.
bool XalanFileUtility::diffElement2 ( const XalanNode gold,
const XalanNode doc 
)

Utility methods used to diff two Element nodes.

Returns:
boolean.
bool XalanFileUtility::diffNode ( const XalanNode gold,
const XalanNode doc 
)

Utility methods used to diff two nodes.

Returns:
true if the nodes are equal, and false if not.
bool XalanFileUtility::diffNode ( const XalanNode gold,
const XalanNode doc 
)

Utility methods used to diff two nodes.

Returns:
true if the nodes are equal, and false if not.
bool XalanFileUtility::domCompare ( const XalanNode gold,
const XalanNode doc 
)

Utility methods used to perform a DOM Compare.

Returns:
boolean
bool XalanFileUtility::domCompare ( const XalanDocument gold,
const XalanDocument doc 
)

Utility methods used to perform a DOM Compare.

Returns:
boolean
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.

Returns:
a XalanDOMString.
XalanDOMString& XalanFileUtility::generateUniqRunid ( XalanDOMString theResult  ) 

Utility method used to generate UniqRunid.

Returns:
a XalanDOMString.
FileNameVectorType& XalanFileUtility::getDirectoryNames ( const XalanDOMString rootDirectory,
FileNameVectorType theFiles 
)

Utility method used to get subdirectories from a specific directory.

Returns:
a vector containing directory files.
XalanDOMString& XalanFileUtility::getDrive ( XalanDOMString theResult  ) 

Utility method used to get test files from a specific directory.

Returns:
a vector containing test files.
int XalanFileUtility::getFailureCount (  )  const [inline]

Definition at line 159 of file XalanFileUtility.hpp.

const MemoryManager& XalanFileUtility::getMemoryManager (  )  const [inline]

Definition at line 410 of file XalanFileUtility.hpp.

MemoryManager& XalanFileUtility::getMemoryManager (  )  [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 
)
bool XalanFileUtility::getVerbose (  )  const [inline]

Definition at line 147 of file XalanFileUtility.hpp.

XalanDOMString& XalanFileUtility::getXercesVersion ( XalanDOMString theResult  ) 

Utility methods used to get Xerces Version number.

Returns:
a XalanDOMString.
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.

Returns:
a pointer to a FormatterListener.
XalanDOMString& XalanFileUtility::getXSLFileName ( const XalanDOMString theXMLFileName,
XalanDOMString theResult 
)

Utility method used to get XSL file based on XML file.

Returns:
a XalanDOMString.
void XalanFileUtility::reportPassFail ( XalanXMLFileReporter logfile  ) 

Utility methods used to report Pass/Fail numbers.

Returns:
void.
void XalanFileUtility::reportPassFail ( XalanXMLFileReporter logfile,
const XalanDOMString runid 
)
void XalanFileUtility::setVerbose ( bool  flag  )  [inline]

Definition at line 153 of file XalanFileUtility.hpp.


Member Data Documentation

const XalanDOMChar XalanFileUtility::s_pathSep[] [static]

Definition at line 407 of file XalanFileUtility.hpp.

const XalanDOMChar XalanFileUtility::s_xmlSuffix[] [static]

Definition at line 405 of file XalanFileUtility.hpp.


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo