public interface ICSVHelper
ICSVHelper provides access methods used for building
strings and text lines for files in comma separated values format. The
ICSVHelper can be referenced directly within a document
template by its name csvHelper.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCSVLine(java.util.Collection<java.lang.Object> attributes,
java.lang.String separator)
Builds a text line in comma separated values format where each of the
given attributes are separated by the given separator string.
|
java.lang.String |
getCSVLine(java.lang.Object[] attributes,
java.lang.String separator)
Builds a text line in comma separated values format where each of the
given attributes are separated by the given separator string.
|
java.lang.String |
getCSVStringForAttribute(java.lang.Object attribute)
Converts the HTML encoded string of an attribute into one string
which can be used as element in an CSV file.
|
java.lang.String |
getCSVStringForString(java.lang.String string)
Converts a string into one string which can be used as element in an
CSV file.
|
java.lang.String |
getStringForAttribute(java.lang.Object attribute)
Converts the HTML encoded string of an attribute into one string.
|
java.lang.String getStringForAttribute(java.lang.Object attribute)
attribute - string object or array or collection of strings. Any
other type will be ignoredjava.lang.String getCSVStringForString(java.lang.String string)
attribute - string object. Any other type will be ignoredjava.lang.String getCSVStringForAttribute(java.lang.Object attribute)
attribute - string object or array or collection of strings. Any
other type will be ignoredjava.lang.String getCSVLine(java.lang.Object[] attributes,
java.lang.String separator)
attributes - Array of attributes which shall be listed in the
CSV line, NOT NULLseparator - separator chararcter to use ("," for standard CSV,
";" for Excel compatible CSV, NOT NULLjava.lang.String getCSVLine(java.util.Collection<java.lang.Object> attributes,
java.lang.String separator)
attributes - Collection of attributes which shall be listed in
the CSV line, NOT NULLseparator - separator chararcter to use ("," for standard CSV,
";" for Excel compatible CSV, NOT NULL