public static final class SimpleViolation.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
SimpleViolation |
build()
Build a simple violation.
|
SimpleViolation.Builder |
withArgument(Object... argument)
Add one or more arguments.
|
SimpleViolation.Builder |
withArguments(List<Object> arguments)
Set arguments.
|
SimpleViolation.Builder |
withDescription(String description)
Set description.
|
SimpleViolation.Builder |
withPackage(org.apache.jackrabbit.vault.packaging.PackageId... packageId)
Add one or more packageIds.
|
SimpleViolation.Builder |
withPackages(List<org.apache.jackrabbit.vault.packaging.PackageId> packages)
Set package ids.
|
SimpleViolation.Builder |
withSeverity(Severity severity)
Set severity.
|
public SimpleViolation.Builder withSeverity(Severity severity)
severity - severity valuepublic SimpleViolation.Builder withDescription(String description)
description - descriptionpublic SimpleViolation.Builder withArguments(List<Object> arguments)
arguments - argumentspublic SimpleViolation.Builder withArgument(Object... argument)
argument - vararg argument valuespublic SimpleViolation.Builder withPackages(List<org.apache.jackrabbit.vault.packaging.PackageId> packages)
packages - package idspublic SimpleViolation.Builder withPackage(org.apache.jackrabbit.vault.packaging.PackageId... packageId)
packageId - vararg packageId valuespublic SimpleViolation build()
Copyright © 2017–2020. All rights reserved.