Class CsvGenerator

    • Constructor Detail

      • CsvGenerator

        public CsvGenerator()
    • Method Detail

      • getIncludeDefaultFields

        public boolean getIncludeDefaultFields()
      • setIncludeDefaultFields

        public void setIncludeDefaultFields​(boolean includeDefaultFields)
      • getIncludeSchemaProperties

        public boolean getIncludeSchemaProperties()
      • setIncludeSchemaProperties

        public void setIncludeSchemaProperties​(boolean includeSchemaProperties)
      • addAdditionalFieldsFromSchemaProperties

        public void addAdditionalFieldsFromSchemaProperties​(LinkedHashMap<String,​Class<?>> schemaProperties)
        Adds all properties from a schema to the fields if includeSchemaProperties is true.
        Parameters:
        schemaProperties - a Map of property names to types.
      • getHeader

        public String getHeader()
        Generates a CSV String from, if present, the fields and constants
        Returns:
        a CSV String of all fields, or constants, or both.
      • isQuoted

        public boolean isQuoted()
      • setQuoted

        public void setQuoted​(boolean quoted)
      • getCommaReplacement

        public String getCommaReplacement()
      • setCommaReplacement

        public void setCommaReplacement​(String commaReplacement)