Example usage for org.apache.commons.lang3.builder ReflectionToStringBuilder setAppendStatics

List of usage examples for org.apache.commons.lang3.builder ReflectionToStringBuilder setAppendStatics

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder ReflectionToStringBuilder setAppendStatics.

Prototype

public void setAppendStatics(final boolean appendStatics) 

Source Link

Document

Sets whether or not to append static fields.

Usage

From source file:com.medlog.webservice.vo.DiaryAnalysisWeightedChartVO.java

public String toCSV() {
    ReflectionToStringBuilder tsb = new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
    tsb.setAppendStatics(false);

    tsb.setExcludeFieldNames("mood", "producivtiy", "row", "diaryID", "rowTotal");
    String r = tsb.build();//.replace(",", "</li><li>");
    r = r.substring(r.indexOf("[") + 1);
    r = r.replace(",", "|");
    r = r.replace("=", ",");

    return r.replace("]", "").replace("Big5", "");
}