Package org.apache.rat.analysis.matchers
Class SPDXMatcherFactory
java.lang.Object
org.apache.rat.analysis.matchers.SPDXMatcherFactory
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
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates the spdx matcher.
-
Field Details
-
INSTANCE
The instance of this factory.
-
-
Method Details
-
create
Creates the spdx matcher.- Parameters:
spdxId
- the spdx name to match.- Returns:
- a spdx matcher.
-