Class DefaultBndBaselineEvaluation
java.lang.Object
org.jdrupes.builder.core.ResourceObject
org.jdrupes.builder.bnd.DefaultBndBaselineEvaluation
- All Implemented Interfaces:
FaultAware, Proxyable, Resource, BndBaselineEvaluation
Default implementation of a baseline result.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultBndBaselineEvaluation(ResourceType<?> type, Project project, Path bundlePath) Initializes a new default bnd baseline result. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf set, indicates that baselining failed because the artifact to use as baseline was not found.The path of the baselined jar.booleanisFaulty()Checks if the resource is faulty.booleanmismatch()If set, indicates that a mismatch was detected.Sets the name of the resource.project()The project.reason()If there is a mismatch, the reason for the mismatch.The location where the report can be found.Sets the faulty state.toString()Sets the baseline artifact missing flag.withReason(String reason) Sets the reason for a mismatch.withReportLocation(Path reportLocation) Sets the report location.Methods inherited from interface BndBaselineEvaluation
nameMethods inherited from interface Resource
asOf, asOfLocalized, type
-
Constructor Details
-
DefaultBndBaselineEvaluation
Initializes a new default bnd baseline result.- Parameters:
type- the typeproject- the projectbundlePath- the bundle path
-
-
Method Details
-
name
Description copied from class:ResourceObjectSets the name of the resource.- Overrides:
namein classResourceObject- Parameters:
name- the name- Returns:
- the resource object
-
project
Description copied from interface:BndBaselineEvaluationThe project.- Specified by:
projectin interfaceBndBaselineEvaluation- Returns:
- the project
-
bundlePath
Description copied from interface:BndBaselineEvaluationThe path of the baselined jar.- Specified by:
bundlePathin interfaceBndBaselineEvaluation- Returns:
- the path
-
mismatch
Description copied from interface:BndBaselineEvaluationIf set, indicates that a mismatch was detected.- Specified by:
mismatchin interfaceBndBaselineEvaluation- Returns:
- true, if successful
-
isFaulty
Description copied from interface:FaultAwareChecks if the resource is faulty.- Specified by:
isFaultyin interfaceFaultAware- Returns:
- true, if is faulty
-
setFaulty
Description copied from interface:FaultAwareSets the faulty state.- Specified by:
setFaultyin interfaceFaultAware- Returns:
- the fault aware
-
withReason
Sets the reason for a mismatch.- Parameters:
reason- the reason- Returns:
- the default bnd baseline evaluation
-
reason
Description copied from interface:BndBaselineEvaluationIf there is a mismatch, the reason for the mismatch.- Specified by:
reasonin interfaceBndBaselineEvaluation- Returns:
- the reason
-
reportLocation
Description copied from interface:BndBaselineEvaluationThe location where the report can be found.- Specified by:
reportLocationin interfaceBndBaselineEvaluation- Returns:
- the path
-
withReportLocation
Sets the report location.- Parameters:
reportLocation- the report location- Returns:
- the default bnd baseline evaluation
-
withBaselineArtifactMissing
Sets the baseline artifact missing flag. Also sets the faulty flag for consistency.- Returns:
- the default bnd baseline evaluation
-
baselineArtifactMissing
Description copied from interface:BndBaselineEvaluationIf set, indicates that baselining failed because the artifact to use as baseline was not found.- Specified by:
baselineArtifactMissingin interfaceBndBaselineEvaluation- Returns:
- true, if successful
-
toString
- Overrides:
toStringin classResourceObject
-