Package ch.so.agi.hop.doclint.config
Record Class DocLintConfig
java.lang.Object
java.lang.Record
ch.so.agi.hop.doclint.config.DocLintConfig
public record DocLintConfig(Path repositoryRoot, Path docsDirectory, Path examplesDirectory, boolean requireKeywords, boolean requireDocumentation, boolean requireExamples)
extends Record
Resolved DocLint settings for one Maven project.
Directories default to the top-level Maven project because docs/ and examples/
live next to the aggregator POM, not inside a plugin module.
-
Constructor Summary
ConstructorsConstructorDescriptionDocLintConfig(Path repositoryRoot, Path docsDirectory, Path examplesDirectory, boolean requireKeywords, boolean requireDocumentation, boolean requireExamples) Creates an instance of aDocLintConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionRenders a path relative to the repository root when possible, for stable messages.Returns the value of thedocsDirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexamplesDirectoryrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therepositoryRootrecord component.booleanReturns the value of therequireDocumentationrecord component.booleanReturns the value of therequireExamplesrecord component.booleanReturns the value of therequireKeywordsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocLintConfig
public DocLintConfig(Path repositoryRoot, Path docsDirectory, Path examplesDirectory, boolean requireKeywords, boolean requireDocumentation, boolean requireExamples) Creates an instance of aDocLintConfigrecord class.- Parameters:
repositoryRoot- the value for therepositoryRootrecord componentdocsDirectory- the value for thedocsDirectoryrecord componentexamplesDirectory- the value for theexamplesDirectoryrecord componentrequireKeywords- the value for therequireKeywordsrecord componentrequireDocumentation- the value for therequireDocumentationrecord componentrequireExamples- the value for therequireExamplesrecord component
-
-
Method Details
-
display
Renders a path relative to the repository root when possible, for stable messages. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
repositoryRoot
Returns the value of therepositoryRootrecord component.- Returns:
- the value of the
repositoryRootrecord component
-
docsDirectory
Returns the value of thedocsDirectoryrecord component.- Returns:
- the value of the
docsDirectoryrecord component
-
examplesDirectory
Returns the value of theexamplesDirectoryrecord component.- Returns:
- the value of the
examplesDirectoryrecord component
-
requireKeywords
public boolean requireKeywords()Returns the value of therequireKeywordsrecord component.- Returns:
- the value of the
requireKeywordsrecord component
-
requireDocumentation
public boolean requireDocumentation()Returns the value of therequireDocumentationrecord component.- Returns:
- the value of the
requireDocumentationrecord component
-
requireExamples
public boolean requireExamples()Returns the value of therequireExamplesrecord component.- Returns:
- the value of the
requireExamplesrecord component
-