001/*
002 * SPDX-FileCopyrightText: none
003 * SPDX-License-Identifier: CC0-1.0
004 */
005
006package gov.nist.secauto.oscal.lib.metapath.function.library;
007
008import gov.nist.secauto.metaschema.core.metapath.function.FunctionLibrary;
009
010public class OscalFunctionLibrary
011    extends FunctionLibrary {
012
013  public OscalFunctionLibrary() {
014    registerFunction(ResolveProfile.SIGNATURE_NO_ARG);
015    registerFunction(ResolveProfile.SIGNATURE_ONE_ARG);
016    registerFunction(HasOscalNamespace.SIGNATURE_ONE_ARG);
017    registerFunction(HasOscalNamespace.SIGNATURE_TWO_ARGS);
018
019    // for backwards compatibility with no function namespace
020    registerFunction(ResolveProfile.SIGNATURE_NO_ARG_METAPATH);
021    registerFunction(ResolveProfile.SIGNATURE_ONE_ARG_METAPATH);
022    registerFunction(HasOscalNamespace.SIGNATURE_ONE_ARG_METAPATH);
023    registerFunction(HasOscalNamespace.SIGNATURE_TWO_ARGS_METAPATH);
024  }
025}