@SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { return Enum.valueOf(Case.class, ((String) value).toUpperCase()); } throw new ConversionException("Could not convert value: [" + value + "] to Case type."); } }
@SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { return Enum.valueOf(TrailingSlash.class, ((String) value).toUpperCase()); } throw new ConversionException("Could not convert value: [" + value + "] to TrailingSlash type."); } }
@SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { return Enum.valueOf(Case.class, ((String) value).toUpperCase()); } throw new ConversionException("Could not convert value: [" + value + "] to Case type."); } }
@SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { return Enum.valueOf(TrailingSlash.class, ((String) value).toUpperCase()); } throw new ConversionException("Could not convert value: [" + value + "] to TrailingSlash type."); } }
@SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { String item = (String) value; if ("301".equals(item)) { item = "PERMANENT"; } else if ("302".equals(item)) { item = "TEMPORARY"; } return Enum.valueOf(Redirect.class, item.toUpperCase()); } throw new ConversionException("Could not convert value: [" + value + "] to Redirect type."); } }
@SuppressWarnings("rawtypes") public Object convert(final Class type, final Object value) { if (value instanceof String) { String item = (String) value; if ("301".equals(item)) { item = "PERMANENT"; } else if ("302".equals(item)) { item = "TEMPORARY"; } return Enum.valueOf(Redirect.class, item.toUpperCase()); } throw new ConversionException("Could not convert value: [" + value + "] to Redirect type."); } }
throw new ConversionException("Could not convert value: [" + value + "] to FacesPhaseId type.");
throw new ConversionException("Could not convert value: [" + value + "] to FacesPhaseId type.");