public class NullableFieldValidator extends java.lang.Object
Nullable
.Constructor and Description |
---|
NullableFieldValidator() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ensureAllFieldsNonNull(T parsedObject)
Ensures that the given object is not null and that all its fields are set
(throws
ConQATException otherwise). |
static <T> T |
ensureAllFieldsNonNull(T parsedObject,
java.lang.String queryContent)
Ensures that the given object is not null and that all its fields are set
(throws
ConQATException otherwise). |
public NullableFieldValidator()
public static <T> T ensureAllFieldsNonNull(T parsedObject, java.lang.String queryContent) throws ConQATException
ConQATException
otherwise). Arrays and other iterables are
checked recursively, as well as all fields of the given object (but only if
their type is defined in ConQAT/Teamscale packages).
If you get a false positive for a field from this method, annotate the field
as Nullable
.ConQATException
public static <T> T ensureAllFieldsNonNull(T parsedObject) throws ConQATException
ConQATException
otherwise). Arrays and other iterables are
checked recursively, as well as all fields of the given object (but only if
their type is defined in ConQAT/Teamscale packages).
If you get a false positive for a field from this method, annotate the field
as Nullable
.ConQATException