Enum SerializationFeature

    • Enum Constant Detail

      • INCLUDE_RELATIONSHIP_ATTRIBUTES

        public static final SerializationFeature INCLUDE_RELATIONSHIP_ATTRIBUTES
        This option if enabled instructs resource converter to serialize entire relationship objects (type and id are serialized by default)
      • INCLUDE_META

        public static final SerializationFeature INCLUDE_META
        If enabled, meta attribute will be serialized
      • INCLUDE_LINKS

        public static final SerializationFeature INCLUDE_LINKS
        If enabled, links attribute will be serialized
      • INCLUDE_JSONAPI_OBJECT

        public static final SerializationFeature INCLUDE_JSONAPI_OBJECT
        If enabled JSON API object will be serialized.
    • Method Detail

      • values

        public static SerializationFeature[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SerializationFeature c : SerializationFeature.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SerializationFeature valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getDefaultFeatures

        public static Set<SerializationFeature> getDefaultFeatures()
        Returns set of features that are enabled by default.
        Returns:
        returns features that are enabled by default