Interface WriterKeys


  • public interface WriterKeys
    Keys used for configuration options of a ViewWriter.
    Author:
    Carl Harris
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String INCLUDE_NULL_PROPERTIES
      When set to true a writer will include properties from the view whose value is null.
      static String INCLUDE_XML_XSI_TYPE
      When set to true an XML view will include the appropriate xsi:type attribute on each value element.
      static String PRETTY_PRINT_OUTPUT
      When set to true and is supported by the writer, output will be pretty printed.
      static String WRAP_ARRAY_IN_ENVELOPE
      When set to false a view whose root is of array type will not be wrapped in an envelope.
      static String WRAP_OBJECT_IN_ENVELOPE
      When set to true a view whose root is of object type will be wrapped in an envelope if the root element is named.
    • Field Detail

      • INCLUDE_NULL_PROPERTIES

        static final String INCLUDE_NULL_PROPERTIES
        When set to true a writer will include properties from the view whose value is null.
        See Also:
        Constant Field Values
      • WRAP_OBJECT_IN_ENVELOPE

        static final String WRAP_OBJECT_IN_ENVELOPE
        When set to true a view whose root is of object type will be wrapped in an envelope if the root element is named.
        See Also:
        Constant Field Values
      • WRAP_ARRAY_IN_ENVELOPE

        static final String WRAP_ARRAY_IN_ENVELOPE
        When set to false a view whose root is of array type will not be wrapped in an envelope.
        See Also:
        Constant Field Values
      • INCLUDE_XML_XSI_TYPE

        static final String INCLUDE_XML_XSI_TYPE
        When set to true an XML view will include the appropriate xsi:type attribute on each value element.
        See Also:
        Constant Field Values
      • PRETTY_PRINT_OUTPUT

        static final String PRETTY_PRINT_OUTPUT
        When set to true and is supported by the writer, output will be pretty printed.
        See Also:
        Constant Field Values