public final class ValidationContext extends Object
ValidationContext.empty()
ValidationContext.of("key")
ValidationContext.of("Plan P").with("Stage 1").with("Job A").with("name")
Modifier and Type | Method and Description |
---|---|
static ValidationContext |
empty()
Returns an empty context.
|
boolean |
isEmpty()
Returns true if context is empty.
|
static ValidationContext |
of(String context)
Returns a single-element context.
|
String |
toString() |
ValidationContext |
with(String context)
Returns new instance of validation context with the
context element appended to it. |
public static ValidationContext empty()
public static ValidationContext of(@NotNull String context)
context
- namepublic ValidationContext with(@NotNull String context)
context
element appended to it.context
- namepublic boolean isEmpty()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.