public boolean validOptions(String options[][], DocErrorReporter reporter) {
		boolean helpfile = false;
		boolean nohelp = false;
		boolean overview = false;
		boolean nooverview = false;
		boolean splitindex = false;
		boolean noindex = false;
		boolean hasSystemName = false;
		boolean hasBranchName = false;
		// check shared options
		if (!generalValidOptions(options, reporter)) {
			return false;
		}
		// otherwise look at our options
		for (int oi = 0; oi < options.length; ++oi) {
			String[] os = options[oi];
			String opt = os[0].toLowerCase();
			if (opt.equals("-helpfile")) {
				if (nohelp == true) {
					reporter.printError(getText("doclet.Option_conflict",
							"-helpfile", "-nohelp"));
					return false;
				}
				if (helpfile == true) {
					reporter.printError(getText("doclet.Option_reuse",
							"-helpfile"));
					return false;
				}
				File help = new File(os[1]);
				if (!help.exists()) {
					reporter.printError(getText("doclet.File_not_found", os[1]));
					return false;
				}
				helpfile = true;
			} else if (opt.equals("-nohelp")) {
				if (helpfile == true) {
					reporter.printError(getText("doclet.Option_conflict",
							"-nohelp", "-helpfile"));
					return false;
				}
				nohelp = true;
			} else if (opt.equals("-dubboconfigpath")) {
				File dubboConfig = new File(os[1]);
				if (!dubboConfig.exists()) {
					reporter.printError(getText("doclet.File_not_found", os[1]));
					return false;
				}
			} else if (opt.equals("-springcontextconfigpath")) {
				File springContextConfigPath = new File(os[1]);
				if (!springContextConfigPath.exists()) {
					reporter.printError(getText("doclet.File_not_found", os[1]));
					return false;
				}
			} else if (opt.equals("-xdocrootparent")) {
				try {
					new URL(os[1]);
				} catch (MalformedURLException e) {
					reporter.printError(getText("doclet.MalformedURL", os[1]));
					return false;
				}
			} else if (opt.equals("-overview")) {
				if (nooverview == true) {
					reporter.printError(getText("doclet.Option_conflict",
							"-overview", "-nooverview"));
					return false;
				}
				if (overview == true) {
					reporter.printError(getText("doclet.Option_reuse",
							"-overview"));
					return false;
				}
				overview = true;
			} else if (opt.equals("-nooverview")) {
				if (overview == true) {
					reporter.printError(getText("doclet.Option_conflict",
							"-nooverview", "-overview"));
					return false;
				}
				nooverview = true;
			} else if (opt.equals("-splitindex")) {
				if (noindex == true) {
					reporter.printError(getText("doclet.Option_conflict",
							"-splitindex", "-noindex"));
					return false;
				}
				splitindex = true;
			} else if (opt.equals("-noindex")) {
				if (splitindex == true) {
					reporter.printError(getText("doclet.Option_conflict",
							"-noindex", "-splitindex"));
					return false;
				}
				noindex = true;
			} else if (opt.equals("-systemname")) {
				hasSystemName = true;
			} else if (opt.equals("-branchname")) {
				hasBranchName = true;
			} else if (opt.equals("-codeurl")) {
				hasBranchName = true;
			}
		}
		if (!hasBranchName) {
			reporter.printError("No branchName specified!");
			return false;
		}
		if (!hasSystemName) {
			reporter.printError("No systemName specified!");
			return false;
		}
		return true;
	}
public boolean validOptions ( String options [ ] [ ] , DocErrorReporter reporter ) { boolean helpfile = false ; boolean nohelp = false ; boolean overview = false ; boolean nooverview = false ; boolean splitindex = false ; boolean noindex = false ; boolean hasSystemName = false ; boolean hasBranchName = false ; if ( ! generalValidOptions ( options , reporter ) ) { return false ; } for ( int oi = 0 ; oi < options . length ; ++ oi ) { String [ ] os = options [ oi ] ; String opt = os [ 0 ] . toLowerCase ( ) ; if ( opt . equals ( "-helpfile" ) ) { if ( nohelp == true ) { reporter . printError ( getText ( "doclet.Option_conflict" , "-helpfile" , "-nohelp" ) ) ; return false ; } if ( helpfile == true ) { reporter . printError ( getText ( "doclet.Option_reuse" , "-helpfile" ) ) ; return false ; } File help = new File ( os [ 1 ] ) ; if ( ! help . exists ( ) ) { reporter . printError ( getText ( "doclet.File_not_found" , os [ 1 ] ) ) ; return false ; } helpfile = true ; } else if ( opt . equals ( "-nohelp" ) ) { if ( helpfile == true ) { reporter . printError ( getText ( "doclet.Option_conflict" , "-nohelp" , "-helpfile" ) ) ; return false ; } nohelp = true ; } else if ( opt . equals ( "-dubboconfigpath" ) ) { File dubboConfig = new File ( os [ 1 ] ) ; if ( ! dubboConfig . exists ( ) ) { reporter . printError ( getText ( "doclet.File_not_found" , os [ 1 ] ) ) ; return false ; } } else if ( opt . equals ( "-springcontextconfigpath" ) ) { File springContextConfigPath = new File ( os [ 1 ] ) ; if ( ! springContextConfigPath . exists ( ) ) { reporter . printError ( getText ( "doclet.File_not_found" , os [ 1 ] ) ) ; return false ; } } else if ( opt . equals ( "-xdocrootparent" ) ) { try { new URL ( os [ 1 ] ) ; } catch ( MalformedURLException e ) { reporter . printError ( getText ( "doclet.MalformedURL" , os [ 1 ] ) ) ; return false ; } } else if ( opt . equals ( "-overview" ) ) { if ( nooverview == true ) { reporter . printError ( getText ( "doclet.Option_conflict" , "-overview" , "-nooverview" ) ) ; return false ; } if ( overview == true ) { reporter . printError ( getText ( "doclet.Option_reuse" , "-overview" ) ) ; return false ; } overview = true ; } else if ( opt . equals ( "-nooverview" ) ) { if ( overview == true ) { reporter . printError ( getText ( "doclet.Option_conflict" , "-nooverview" , "-overview" ) ) ; return false ; } nooverview = true ; } else if ( opt . equals ( "-splitindex" ) ) { if ( noindex == true ) { reporter . printError ( getText ( "doclet.Option_conflict" , "-splitindex" , "-noindex" ) ) ; return false ; } splitindex = true ; } else if ( opt . equals ( "-noindex" ) ) { if ( splitindex == true ) { reporter . printError ( getText ( "doclet.Option_conflict" , "-noindex" , "-splitindex" ) ) ; return false ; } noindex = true ; } else if ( opt . equals ( "-systemname" ) ) { hasSystemName = true ; } else if ( opt . equals ( "-branchname" ) ) { hasBranchName = true ; } else if ( opt . equals ( "-codeurl" ) ) { hasBranchName = true ; } } if ( ! hasBranchName ) { reporter . printError ( "No branchName specified!" ) ; return false ; } if ( ! hasSystemName ) { reporter . printError ( "No systemName specified!" ) ; return false ; } return true ; }
{@inheritDoc}