Package cdc.issues
Class Issue.Builder<B extends Issue.Builder<B>>
java.lang.Object
cdc.issues.Issue.Builder<B>
- Type Parameters:
B- The builder type.
- Enclosing class:
- Issue
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLocation(Location location) Adds an issue location.build()description(StructuredDescription.Builder<?> description) Sets the issue description.description(Object description) Sets the issue description.description(String description) Sets the issue description.Sets the issue domain.location(LocatedItem item) Sets the issue location.Sets the issue location.Sets the issue locations.Sets the issue locations.Sets the issue meta data.Sets the issue name, and optionally its severity if thenameimplementsIssueSeverityItemand current severity isnull.Sets the issue name.Sets the project name (may benull).Sets the issue Rule.Sets the issue RuleId.protected Bself()severity(IssueSeverity severity) Sets the issue severity.Sets the issue snapshot.Sets the issue timestamp.
-
Field Details
-
timestamp
-
domain
-
name
-
params
-
project
-
snapshot
-
severity
-
description
-
locations
-
metas
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
self
-
accept
-
timestamp
Sets the issue timestamp.WARNING: this should only be used to reconstruct an issue -from a file, stream, ...).
- Parameters:
timestamp- The timestamp.- Returns:
- This builder.
-
rule
Sets the issue Rule.This is equivalent to setting its domain and name, and its severity if the rule has one severity.
- Parameters:
rule- The rule.- Returns:
- This builder.
-
ruleId
Sets the issue RuleId.This is equivalent to setting its domain and name.
- Parameters:
ruleId- The rule id.- Returns:
- This builder.
-
domain
Sets the issue domain.- Parameters:
domain- The domain.- Returns:
- This builder.
-
name
Sets the issue name.- Parameters:
name- The name.- Returns:
- This builder.
-
name
Sets the issue name, and optionally its severity if thenameimplementsIssueSeverityItemand current severity isnull.- Parameters:
name- The name.- Returns:
- This builder.
-
params
-
project
Sets the project name (may benull).- Parameters:
project- The project name.- Returns:
- This builder.
-
addLocation
Adds an issue location.- Parameters:
location- The location.- Returns:
- This builder.
-
location
Sets the issue location.- Parameters:
location- The location.- Returns:
- This builder.
-
location
Sets the issue location.- Parameters:
item- TheLocatedItemwhose location is used.- Returns:
- This builder.
-
locations
Sets the issue locations.- Parameters:
locations- The locations- Returns:
- This builder.
-
locations
Sets the issue locations.- Parameters:
locations- The locations- Returns:
- This builder.
-
snapshot
Sets the issue snapshot.- Parameters:
snapshot- The snapshot identifier.- Returns:
- This builder.
-
severity
Sets the issue severity.- Parameters:
severity- The severity.- Returns:
- This builder.
-
description
Sets the issue description.- Parameters:
description- The description.- Returns:
- This builder.
-
description
Sets the issue description.The passed builder is built to a
StructuredDescriptionwhich is then converted to String.- Parameters:
description- The description.- Returns:
- This builder.
-
description
Sets the issue description.Object.toString()is used.- Parameters:
description- The description.- Returns:
- This builder.
-
metas
Sets the issue meta data.- Parameters:
metas- The meta data.- Returns:
- This builder.
-
build
-