001/* 002 * SPDX-FileCopyrightText: none 003 * SPDX-License-Identifier: CC0-1.0 004 */ 005 006package gov.nist.secauto.metaschema.cli.commands.metapath; 007 008import gov.nist.secauto.metaschema.cli.processor.command.AbstractParentCommand; 009 010/** 011 * This sub-command implementation contains all command that relate to Metapath 012 * execution. 013 */ 014public class MetapathCommand 015 extends AbstractParentCommand { 016 private static final String COMMAND = "metapath"; 017 018 /** 019 * Constructor for a new Metapath command. 020 */ 021 public MetapathCommand() { 022 super(true); 023 addCommandHandler(new ListFunctionsSubcommand()); 024 addCommandHandler(new EvaluateMetapathCommand()); 025 } 026 027 @Override 028 public String getName() { 029 return COMMAND; 030 } 031 032 @Override 033 public String getDescription() { 034 return "Perform a Metapath operation."; 035 } 036}