public abstract class BeanVisitor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
declared
Flag for enabling declared properties, or just public one.
|
protected java.lang.String[] |
excludeNames
List of excluded property names.
|
protected boolean |
ignoreNullValues
Defines if null values should be ignored.
|
protected java.lang.String[] |
includeNames
List of included property names.
|
protected java.lang.Object |
source
Source bean.
|
| Constructor and Description |
|---|
BeanVisitor() |
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.String[] excludeNames
protected java.lang.String[] includeNames
protected boolean declared
protected boolean ignoreNullValues
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.Copyright © 2003-2013 Jodd Team