public static boolean isValidTime(String value){
  String regex="\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?(Z|(\\+|-)\\d\\d:\\d\\d)?";
  if (value.matches(regex)) {
    return isValidCalendarValue(value);
  }
 else {
    return false;
  }
}

public static boolean isValidTime ( String value ) { String regex = "\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?(Z|(\\+|-)\\d\\d:\\d\\d)?" ; if ( value . matches ( regex ) ) { return isValidCalendarValue ( value ) ; } else { return false ; } }
determines if the supplied value is a valid xsd : time string .
