Note on type declaration: funky recursive type is necessary to support builder/fluent pattern.
| Modifier and Type | Class and Description |
|---|---|
| public static class | VisibilityChecker.Std
Default standard implementation is purely based on visibility modifier of given class members, and its configured minimum levels. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isCreatorVisible(Member m)
Method for checking whether given method is auto-detectable as Creator, with respect to its visibility (not considering method signature or name, just visibility) |
| public boolean | |
| public boolean | isFieldVisible(Field f)
Method for checking whether given field is auto-detectable as property, with respect to its visibility (not considering method signature or name, just visibility) |
| public boolean | |
| public boolean | isGetterVisible(Method m)
Method for checking whether given method is auto-detectable as regular getter, with respect to its visibility (not considering method signature or name, just visibility) |
| public boolean | |
| public boolean | isIsGetterVisible(Method m)
Method for checking whether given method is auto-detectable as is-getter, with respect to its visibility (not considering method signature or name, just visibility) |
| public boolean | |
| public boolean | isSetterVisible(Method m)
Method for checking whether given method is auto-detectable as setter, with respect to its visibility (not considering method signature or name, just visibility) |
| public boolean | |
| public T | with(JsonAutoDetect ann)
Builder method that will return an instance that has same settings as this instance has, except for values that given annotation overrides. |
| public T | with(JsonAutoDetect.
Builder method that will create and return an instance that has specified
|
| public T | withCreatorVisibility(JsonAutoDetect.
Builder method that will return a checker instance that has specified minimum visibility level for creator methods (constructors, factory methods) |
| public T | withFieldVisibility(JsonAutoDetect.
Builder method that will return a checker instance that has specified minimum visibility level for fields. |
| public T | withGetterVisibility(JsonAutoDetect.
Builder method that will return a checker instance that has specified minimum visibility level for regular ("getXxx") getters. |
| public T | withIsGetterVisibility(JsonAutoDetect.
Builder method that will return a checker instance that has specified minimum visibility level for "is-getters" ("isXxx"). |
| public T | withOverrides(JsonAutoDetect.
Method that can be used for merging default values from `this` instance with specified overrides; and either return `this` if overrides had no effect (that is, result would be equal), or a new instance with merged visibility settings. |
| public T | withSetterVisibility(JsonAutoDetect.
Builder method that will return a checker instance that has specified minimum visibility level for setters. |
| public T | withVisibility(PropertyAccessor method, JsonAutoDetect.
Builder method that will create and return an instance that has specified
|
| isCreatorVisible | back to summary |
|---|---|
| public boolean isCreatorVisible(Member m) Method for checking whether given method is auto-detectable as Creator, with respect to its visibility (not considering method signature or name, just visibility) | |
| isCreatorVisible | back to summary |
|---|---|
| public boolean isCreatorVisible(AnnotatedMember m) | |
| isFieldVisible | back to summary |
|---|---|
| public boolean isFieldVisible(Field f) Method for checking whether given field is auto-detectable as property, with respect to its visibility (not considering method signature or name, just visibility) | |
| isFieldVisible | back to summary |
|---|---|
| public boolean isFieldVisible(AnnotatedField f) | |
| isGetterVisible | back to summary |
|---|---|
| public boolean isGetterVisible(Method m) Method for checking whether given method is auto-detectable as regular getter, with respect to its visibility (not considering method signature or name, just visibility) | |
| isGetterVisible | back to summary |
|---|---|
| public boolean isGetterVisible(AnnotatedMethod m) | |
| isIsGetterVisible | back to summary |
|---|---|
| public boolean isIsGetterVisible(Method m) Method for checking whether given method is auto-detectable as is-getter, with respect to its visibility (not considering method signature or name, just visibility) | |
| isIsGetterVisible | back to summary |
|---|---|
| public boolean isIsGetterVisible(AnnotatedMethod m) | |
| isSetterVisible | back to summary |
|---|---|
| public boolean isSetterVisible(Method m) Method for checking whether given method is auto-detectable as setter, with respect to its visibility (not considering method signature or name, just visibility) | |
| isSetterVisible | back to summary |
|---|---|
| public boolean isSetterVisible(AnnotatedMethod m) | |
| with | back to summary |
|---|---|
| public T with(JsonAutoDetect ann) Builder method that will return an instance that has same settings as this instance has, except for values that given annotation overrides. | |
| with | back to summary |
|---|---|
| public T with(JsonAutoDetect. Builder method that will create and return an instance that has specified
mapper.setVisibilityChecker(
mapper.getVisibilityChecker().with(Visibility.NONE));
(which would basically disable all auto-detection)
| |
| withCreatorVisibility | back to summary |
|---|---|
| public T withCreatorVisibility(JsonAutoDetect. Builder method that will return a checker instance that has specified minimum visibility level for creator methods (constructors, factory methods) | |
| withFieldVisibility | back to summary |
|---|---|
| public T withFieldVisibility(JsonAutoDetect. Builder method that will return a checker instance that has specified minimum visibility level for fields. | |
| withGetterVisibility | back to summary |
|---|---|
| public T withGetterVisibility(JsonAutoDetect. Builder method that will return a checker instance that has specified minimum visibility level for regular ("getXxx") getters. | |
| withIsGetterVisibility | back to summary |
|---|---|
| public T withIsGetterVisibility(JsonAutoDetect. Builder method that will return a checker instance that has specified minimum visibility level for "is-getters" ("isXxx"). | |
| withOverrides | back to summary |
|---|---|
| public T withOverrides(JsonAutoDetect. Method that can be used for merging default values from `this` instance with specified overrides; and either return `this` if overrides had no effect (that is, result would be equal), or a new instance with merged visibility settings.
| |
| withSetterVisibility | back to summary |
|---|---|
| public T withSetterVisibility(JsonAutoDetect. Builder method that will return a checker instance that has specified minimum visibility level for setters. | |
| withVisibility | back to summary |
|---|---|
| public T withVisibility(PropertyAccessor method, JsonAutoDetect. Builder method that will create and return an instance that has specified
mapper.setVisibilityChecker(
mapper.getVisibilityChecker().withVisibility(JsonMethod.FIELD, Visibility.ANY));
(which would basically enable auto-detection for all member fields)
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected final JsonAutoDetect. | |
| protected static final VisibilityChecker. | ALL_PUBLIC
Alternate base settings used for JDK types: public visibility required for everything |
| protected static final VisibilityChecker. | DEFAULT
This is the canonical base instance, configured with default visibility values |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | Std(JsonAutoDetect
Annotations to use for determining minimum visibility levels ann)Constructor used for building instance that has minumum visibility levels as indicated by given annotation instance |
| public | Std(JsonAutoDetect.
Constructor that allows directly specifying minimum visibility levels to use |
| public | Std(JsonAutoDetect.
level to use for all property types vConstructor that will assign given visibility value for all properties. |
| Modifier and Type | Method and Description |
|---|---|
| private JsonAutoDetect. | |
| protected VisibilityChecker. | |
| public static VisibilityChecker. | |
| public static VisibilityChecker. | |
| public static VisibilityChecker. | Returns: Instance with default settings: "public" for getters/is-getters, fields; "any" for setters and legacy 1-arg constructors
|
| public boolean | isCreatorVisible(Member m)
Implements com. |
| public boolean | |
| public boolean | isFieldVisible(Field f)
Implements com. |
| public boolean | |
| public boolean | isGetterVisible(Method m)
Implements com. |
| public boolean | |
| public boolean | isIsGetterVisible(Method m)
Implements com. |
| public boolean | |
| public boolean | isSetterVisible(Method m)
Implements com. |
| public boolean | |
| public String | |
| public VisibilityChecker. | with(JsonAutoDetect ann)
Implements com. |
| public VisibilityChecker. | with(JsonAutoDetect.
Implements com. Visibility value to use for all property elements.
|
| public VisibilityChecker. | withCreatorVisibility(JsonAutoDetect.
Implements com. |
| public VisibilityChecker. | withFieldVisibility(JsonAutoDetect.
Implements com. |
| public VisibilityChecker. | withGetterVisibility(JsonAutoDetect.
Implements com. |
| public VisibilityChecker. | withIsGetterVisibility(JsonAutoDetect.
Implements com. |
| public VisibilityChecker. | withOverrides(JsonAutoDetect.
Implements com. |
| public VisibilityChecker. | withSetterVisibility(JsonAutoDetect.
Implements com. |
| public VisibilityChecker. | withVisibility(PropertyAccessor method, JsonAutoDetect.
Implements com. Visibility value to use for specified property.
|
| _creatorMinLevel | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _fieldMinLevel | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _getterMinLevel | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _isGetterMinLevel | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| _setterMinLevel | back to summary |
|---|---|
| protected final JsonAutoDetect. | |
| ALL_PUBLIC | back to summary |
|---|---|
| protected static final VisibilityChecker. Alternate base settings used for JDK types: public visibility required for everything
| |
| DEFAULT | back to summary |
|---|---|
| protected static final VisibilityChecker. This is the canonical base instance, configured with default visibility values | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Std | back to summary |
|---|---|
| public Std(JsonAutoDetect ann) Constructor used for building instance that has minumum visibility levels as indicated by given annotation instance
| |
| Std | back to summary |
|---|---|
| public Std(JsonAutoDetect. Constructor that allows directly specifying minimum visibility levels to use | |
| Std | back to summary |
|---|---|
| public Std(JsonAutoDetect. Constructor that will assign given visibility value for all properties.
| |
| _defaultOrOverride | back to summary |
|---|---|
| private JsonAutoDetect. | |
| _with | back to summary |
|---|---|
| protected VisibilityChecker. | |
| allPublicInstance | back to summary |
|---|---|
public static VisibilityChecker.
| |
| construct | back to summary |
|---|---|
public static VisibilityChecker.
| |
| defaultInstance | back to summary |
|---|---|
public static VisibilityChecker.
| |
| isCreatorVisible | back to summary |
|---|---|
| public boolean isCreatorVisible(Member m) Implements com. Doc from com. Method for checking whether given method is auto-detectable as Creator, with respect to its visibility (not considering method signature or name, just visibility)
| |
| isCreatorVisible | back to summary |
|---|---|
| public boolean isCreatorVisible(AnnotatedMember m) Implements com.
| |
| isFieldVisible | back to summary |
|---|---|
| public boolean isFieldVisible(Field f) Implements com. Doc from com. Method for checking whether given field is auto-detectable as property, with respect to its visibility (not considering method signature or name, just visibility)
| |
| isFieldVisible | back to summary |
|---|---|
| public boolean isFieldVisible(AnnotatedField f) Implements com.
| |
| isGetterVisible | back to summary |
|---|---|
| public boolean isGetterVisible(Method m) Implements com. Doc from com. Method for checking whether given method is auto-detectable as regular getter, with respect to its visibility (not considering method signature or name, just visibility)
| |
| isGetterVisible | back to summary |
|---|---|
| public boolean isGetterVisible(AnnotatedMethod m) Implements com.
| |
| isIsGetterVisible | back to summary |
|---|---|
| public boolean isIsGetterVisible(Method m) Implements com. Doc from com. Method for checking whether given method is auto-detectable as is-getter, with respect to its visibility (not considering method signature or name, just visibility)
| |
| isIsGetterVisible | back to summary |
|---|---|
| public boolean isIsGetterVisible(AnnotatedMethod m) Implements com.
| |
| isSetterVisible | back to summary |
|---|---|
| public boolean isSetterVisible(Method m) Implements com. Doc from com. Method for checking whether given method is auto-detectable as setter, with respect to its visibility (not considering method signature or name, just visibility)
| |
| isSetterVisible | back to summary |
|---|---|
| public boolean isSetterVisible(AnnotatedMethod m) Implements com.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| with | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will return an instance that has same settings as this instance has, except for values that given annotation overrides.
| |
| with | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will create and return an instance that has specified
mapper.setVisibilityChecker(
mapper.getVisibilityChecker().with(Visibility.NONE));
(which would basically disable all auto-detection)
| |
| withCreatorVisibility | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will return a checker instance that has specified minimum visibility level for creator methods (constructors, factory methods)
| |
| withFieldVisibility | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will return a checker instance that has specified minimum visibility level for fields.
| |
| withGetterVisibility | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will return a checker instance that has specified minimum visibility level for regular ("getXxx") getters.
| |
| withIsGetterVisibility | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will return a checker instance that has specified minimum visibility level for "is-getters" ("isXxx").
| |
| withOverrides | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Method that can be used for merging default values from `this` instance with specified overrides; and either return `this` if overrides had no effect (that is, result would be equal), or a new instance with merged visibility settings.
| |
| withSetterVisibility | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will return a checker instance that has specified minimum visibility level for setters.
| |
| withVisibility | back to summary |
|---|---|
| public VisibilityChecker. Implements com. Doc from com. Builder method that will create and return an instance that has specified
mapper.setVisibilityChecker(
mapper.getVisibilityChecker().withVisibility(JsonMethod.FIELD, Visibility.ANY));
(which would basically enable auto-detection for all member fields)
| |