public class DefaultInvalidInputErrorFormatter extends Object implements Formatter<InvalidInputError>
Formatter for InvalidInputErrors that automatically creates the correct "expected" text
for the error.| Constructor and Description |
|---|
DefaultInvalidInputErrorFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(InvalidInputError error)
Create a string representation for the given obejct.
|
String |
getExpectedString(InvalidInputError error) |
String[] |
getLabels(Matcher matcher)
Gets the labels corresponding to the given matcher, AnyOfMatchers are treated specially in that their
label is constructed as a list of their contents
|
String |
join(List<String> labelList) |
public String format(InvalidInputError error)
Formatterformat in interface Formatter<InvalidInputError>error - the object to formatpublic String getExpectedString(InvalidInputError error)
public String[] getLabels(Matcher matcher)
matcher - the matcherCopyright © 2019. All rights reserved.