public class CapturePropertyIf extends Object implements BeanVisitor
| Constructor and Description |
|---|
CapturePropertyIf(BeanPropertyPredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
BeanProperty |
getMatchedProperty() |
void |
visit(BeanProperty property,
Object current,
BeanPropertyPath path,
Object[] stack,
AtomicBoolean stop)
Callback fired for each
BeanProperty found on an object |
public CapturePropertyIf(BeanPropertyPredicate predicate)
public void visit(BeanProperty property, Object current, BeanPropertyPath path, Object[] stack, AtomicBoolean stop)
BeanVisitorBeanProperty found on an objectvisit in interface BeanVisitorproperty - the property being visitedcurrent - the object currently being visitedpath - a dot notation path of the properties navigated to get to this propertystack - a stack of the objects that have been visited to get to the current object. The latest object is last in the array.stop - set the value to true if the visit is to be stoppedpublic BeanProperty getMatchedProperty()
Copyright © 2015. All rights reserved.