public abstract class BeanVisitor extends java.lang.Object implements InExRuleMatcher<java.lang.String,java.lang.String>
BeanVisitorImplBase
Modifier and Type | Field and Description |
---|---|
protected boolean |
blacklist
Initial matching mode.
|
protected boolean |
declared
Flag for enabling declared properties, or just public ones.
|
protected boolean |
ignoreEmptyString
Defines if empty string should be ignored.
|
protected boolean |
ignoreNullValues
Defines if null values should be ignored.
|
protected boolean |
includeFields
Defines if fields should be included.
|
protected boolean |
isSourceMap
Indicates the the source is a Map.
|
protected InExRules<java.lang.String,java.lang.String,java.lang.String> |
rules
Include/exclude rules.
|
protected java.lang.Object |
source
Source bean.
|
WILDCARD_PATH_RULE_MATCHER, WILDCARD_RULE_MATCHER
Constructor and Description |
---|
BeanVisitor() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String propertyName,
java.lang.String rule,
boolean include)
Compares property name to the rules.
|
protected java.lang.String[] |
getAllBeanPropertyNames(java.lang.Class type,
boolean declared)
Returns all bean property names.
|
protected java.lang.String[] |
resolveProperties(java.lang.Object bean,
boolean declared)
Returns an array of bean properties.
|
void |
visit()
Starts visiting properties.
|
protected abstract boolean |
visitProperty(java.lang.String name,
java.lang.Object value)
Invoked for each visited property.
|
protected java.lang.Object source
protected InExRules<java.lang.String,java.lang.String,java.lang.String> rules
protected boolean declared
protected boolean ignoreNullValues
protected boolean ignoreEmptyString
protected boolean includeFields
protected boolean blacklist
protected boolean isSourceMap
protected java.lang.String[] getAllBeanPropertyNames(java.lang.Class type, boolean declared)
protected java.lang.String[] resolveProperties(java.lang.Object bean, boolean declared)
Map
,
all its keys will be returned.public void visit()
protected abstract boolean visitProperty(java.lang.String name, java.lang.Object value)
true
if
visiting should continue, otherwise false
to stop.public boolean accept(java.lang.String propertyName, java.lang.String rule, boolean include)
accept
in interface InExRuleMatcher<java.lang.String,java.lang.String>
Copyright © 2003-present Jodd Team