Class Checks


  • public final class Checks
    extends Object
    Collection of functions for validation or conditional checking utilities.
    • Method Detail

      • isMetaContext

        public static boolean isMetaContext​(DataContext context)
        Check if this DataContext is a 'meta' context, meaning there is no associated data to read.
        Parameters:
        context - the context to check
        Returns:
        true if it is such a context, otherwise false
      • assertIsNotMeta

        public static void assertIsNotMeta​(String dataType)
        Assert that the given dataType is not 'meta', else throw an exception.
        Parameters:
        dataType - the data type to check
        Throws:
        IllegalStateException - if the data type is 'meta'