public abstract class SecurityAnalysisResultBuilder.AbstractLimitViolationsResultBuilder<B extends SecurityAnalysisResultBuilder.AbstractLimitViolationsResultBuilder<B>> extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
computationOk |
protected SecurityAnalysisResultContext |
resultContext |
protected List<LimitViolation> |
violations |
Modifier and Type | Method and Description |
---|---|
B |
addViolation(LimitViolation violation)
Adds a
LimitViolation to the builder. |
B |
addViolation(LimitViolation violation,
SecurityAnalysisResultContext limitViolationContext)
Adds a
LimitViolation to the builder with a context. |
B |
addViolations(List<LimitViolation> violations) |
B |
addViolations(List<LimitViolation> violations,
SecurityAnalysisResultContext limitViolationContext) |
B |
setComputationOk(boolean computationOk) |
protected boolean computationOk
protected final List<LimitViolation> violations
protected final SecurityAnalysisResultContext resultContext
public B setComputationOk(boolean computationOk)
public B addViolation(LimitViolation violation)
LimitViolation
to the builder.
The default result context would be supplied to interceptors.violation
- public B addViolation(LimitViolation violation, SecurityAnalysisResultContext limitViolationContext)
LimitViolation
to the builder with a context.violation
- the context would be supplied to interceptors.public B addViolations(List<LimitViolation> violations, SecurityAnalysisResultContext limitViolationContext)
public B addViolations(List<LimitViolation> violations)
Copyright © 2020. All rights reserved.