/** * Decodes the parameter (as a string) to its internal object implementation. */ public Object decode( String value ) throws Exception { return Converters.convert(value, getType()); }
/** Decodes the parameter (as a string) to its internal object implementation. */ public Object decode(String value) throws Exception { return Converters.convert(value, getType()); }
if ( !String.class.equals(lppio.getType()) ) { Class type = lppio.getType(); if(PRIMITIVE_TO_WRAPPER.containsKey(type)) { type = PRIMITIVE_TO_WRAPPER.get(type); if(lppio.getType().isEnum()) { Object[] enumValues = lppio.getType().getEnumConstants(); AllowedValuesType allowed = owsf.createAllowedValuesType(); for (Object value : enumValues) {
if (!String.class.equals(lppio.getType())) { Class type = lppio.getType(); if (PRIMITIVE_TO_WRAPPER.containsKey(type)) { type = PRIMITIVE_TO_WRAPPER.get(type); Object[] optionsArray = options.toArray(new Object[options.size()]); addAllowedValues(literal, optionsArray); } else if (lppio.getType().isEnum()) { Object[] enumValues = lppio.getType().getEnumConstants(); addAllowedValues(literal, enumValues); } else {