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      addCommandHandler(new ListFunctionsSubcommand());
23      addCommandHandler(new EvaluateMetapathCommand());
24    }
25  
26    @Override
27    public String getName() {
28      return COMMAND;
29    }
30  
31    @Override
32    public String getDescription() {
33      return "Perform a Metapath operation.";
34    }
35  }