|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jamasoftware.contour.report.util.VelocityReportUtil
public class VelocityReportUtil
Utility methods for velocity report.
| Constructor Summary | |
|---|---|
VelocityReportUtil(com.jamasoftware.contour.util.type.FieldDataTypeManager fieldDataTypeManager)
|
|
| Method Summary | |
|---|---|
java.lang.String |
cleanText(java.lang.String html)
This method will go through the provided text cleaning out unnecessary syntax. |
java.lang.String |
encodeTextForHTML(java.lang.String str)
This method will search through the provided text looking for html/xml tags and replacing them with the ascii equivalent. |
java.lang.String |
fromHtmlToRawText(java.lang.String orig)
|
java.lang.String |
getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeDTO documentType,
java.lang.String fieldName,
com.jamasoftware.contour.util.DateFormatter dateFormat)
Gets string value for the given field. |
java.lang.String |
getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeDTO documentType,
java.lang.String fieldName,
com.jamasoftware.contour.util.DateFormatter dateFormat,
boolean exportToExcel)
Gets string value for the given field. |
java.lang.String |
getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeFieldDTO fieldDTO,
com.jamasoftware.contour.util.DateFormatter dateFormat)
Gets string value for the given field. |
java.lang.String |
getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeFieldDTO fieldDTO,
com.jamasoftware.contour.util.DateFormatter dateFormat,
boolean exportToExcel)
Gets string value for the given field. |
java.lang.String |
getValueForField(ContourItem doc,
java.lang.String fieldName,
com.jamasoftware.contour.util.DateFormatter dateFormat)
|
java.lang.String |
replaceBreakForExcel(java.lang.String str)
This will search through the provided text looking for HTML breaks and Word style breaks and replace them with a simple line break so that the output to Excel. |
java.lang.String |
replaceMSCharacters(java.lang.String orig,
boolean keepNewlines)
This will replace all Microsoft special characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VelocityReportUtil(com.jamasoftware.contour.util.type.FieldDataTypeManager fieldDataTypeManager)
| Method Detail |
|---|
public java.lang.String getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeDTO documentType,
java.lang.String fieldName,
com.jamasoftware.contour.util.DateFormatter dateFormat)
doc - documentdocumentType - document type for the documentfieldName - name of the field (not the label)dateFormat - date formatter
public java.lang.String getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeDTO documentType,
java.lang.String fieldName,
com.jamasoftware.contour.util.DateFormatter dateFormat,
boolean exportToExcel)
doc - documentdocumentType - document type for the documentfieldName - name of the field (not the label)dateFormat - date formatterexportToExcel - whether to export to Excel or not. If export to
Excel, the HTML tags will be escaped.
public java.lang.String getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeFieldDTO fieldDTO,
com.jamasoftware.contour.util.DateFormatter dateFormat)
doc - documentfieldDTO - field definitionfieldName - name of the field (not the label)dateFormat - date formatter
public java.lang.String getValueForField(ContourItem doc,
com.jamasoftware.contour.service.dto.DocumentTypeFieldDTO fieldDTO,
com.jamasoftware.contour.util.DateFormatter dateFormat,
boolean exportToExcel)
doc - documentfieldDTO - field definitionfieldName - name of the field (not the label)dateFormat - date formatterexportToExcel - whether to export to Excel or not. If export to
Excel, the HTML tags will be escaped.
public java.lang.String getValueForField(ContourItem doc,
java.lang.String fieldName,
com.jamasoftware.contour.util.DateFormatter dateFormat)
public java.lang.String replaceBreakForExcel(java.lang.String str)
text -
public java.lang.String encodeTextForHTML(java.lang.String str)
text -
public java.lang.String cleanText(java.lang.String html)
text -
public java.lang.String fromHtmlToRawText(java.lang.String orig)
public java.lang.String replaceMSCharacters(java.lang.String orig,
boolean keepNewlines)
String - textboolean - keepNewLine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||