Lines Matching refs:value

65 … public static String applyValueForVariable(final Object value, final AttributeMap variableSection)  in applyValueForVariable()  argument
68 if (value instanceof Time) in applyValueForVariable()
71 ret = formatTime((Time) value); in applyValueForVariable()
74 else if (value instanceof java.sql.Date) in applyValueForVariable()
77 ret = formatDate((Date) value); in applyValueForVariable()
80 else if (value instanceof Date) in applyValueForVariable()
83 ret = HSSFDateUtil.getExcelDate((Date) value, false, 2).toString(); in applyValueForVariable()
86 else if (value instanceof Number) in applyValueForVariable()
89 variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, VALUE, String.valueOf(value)); in applyValueForVariable()
91 else if (value instanceof Boolean) in applyValueForVariable()
94 if (Boolean.TRUE.equals(value)) in applyValueForVariable()
103 else if (value != null) in applyValueForVariable()
106 … variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, STRING_VALUE, String.valueOf(value)); in applyValueForVariable()
116 …public static void applyValueForCell(final Object value, final AttributeMap variableSection, final… in applyValueForCell() argument
118 if (value instanceof Time) in applyValueForCell()
120 … variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, "time-value", formatTime((Time) value)); in applyValueForCell()
122 else if (value instanceof java.sql.Date) in applyValueForCell()
126 …ibute(OfficeNamespaces.OFFICE_NS, VALUE, HSSFDateUtil.getExcelDate((Date) value, false, 2).toStrin… in applyValueForCell()
130 … variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, "date-value", formatDate((Date) value)); in applyValueForCell()
133 else if (value instanceof Date) in applyValueForCell()
136 …ibute(OfficeNamespaces.OFFICE_NS, VALUE, HSSFDateUtil.getExcelDate((Date) value, false, 2).toStrin… in applyValueForCell()
138 else if (value instanceof BigDecimal) in applyValueForCell()
142 …paces.OFFICE_NS, "date-value", formatDate(HSSFDateUtil.getJavaDate((BigDecimal) value, false, 0))); in applyValueForCell()
146 … variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, VALUE, String.valueOf(value)); in applyValueForCell()
149 else if (value instanceof Number) in applyValueForCell()
151 variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, VALUE, String.valueOf(value)); in applyValueForCell()
153 else if (value instanceof Boolean) in applyValueForCell()
157 float fvalue = Boolean.TRUE.equals(value) ? 1 : 0; in applyValueForCell()
162 if (Boolean.TRUE.equals(value)) in applyValueForCell()
172 else if (value != null) in applyValueForCell()
176 final Float number = Float.valueOf(String.valueOf(value)); in applyValueForCell()
188 … variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, STRING_VALUE, String.valueOf(value)); in applyValueForCell()