Class SpdxBuilder
java.lang.Object
org.apache.rat.configuration.builders.AbstractBuilder
org.apache.rat.configuration.builders.SpdxBuilder
- All Implemented Interfaces:
IHeaderMatcher.Builder
- Direct Known Subclasses:
Spdx
A builder for SPDX matchers.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.rat.configuration.builders.AbstractBuilder
getId, hasId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.rat.analysis.IHeaderMatcher.Builder
getDescription
-
Constructor Details
-
SpdxBuilder
public SpdxBuilder()
-
-
Method Details
-
setName
Sets the name for the SPDX matcher. This is the same as the identifier in the SPDX license list.- Parameters:
name
- The text that follows the colon ':' in the SPDX tag.- Returns:
- this builder.
- See Also:
-
setId
Set the id for the matcher.- Overrides:
setId
in classAbstractBuilder
- Parameters:
id
- the id to use.- Returns:
- this builder.
-
build
Description copied from interface:IHeaderMatcher.Builder
Build the IHeaderMatcher.Implementations of this interface should return a specific child class of IHeaderMatcher.
- Returns:
- a new IHeaderMatcher.
-
toString
- Overrides:
toString
in classAbstractBuilder
-