Package guru.mikelue.foxglove.annotation
Interface GenDataInspector
public interface GenDataInspector
A convenient interface to process objects defined by
GenData.-
Method Summary
Modifier and TypeMethodDescriptiongenData()Returns the annotation instance ofGenData.intReturns the number of table facets defined inGenData.static GenDataInspectorCreates an instance ofGenDataInspector.booleanIndicates whether the default data generator is used.booleanIndicates whether the default table facets are used.
-
Method Details
-
of
Creates an instance ofGenDataInspector.- Parameters:
genData- The annotation instance ofGenData- Returns:
- The instance of
GenDataInspector
-
genData
GenData genData()Returns the annotation instance ofGenData.- Returns:
- The annotation instance of
GenData
-
numberOfTableFacets
int numberOfTableFacets()Returns the number of table facets defined inGenData.- Returns:
- The number of table facets
-
useDefaultDataGenerator
boolean useDefaultDataGenerator()Indicates whether the default data generator is used.The default data generator is used when both of the following conditions are met:
- The
GenData.generatorName()is not set (empty string), - The
GenData.generator()is set toGenData.FallbackDataGeneratorProvider.
- Returns:
- true if the default data generator is used; false otherwise
- The
-
useDefaultTableFacets
boolean useDefaultTableFacets()Indicates whether the default table facets are used.The default table facets are used when all of the following conditions are met:
- The
GenData.facetsNames()is not set (empty array), - The
GenData.value()is not set (empty array), - The
GenData.facets()is not set (empty array).
- Returns:
- true if the default table facets are used; false otherwise
- The
-