/** * @see org.opencms.search.I_CmsSearchDocument#getType() */ public String getType() { return getFieldValueAsString(CmsSearchField.FIELD_TYPE); }
/** * @see org.opencms.search.I_CmsSearchDocument#getPath() */ public String getPath() { return getFieldValueAsString(CmsSearchField.FIELD_PATH); }
/** * @see org.opencms.search.I_CmsSearchDocument#getMultivaluedFieldAsStringList(java.lang.String) */ public List<String> getMultivaluedFieldAsStringList(String fieldName) { return Collections.singletonList(getFieldValueAsString(fieldName)); }
/** * @see org.opencms.search.I_CmsSearchDocument#getFieldValueAsDate(java.lang.String) */ public Date getFieldValueAsDate(String fieldName) { String contentDate = getFieldValueAsString(fieldName); if (contentDate != null) { try { return new Date(DateTools.stringToTime(contentDate)); } catch (ParseException e) { // ignore and assume the given field name does not refer a date field } } return null; }