public class CDBChecker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IR_CORBALOC |
java.util.logging.Logger |
logger
This logger was introduced very late.
|
java.lang.String |
XMLPath |
java.lang.String |
XSDPath |
| Constructor and Description |
|---|
CDBChecker(java.util.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkArgs(java.lang.String[] args)
Checks the command line arguments given to the program and capture the given flags.
|
protected void |
checkIdlTypes()
This method check if the idl types on CDB are available
|
protected boolean |
checkImplLangMatch(java.io.File compFolder,
java.io.File contFolder)
This method finds files in "Components" and "Containers"
directories and sub-directories.
|
void |
cleanUp() |
protected void |
deleteTmp() |
void |
downloadSchemas(java.util.List<java.lang.String> reqSchemas)
Calls CDBChecker.getFile() to download files usually needed by XSD schema files.
|
protected java.util.Vector<java.lang.String> |
getFilenames(java.lang.String[] paths,
java.lang.String type)
This get the filenames of type 'type' from the given path.
|
Repository |
getIrRep() |
protected void |
getTargetNamespace(java.util.Vector<java.lang.String> xsdFilenames)
This method checks for the targetNamespace defined by the schema files and fills the CDBChecker.xsd_targetns with pairs {targetNamespace, XSD filename}
|
boolean |
isCheckIdl() |
boolean |
isErrorFlag() |
boolean |
isGlobalErrorFlag() |
boolean |
isVerbose() |
static void |
main(java.lang.String[] args)
Main function to run the cdbChecker tool.
|
protected static void |
printUsage()
Prints usage information.
|
void |
setErrorFlag(boolean errorFlag) |
void |
setGlobalErrorFlag(boolean globalErrorFlag) |
void |
setTargetNamespaceString(java.lang.String targetNamespace)
Sets the static variable CDBChecker.targetNamespace.
|
protected void |
validateFileEncoding(java.lang.String filename)
This method validates the file encoding of XSD and XML files.
|
protected void |
validateSchemas(java.util.Vector<java.lang.String> xsdFilenames)
This method validates the XSD files.
|
protected void |
XMLValidate(java.util.Vector<java.lang.String> filenames)
This method validates the XML files.
|
public final java.util.logging.Logger logger
public java.lang.String XMLPath
public java.lang.String XSDPath
public static final java.lang.String IR_CORBALOC
public boolean isErrorFlag()
public void setErrorFlag(boolean errorFlag)
public boolean isGlobalErrorFlag()
public void setGlobalErrorFlag(boolean globalErrorFlag)
public Repository getIrRep()
public boolean isVerbose()
public boolean isCheckIdl()
protected java.util.Vector<java.lang.String> getFilenames(java.lang.String[] paths,
java.lang.String type)
path - multiple paths separated by ":" to look for 'type' files.type - type of files to get.protected void validateFileEncoding(java.lang.String filename)
throws java.io.IOException
File - of an XML or XSD file to validate.java.io.IOExceptionprotected void validateSchemas(java.util.Vector<java.lang.String> xsdFilenames)
xsdFilenames - names with absolute path of the XSD file to validate.protected void checkIdlTypes()
protected void XMLValidate(java.util.Vector<java.lang.String> filenames)
filenames - name with absolute path of the XML file to validate.protected void getTargetNamespace(java.util.Vector<java.lang.String> xsdFilenames)
xsdFilenames - Vector with all the XSD filenames with absolute path.public void setTargetNamespaceString(java.lang.String targetNamespace)
targetNamespace - public void cleanUp()
public void downloadSchemas(java.util.List<java.lang.String> reqSchemas)
reqSchemas - Vector that contains the required schemas, to be downloaded.protected static void printUsage()
protected boolean checkArgs(java.lang.String[] args)
args - command line argumentsprotected void deleteTmp()
public static void main(java.lang.String[] args)
protected boolean checkImplLangMatch(java.io.File compFolder,
java.io.File contFolder)