/** * Is the browse index type for a date? * * @return true if date type, false if not */ public boolean isDate() { return "date".equals(getDataType()); }
" (data type: " + browseIndex.getDataType() + ", display type: " + browseIndex.getDisplayType() + ") ");
/** * Return a normalized focus value. If there is no normalization that can be performed, * return the focus value that is passed in. * * @param value a focus value to normalize * @return the normalized focus value * @throws BrowseException if browse error */ private String normalizeJumpToValue(String value) throws BrowseException { // If the scope has a focus value (focus by value) if (scope.hasJumpToValue()) { // Normalize it based on the specified language as appropriate for this index return OrderFormat.makeSortString(scope.getJumpToValue(), scope.getJumpToValueLang(), scope.getBrowseIndex().getDataType()); } else if (scope.hasStartsWith()) { // Scope has a starts with, so normalize that instead return OrderFormat.makeSortString(scope.getStartsWith(), null, scope.getBrowseIndex().getDataType()); } // No focus value on the scope (ie. focus by id), so just return the passed focus value // This is useful in cases where we have pulled a focus value from the index // which will already be normalized, and avoids another DB lookup return value; }
preferedLabel, values.get(x).getLanguage(), bi.getDataType()); distFValues .add(nLabel var, values.get(x).getLanguage(), bi.getDataType()); distFValues .add(nVal values.get(x).getValue(), values.get(x).getLanguage(), bi.getDataType()); distFValues .add(nVal
String dataType = browseIndex.getDataType(); String type = ("date".equals(dataType) ? "date" : "text"); sortOption = new SortOption(0, browseIndex.getName(), browseIndex.getMetadata(0), type);
scope.getBrowseIndex().getDataType());