java side functions for categorical parameters