public final class SimpleViolation extends Object implements Violation
Violation.| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleViolation.Builder |
| Constructor and Description |
|---|
SimpleViolation(Severity severity,
String description,
List<org.apache.jackrabbit.vault.packaging.PackageId> packages)
Constructor.
|
SimpleViolation(Severity severity,
String description,
org.apache.jackrabbit.vault.packaging.PackageId... packages)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static SimpleViolation.Builder |
builder()
Use this builder method to more easily construct a violation with MessageFormat arguments.
|
static SimpleViolation.Builder |
builder(ResourceBundle resourceBundle)
Use this builder method to more easily construct a violation with MessageFormat arguments.
|
boolean |
equals(Object o) |
static SimpleViolation |
fromJson(javax.json.JsonObject jsonViolation) |
static SimpleViolation |
fromReported(Violation violation) |
String |
getDescription()
Describes the nature of the violation.
|
Collection<org.apache.jackrabbit.vault.packaging.PackageId> |
getPackages()
Provides a list of one or more Packages responsible for the violation.
|
Severity |
getSeverity()
Describe the severity of the violation.
|
int |
hashCode() |
String |
toString() |
public SimpleViolation(Severity severity, String description, org.apache.jackrabbit.vault.packaging.PackageId... packages)
severity - the severitydescription - the descriptionpackages - the package idspublic static SimpleViolation.Builder builder()
public static SimpleViolation.Builder builder(ResourceBundle resourceBundle)
resourceBundle - a ResourceBundle to lookup a localized message format string if availablepublic Severity getSeverity()
ViolationgetSeverity in interface Violationpublic Collection<org.apache.jackrabbit.vault.packaging.PackageId> getPackages()
ViolationgetPackages in interface Violationpublic String getDescription()
ViolationgetDescription in interface Violationpublic static SimpleViolation fromReported(Violation violation)
public static SimpleViolation fromJson(javax.json.JsonObject jsonViolation)
Copyright © 2017–2020. All rights reserved.