@Override
        public String toString() {
            switch (type) {
                case Boolean:
                    if ((Boolean)value) {
                        return "#define " + name + " 1\n";
                    } else {
                        return "";
                    }
                case Int:
                case Float:
                    return "#define " + name + " " + value + "\n";
                default:
                    if (value != null) {
                        return "#define " + name + " 1\n";
                    } else {
                        return "";
                    }
            }
        }
Validates {@link MatParam}s.

@author Kirill Vainer
jme3-core/src/test/java/com/jme3/material/MaterialMatParamTest.java