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 |
|
Checks the command line arguments given to the program and capture the given flags.
|
|
This method check if the idl types on CDB are available |
|
|
|
|
|
|
|
Calls CDBChecker.getFile() to download files usually needed by XSD schema files.
|
|
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.
|
|
This get the filenames of type 'type' from the given path. There could be several paths separated by ":".
|
|
This method checks for the targetNamespace defined by the schema files and fills the CDBChecker.xsd_targetns with pairs {targetNamespace, XSD filename}
|
|
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 |
|
Prints usage information. |
|
Sets the static variable CDBChecker.targetNamespace
|
|
This method validates the XML files.
|
|
This method validates the XSD files.
|
|
|
|
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. |
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|