In order to describe your samples via e.g. enums instead of Strings you can use this interface that returns all the characteristics of a sample.