public static boolean isCatalogVersionValid ( String catalogVersionStr ) { // Do we have a version string? if ( catalogVersionStr == null || catalogVersionStr . isEmpty ( ) ) { return false ; } //Check that it is a properly formed version string Object [ ] catalogVersion = MiscUtils . parseVersionString ( catalogVersionStr ) ; if ( catalogVersion == null ) { return false ; } // It's valid. return true ; }
Check if a catalog version string is valid .