Class SpdxBuilder
java.lang.Object
org.apache.rat.configuration.builders.AbstractBuilder
org.apache.rat.configuration.builders.SpdxBuilder
- All Implemented Interfaces:
IHeaderMatcher.Builder
A builder for SPDX matchers.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.rat.configuration.builders.AbstractBuilder
getId, hasIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
- SPDX license list
-
setId
Set the id for the matcher.- Overrides:
setIdin classAbstractBuilder- Parameters:
id- the id to use.- Returns:
- this builder.
-
build
Description copied from interface:IHeaderMatcher.BuilderBuild the IHeaderMatcher.Implementations of this interface should return a specific child class of IHeaderMatcher.
- Returns:
- a new IHeaderMatcher.
-
toString
- Overrides:
toStringin classAbstractBuilder
-