public String getFieldValueAsString(String fieldName) {

        List<String> values = getMultivaluedFieldAsStringList(fieldName);
        if ((values != null) && !values.isEmpty()) {
            return CmsStringUtil.listAsString(values, "\n");
        } else {
            Object o = m_doc.getFieldValue(fieldName);
            if (o != null) {
                return o.toString();
            }
        }
        return null;
    }
public String getFieldValueAsString ( String fieldName ) { List < String > values = getMultivaluedFieldAsStringList ( fieldName ) ; if ( ( values != null ) && ! values . isEmpty ( ) ) { return CmsStringUtil . listAsString ( values , "\n" ) ; } else { Object o = m_doc . getFieldValue ( fieldName ) ; if ( o != null ) { return o . toString ( ) ; } } return null ; }
@see org.opencms.search.I_CmsSearchDocument#getFieldValueAsString(java.lang.String)