com.fasterxml.jackson.annotation

Enum JsonAutoDetect.Visibility

    • Enum Constant Detail

      • ANY

        public static final JsonAutoDetect.Visibility ANY
        Value that means that all kinds of access modifiers are acceptable, from private to public.
      • NON_PRIVATE

        public static final JsonAutoDetect.Visibility NON_PRIVATE
        Value that means that any other access modifier other than 'private' is considered auto-detectable.
      • PROTECTED_AND_PUBLIC

        public static final JsonAutoDetect.Visibility PROTECTED_AND_PUBLIC
        Value that means access modifiers 'protected' and 'public' are auto-detectable (and 'private' and "package access" == no modifiers are not)
      • PUBLIC_ONLY

        public static final JsonAutoDetect.Visibility PUBLIC_ONLY
        Value to indicate that only 'public' access modifier is considered auto-detectable.
      • NONE

        public static final JsonAutoDetect.Visibility NONE
        Value that indicates that no access modifiers are auto-detectable: this can be used to explicitly disable auto-detection for specified types.
      • DEFAULT

        public static final JsonAutoDetect.Visibility DEFAULT
        Value that indicates that default visibility level (whatever it is, depends on context) is to be used. This usually means that inherited value (from parent visibility settings) is to be used.
    • Method Detail

      • values

        public static JsonAutoDetect.Visibility[] 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 (JsonAutoDetect.Visibility c : JsonAutoDetect.Visibility.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JsonAutoDetect.Visibility 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
      • isVisible

        public boolean isVisible(Member m)

Copyright © 2008–2024 FasterXML. All rights reserved.