public abstract class EntityValidator extends Object
Option type, if the field's value is null (meaning that the
field was omitted in the JSON document) we set it to none(). This is necessary because
there's no concept of default values in Gson.
@RequiredLink annotation, we look for the corresponding link
within the _links property and set it to that value, or signal an error if the link is
missing. This ensures, for instance, that an object can promise that it always has a self
link and we will never return an instance that does not.
Option.
| Constructor and Description |
|---|
EntityValidator() |
public static <T> T validateInstance(T instance)
throws SchemaViolationException
SchemaViolationExceptionCopyright © 2016 Atlassian. All rights reserved.