test_class.file: app-version/src/test/java/com/kdgregory/pomutil/version/TestCommandLine.java
test_class.identifier: TestCommandLine
test_case.body: @Test
      public void testMissingFiles() throws Exception
      {
          CommandLine c = new CommandLine("--fromVersion", "1.0", "--toVersion", "2.0");
          assertFalse("command line is valid", c.isValid());
      }
test_case.class_method_signature: TestCommandLine.testMissingFiles()
test_case.full_signature: @Test public void testMissingFiles()
test_case.identifier: testMissingFiles
test_case.invocations: assertFalse isValid
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMissingFiles()
focal_class.declarator: optionDefs = new OptionDefinition[]
      {
          new OptionDefinition(
                  Options.GROUP_ID, "--groupId", 1,
                  "Only POMs/dependencies with this group ID will be updated (required)"),
          new OptionDefinition(
                  Options.ARTIFACT_ID, "--artifactId", 1,
                  "Only POMs/dependencies with this artifact ID will be updated (optional)"),
          new OptionDefinition(
                  Options.OLD_VERSION, "--fromVersion", 1,
                  "Only POMs/dependencies with this artifact ID will be updated (optional)"),
          new OptionDefinition(
                  Options.NEW_VERSION, "--toVersion", 1,
                  "The new version value (optional)"),
          new OptionDefinition(
                  Options.AUTO_VERSION, "--autoVersion", "", false,
                  "If enabled, automatically updates between release and development versions"),
          new OptionDefinition(
                  Options.UPDATE_PARENT, "--updateParent", "", false,
                  "If enabled, updates all parent references that match the selection criteria"),
          new OptionDefinition(
                  Options.UPDATE_DEPENDENCIES, "--updateDependencies", "", false,
                  "If enabled, updates all dependency references that match the selection criteria")
      }
focal_class.modifier: private static
focal_class.original_string: private static OptionDefinition[] optionDefs = new OptionDefinition[]
      {
          new OptionDefinition(
                  Options.GROUP_ID, "--groupId", 1,
                  "Only POMs/dependencies with this group ID will be updated (required)"),
          new OptionDefinition(
                  Options.ARTIFACT_ID, "--artifactId", 1,
                  "Only POMs/dependencies with this artifact ID will be updated (optional)"),
          new OptionDefinition(
                  Options.OLD_VERSION, "--fromVersion", 1,
                  "Only POMs/dependencies with this artifact ID will be updated (optional)"),
          new OptionDefinition(
                  Options.NEW_VERSION, "--toVersion", 1,
                  "The new version value (optional)"),
          new OptionDefinition(
                  Options.AUTO_VERSION, "--autoVersion", "", false,
                  "If enabled, automatically updates between release and development versions"),
          new OptionDefinition(
                  Options.UPDATE_PARENT, "--updateParent", "", false,
                  "If enabled, updates all parent references that match the selection criteria"),
          new OptionDefinition(
                  Options.UPDATE_DEPENDENCIES, "--updateDependencies", "", false,
                  "If enabled, updates all dependency references that match the selection criteria")
      };
focal_class.type: OptionDefinition[]
focal_class.var_name: optionDefs
focal_class.file: app-version/src/main/java/com/kdgregory/pomutil/version/CommandLine.java
focal_class.identifier: CommandLine
focal_class.class_method_signature: CommandLine.CommandLine(String... argv)
focal_class.full_signature: public  CommandLine(String... argv)
focal_class.identifier: CommandLine
focal_class.modifiers: public
focal_class.parameters: (String... argv)
focal_class.signature:  CommandLine(String... argv)
focal_class.class_method_signature: CommandLine.isValid()
focal_class.full_signature: public boolean isValid()
focal_class.identifier: isValid
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isValid()
focal_class.superclass: extends SimpleCLIParser
focal_method.body: public boolean isValid()
      {
          // must specify group ID
          List<String> groupId = getOptionValues(CommandLine.Options.GROUP_ID);
          if (CollectionUtil.isEmpty(groupId))
              return false;
  
          // must specify old and new version if not auto-versioning
          List<String> oldVersion = getOptionValues(CommandLine.Options.OLD_VERSION);
          List<String> newVersion = getOptionValues(CommandLine.Options.NEW_VERSION);
          boolean autoVersion = isOptionEnabled(CommandLine.Options.AUTO_VERSION);
          if ((! autoVersion) && (CollectionUtil.isEmpty(oldVersion) || CollectionUtil.isEmpty(newVersion)))
              return false;
  
          // must specify list of POMs/directories
          if (CollectionUtil.isEmpty(getParameters()))
              return false;
  
          return true;
      }
focal_method.class_method_signature: CommandLine.isValid()
focal_method.full_signature: public boolean isValid()
focal_method.identifier: isValid
focal_method.invocations: getOptionValues isEmpty getOptionValues getOptionValues isOptionEnabled isEmpty isEmpty isEmpty getParameters
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isValid()