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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
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.
-