protected QualifiedItem[] parseQualifiedItems(final String[] arguments,final VersionSpec defaultVersion,final boolean allowVersionRange,final int startIndex){
  Check.notNull(arguments,"arguments");
  final List<QualifiedItem> items=new ArrayList<QualifiedItem>(arguments.length);
  for (int i=startIndex; i < arguments.length; i++) {
    final String arg=arguments[i];
    if (!StringUtil.isNullOrEmpty(arg)) {
      try {
        final QualifiedItem qi=new QualifiedItem(arg,VersionControlConstants.AUTHENTICATED_USER,defaultVersion,allowVersionRange);
        items.add(qi);
      }
 catch (      final VersionSpecParseException e) {
        reportWrongArgument(arg,e);
      }
catch (      final LabelSpecParseException e) {
        reportWrongArgument(arg,e);
      }
    }
  }
  return items.toArray(new QualifiedItem[items.size()]);
}

protected QualifiedItem [ ] parseQualifiedItems ( final String [ ] arguments , final VersionSpec defaultVersion , final boolean allowVersionRange , final int startIndex ) { Check . notNull ( arguments , "arguments" ) ; final List < QualifiedItem > items = new ArrayList < QualifiedItem > ( arguments . length ) ; for ( int i = startIndex ; i < arguments . length ; i ++ ) { final String arg = arguments [ i ] ; if ( ! StringUtil . isNullOrEmpty ( arg ) ) { try { final QualifiedItem qi = new QualifiedItem ( arg , VersionControlConstants . AUTHENTICATED_USER , defaultVersion , allowVersionRange ) ; items . add ( qi ) ; } catch ( final VersionSpecParseException e ) { reportWrongArgument ( arg , e ) ; } catch ( final LabelSpecParseException e ) { reportWrongArgument ( arg , e ) ; } } } return items . toArray ( new QualifiedItem [ items . size ( ) ] ) ; }
parses qualified items ( item specs with optional versions , version ranges , or deletion specifiers ) from the given strings .
