public final class MediaTypeFormatAttribute extends FormatAttribute
media-type format attribute
This is not defined by the specification itself, however it is mentioned into draft v3's link schema.
Fortunately enough, Guava has MediaType to help us out.
| Modifier and Type | Method and Description |
|---|---|
void |
checkValue(String fmt,
ValidationReport report,
JsonNode value)
Abstract method implemented by all attributes
|
static FormatAttribute |
getInstance() |
newMsg, validatepublic static FormatAttribute getInstance()
public void checkValue(String fmt, ValidationReport report, JsonNode value)
FormatAttributeIt is only called if the value type is one expected by the
attribute, see FormatAttribute.validate(String, ValidationReport, JsonNode).
checkValue in class FormatAttributefmt - the format attribute namereport - the validation reportvalue - the value to validateCopyright © 2013. All Rights Reserved.