1   /*
2    * SPDX-FileCopyrightText: none
3    * SPDX-License-Identifier: CC0-1.0
4    */
5   
6   package gov.nist.secauto.oscal.lib.metapath.function.library;
7   
8   import gov.nist.secauto.metaschema.core.metapath.function.FunctionLibrary;
9   
10  public class OscalFunctionLibrary
11      extends FunctionLibrary {
12  
13    public OscalFunctionLibrary() {
14      registerFunction(ResolveProfile.SIGNATURE_NO_ARG);
15      registerFunction(ResolveProfile.SIGNATURE_ONE_ARG);
16      registerFunction(HasOscalNamespace.SIGNATURE_ONE_ARG);
17      registerFunction(HasOscalNamespace.SIGNATURE_TWO_ARGS);
18  
19      // for backwards compatibility with no function namespace
20      registerFunction(ResolveProfile.SIGNATURE_NO_ARG_METAPATH);
21      registerFunction(ResolveProfile.SIGNATURE_ONE_ARG_METAPATH);
22      registerFunction(HasOscalNamespace.SIGNATURE_ONE_ARG_METAPATH);
23      registerFunction(HasOscalNamespace.SIGNATURE_TWO_ARGS_METAPATH);
24    }
25  }