Class SPDXMatcherFactory

java.lang.Object
org.apache.rat.analysis.matchers.SPDXMatcherFactory

public class SPDXMatcherFactory extends Object
Defines a factory to produce matchers for an SPDX tag. SPDX tag is of the format SPDX-License-Identifier: short-name where short-name matches the regex pattern [A-Za-z0-9\.\-]+

SPDX identifiers are specified by the Software Package Data Exchange(R) also known as SPDX(R) project from the Linux foundation.

See Also:
List of Ids at spdx.dev
  • Field Details

    • INSTANCE

      public static final SPDXMatcherFactory INSTANCE
      The instance of this factory.
  • Method Details

    • create

      public IHeaderMatcher create(String spdxId)
      Creates the spdx matcher.
      Parameters:
      spdxId - the spdx name to match.
      Returns:
      a spdx matcher.