@Override protected Object getProcessedValue(OptionProcessingContext context) { String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { List<Direction> sortDirections = new ArrayList<Direction>(); String[] sortDirectionArray = valueAsString.split(","); for (String direction : sortDirectionArray) { try { sortDirections.add(Direction.valueOf(direction.toUpperCase().trim())); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(valueAsString); sb.append("' is not a valid sort direction. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(Direction.class)); throw new DandelionException(sb.toString(), e); } } return sortDirections; } return null; } }
@Override protected Object getProcessedValue(OptionProcessingContext context) { String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { List<Direction> sortDirections = new ArrayList<Direction>(); String[] sortDirectionArray = valueAsString.split(","); for (String direction : sortDirectionArray) { try { sortDirections.add(Direction.valueOf(direction.toUpperCase().trim())); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(valueAsString); sb.append("' is not a valid sort direction. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(Direction.class)); throw new DandelionException(sb.toString(), e); } } return sortDirections; } return null; } }
@Override protected Object getProcessedValue(OptionProcessingContext context) { ThemeOption retval = null; String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { try { retval = ThemeOption.valueOf(valueAsString.toUpperCase()); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(valueAsString); sb.append("' is not a valid theme option. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(ThemeOption.class)); throw new DandelionException(sb.toString(), e); } } return retval; } }
@Override protected Object getProcessedValue(OptionProcessingContext context) { String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { FilterType filterType = null; try { filterType = FilterType.valueOf(valueAsString.toUpperCase()); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder("\""); sb.append(valueAsString); sb.append("\" is not a valid filter type. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(FilterType.class)); throw new DandelionException(sb.toString(), e); } return filterType; } return null; } }
@Override protected Object getProcessedValue(OptionProcessingContext context) { ThemeOption retval = null; String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { try { retval = ThemeOption.valueOf(valueAsString.toUpperCase()); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(valueAsString); sb.append("' is not a valid theme option. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(ThemeOption.class)); throw new DandelionException(sb.toString(), e); } } return retval; } }
@Override protected Object getProcessedValue(OptionProcessingContext context) { Extension retval = null; String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { try { retval = Theme.valueOf(valueAsString.toUpperCase()).getInstance(); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(valueAsString); sb.append("' is not a valid theme name. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(Theme.class)); throw new DandelionException(sb.toString(), e); } } return retval; } }
@Override protected Object getProcessedValue(OptionProcessingContext context) { String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { FilterType filterType = null; try { filterType = FilterType.valueOf(valueAsString.toUpperCase()); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder("\""); sb.append(valueAsString); sb.append("\" is not a valid filter type. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(FilterType.class)); throw new DandelionException(sb.toString(), e); } return filterType; } return null; } }
@Override protected Object getProcessedValue(OptionProcessingContext context) { Extension retval = null; String valueAsString = context.getValueAsString(); if (StringUtils.isNotBlank(valueAsString)) { try { retval = Theme.valueOf(valueAsString.toUpperCase()).getInstance(); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(valueAsString); sb.append("' is not a valid theme name. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(Theme.class)); throw new DandelionException(sb.toString(), e); } } return retval; } }
sb.append(this.orientation); sb.append("' is not a valid orientation. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(Orientation.class)); throw new DandelionException(sb.toString());
sb.append(this.orientation); sb.append("' is not a valid orientation. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(Orientation.class)); throw new DandelionException(sb.toString());
sb.append(insert); sb.append("' is not a valid placeholder. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(JQueryContentPlaceholder.class)); throw new DandelionException(sb.toString());
@Override public int doEndTag() throws JspException { TableTag parent = (TableTag) findAncestorWithClass(this, TableTag.class); // The tag is evaluated only once, at the first iteration if (parent.isFirstIteration()) { JQueryContentPlaceholder placeholder = null; if (StringUtils.isNotBlank(this.placeholder)) { try { placeholder = JQueryContentPlaceholder.valueOf(this.placeholder.toUpperCase().trim()); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(this.placeholder); sb.append("' is not a valid insert mode. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(JQueryContentPlaceholder.class)); throw new JspException(sb.toString()); } } else { placeholder = JQueryContentPlaceholder.BEFORE_ALL; } parent.getTable().getTableConfiguration() .addExtraJs(new ExtraJs(new HashSet<String>(Arrays.asList(this.bundles.split(","))), placeholder)); parent.getTable().getTableConfiguration().registerExtension(new ExtraJsFeature()); } return EVAL_PAGE; }
@Override public int doEndTag() throws JspException { TableTag parent = (TableTag) findAncestorWithClass(this, TableTag.class); // The tag is evaluated only once, at the first iteration if (parent.isFirstIteration()) { JQueryContentPlaceholder placeholder = null; if (StringUtils.isNotBlank(this.placeholder)) { try { placeholder = JQueryContentPlaceholder.valueOf(this.placeholder.toUpperCase().trim()); } catch (IllegalArgumentException e) { StringBuilder sb = new StringBuilder(); sb.append("'"); sb.append(this.placeholder); sb.append("' is not a valid insert mode. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(JQueryContentPlaceholder.class)); throw new JspException(sb.toString()); } } else { placeholder = JQueryContentPlaceholder.BEFORE_ALL; } parent.getTable().getTableConfiguration() .addExtraJs(new ExtraJs(new HashSet<String>(Arrays.asList(this.bundles.split(","))), placeholder)); parent.getTable().getTableConfiguration().registerExtension(new ExtraJsFeature()); } return EVAL_PAGE; }
error.append(context.getConfiguration().getAssetFixedVersionType()); error.append("' is not a valid versioning type. Possible values are: "); error.append(EnumUtils.printPossibleValuesOf(FixedVersionType.class)); throw new DandelionException(error.toString(), e);
error.append(context.getConfiguration().getAssetFixedVersionType()); error.append("' is not a valid versioning type. Possible values are: "); error.append(EnumUtils.printPossibleValuesOf(FixedVersionType.class)); throw new DandelionException(error.toString(), e);
sb.append(typeStr); sb.append("' is not a valid callback type. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(CallbackType.class)); throw new DandelionException(sb.toString());
sb.append(confTypeStr.trim()); sb.append("' is not a valid configuration type. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(ConfType.class)); throw new DandelionException(sb.toString());
sb.append(this.type); sb.append("' is not a valid callback type. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(CallbackType.class)); throw new JspException(sb.toString(), e);
sb.append(this.type); sb.append("' is not a valid callback type. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(CallbackType.class)); throw new JspException(sb.toString(), e);
sb.append(this.method); sb.append("' is not a valid HTTP method. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(HttpMethod.class)); throw new JspException(sb.toString()); sb.append(this.orientation); sb.append("' is not a valid orientation. Possible values are: "); sb.append(EnumUtils.printPossibleValuesOf(Orientation.class)); throw new JspException(sb.toString());