Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cl::utfsm::cdbChecker::CDBChecker Class Reference

List of all members.

Public Member Functions

void cleanUp ()
void downloadSchemas (Vector reqSchemas)

Static Public Member Functions

void setTargetNamespaceString (String targetNamespace)
void main (String[] args)

Public Attributes

String XMLPath = null
String XSDPath = null

Static Public Attributes

final String IR_CORBALOC = "ACS.repository"
Vector reqSchemas
boolean errorFlag = false
boolean globalErrorFlag = false
Repository rep = null
boolean verbose = false
boolean checkidl = false

Protected Member Functions

Vector getFilenames (String paths[], String type)
void XSDValidate (Vector filename)
void checkIdlTypes ()
void XMLValidate (Vector filename)
void getTargetNamespace (Vector XSDFilenames)
boolean checkArgs (String[] args)
void deleteTmp ()

Static Protected Member Functions

void printUsage ()

Private Member Functions

void getFile (String url)
boolean configLoader ()

Private Attributes

File tmpDir
SAXParser SP
Properties props = new Properties()
Hashtable xsd_targetns
String schemaFolder
boolean network = false
boolean recursive = true

Static Private Attributes

String targetNamespace

Member Function Documentation

boolean cl::utfsm::cdbChecker::CDBChecker::checkArgs String[]  args  )  [inline, protected]
 

Checks the command line arguments given to the program and capture the given flags.

Parameters:
args command line arguments
Returns:
True if arguments are OK, false otherwise

void cl::utfsm::cdbChecker::CDBChecker::checkIdlTypes  )  [inline, protected]
 

This method check if the idl types on CDB are available

void cl::utfsm::cdbChecker::CDBChecker::cleanUp  )  [inline]
 

boolean cl::utfsm::cdbChecker::CDBChecker::configLoader  )  [inline, private]
 

void cl::utfsm::cdbChecker::CDBChecker::deleteTmp  )  [inline, protected]
 

void cl::utfsm::cdbChecker::CDBChecker::downloadSchemas Vector  reqSchemas  )  [inline]
 

Calls CDBChecker.getFile() to download files usually needed by XSD schema files.

Parameters:
reqSchemas Vector that contains the required schemas, to be downloaded.

void cl::utfsm::cdbChecker::CDBChecker::getFile String  url  )  [inline, private]
 

Downloads the file from the given URL. Creates the temporary directory directory if it doesn't already exists. Only downloads the file if it doesn't already exists.

Parameters:
url where to download the file from.

Vector cl::utfsm::cdbChecker::CDBChecker::getFilenames String  paths[],
String  type
[inline, protected]
 

This get the filenames of type 'type' from the given path. There could be several paths separated by ":".

Parameters:
path multiple paths separated by ":" to look for 'type' files.
type type of files to get.
Returns:
a vector of strings with the filenames of type 'type' with absolute path. An empty vector is returned if paths is empty.

void cl::utfsm::cdbChecker::CDBChecker::getTargetNamespace Vector  XSDFilenames  )  [inline, protected]
 

This method checks for the targetNamespace defined by the schema files and fills the CDBChecker.xsd_targetns with pairs {targetNamespace, XSD filename}

Parameters:
XSDFilenames Vector with all the XSD filenames with absolute path.

void cl::utfsm::cdbChecker::CDBChecker::main String[]  args  )  [inline, static]
 

Main function to run the cdbChecker tool System.exit(0/1) is used to return success if everything if fine or failure int case errors were encountered

void cl::utfsm::cdbChecker::CDBChecker::printUsage  )  [inline, static, protected]
 

Prints usage information.

void cl::utfsm::cdbChecker::CDBChecker::setTargetNamespaceString String  targetNamespace  )  [inline, static]
 

Sets the static variable CDBChecker.targetNamespace

Parameters:
targetNamespace 

void cl::utfsm::cdbChecker::CDBChecker::XMLValidate Vector  filename  )  [inline, protected]
 

This method validates the XML files.

Parameters:
filename name with absolute path of the XML file to validate.

void cl::utfsm::cdbChecker::CDBChecker::XSDValidate Vector  filename  )  [inline, protected]
 

This method validates the XSD files.

Parameters:
filename name with absolute path of the XSD file to validate.


Member Data Documentation

boolean cl::utfsm::cdbChecker::CDBChecker::checkidl = false [static]
 

boolean cl::utfsm::cdbChecker::CDBChecker::errorFlag = false [static]
 

This errorFlag is used to signal from the parser callbacks that something failed int the validation of one specific file. It shall be reset before starting the validation of each file.

boolean cl::utfsm::cdbChecker::CDBChecker::globalErrorFlag = false [static]
 

This globalErrorFlag is used to keep memory of any failure. It is never reset and it is set to true whenever there is a failure. If at the end of all validations it is true, it means that something failed and therefore we have to return with a failure error code.

final String cl::utfsm::cdbChecker::CDBChecker::IR_CORBALOC = "ACS.repository" [static]
 

boolean cl::utfsm::cdbChecker::CDBChecker::network = false [private]
 

Properties cl::utfsm::cdbChecker::CDBChecker::props = new Properties() [private]
 

boolean cl::utfsm::cdbChecker::CDBChecker::recursive = true [private]
 

Repository cl::utfsm::cdbChecker::CDBChecker::rep = null [static]
 

Vector cl::utfsm::cdbChecker::CDBChecker::reqSchemas [static]
 

String cl::utfsm::cdbChecker::CDBChecker::schemaFolder [private]
 

SAXParser cl::utfsm::cdbChecker::CDBChecker::SP [private]
 

String cl::utfsm::cdbChecker::CDBChecker::targetNamespace [static, private]
 

File cl::utfsm::cdbChecker::CDBChecker::tmpDir [private]
 

boolean cl::utfsm::cdbChecker::CDBChecker::verbose = false [static]
 

String cl::utfsm::cdbChecker::CDBChecker::XMLPath = null
 

Hashtable cl::utfsm::cdbChecker::CDBChecker::xsd_targetns [private]
 

String cl::utfsm::cdbChecker::CDBChecker::XSDPath = null
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:59 2009 for ACS Java API by doxygen 1.3.8