Package org.apache.johnzon.jsonb
Class DefaultPropertyVisibilityStrategy
- java.lang.Object
-
- org.apache.johnzon.jsonb.DefaultPropertyVisibilityStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
skipGetpackage
private ConcurrentMap<Class<?>,jakarta.json.bind.config.PropertyVisibilityStrategy>
strategies
-
Constructor Summary
Constructors Constructor Description DefaultPropertyVisibilityStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean(Class<?> clazz)
private boolean
hasMethod(Class<?> clazz, String methodName, Class<?>... paramTypes)
private boolean
isFieldVisible(Field field, Class<?> root, boolean useGetter)
If the field is not public then it's of course not visible.boolean
isVisible(Field field)
boolean
isVisible(Field field, Class<?> root, boolean useGetter)
boolean
isVisible(Method method)
private jakarta.json.bind.config.PropertyVisibilityStrategy
visibilityStrategy(Class<?> type)
-
-
-
Field Detail
-
strategies
private final ConcurrentMap<Class<?>,jakarta.json.bind.config.PropertyVisibilityStrategy> strategies
-
skipGetpackage
private volatile boolean skipGetpackage
-
-
Method Detail
-
isVisible
public boolean isVisible(Field field)
- Specified by:
isVisible
in interfacejakarta.json.bind.config.PropertyVisibilityStrategy
-
isFieldVisible
private boolean isFieldVisible(Field field, Class<?> root, boolean useGetter)
If the field is not public then it's of course not visible. If the field is public then we need to look at the accessors. If there is a private/protected/default accessor for it then it overrides and the field is not visible But if there is no accessor for it, then it's visible.
-
isVisible
public boolean isVisible(Method method)
- Specified by:
isVisible
in interfacejakarta.json.bind.config.PropertyVisibilityStrategy
-
visibilityStrategy
private jakarta.json.bind.config.PropertyVisibilityStrategy visibilityStrategy(Class<?> type)
-
-