1   /*
2    * SPDX-FileCopyrightText: none
3    * SPDX-License-Identifier: CC0-1.0
4    */
5   
6   package gov.nist.secauto.metaschema.cli.commands.metapath;
7   
8   import gov.nist.secauto.metaschema.cli.processor.command.AbstractParentCommand;
9   
10  /**
11   * This sub-command implementation contains all command that relate to Metapath
12   * execution.
13   */
14  public class MetapathCommand
15      extends AbstractParentCommand {
16    private static final String COMMAND = "metapath";
17  
18    /**
19     * Constructor for a new Metapath command.
20     */
21    public MetapathCommand() {
22      super(true);
23      addCommandHandler(new ListFunctionsSubcommand());
24      addCommandHandler(new EvaluateMetapathCommand());
25    }
26  
27    @Override
28    public String getName() {
29      return COMMAND;
30    }
31  
32    @Override
33    public String getDescription() {
34      return "Perform a Metapath operation.";
35    }
36  }