Package org.apache.juneau.objecttools
Class ObjectViewer
java.lang.Object
org.apache.juneau.objecttools.ObjectViewer
- All Implemented Interfaces:
- ObjectTool<ViewArgs>
POJO model viewer.
 
This class is designed to extract properties from collections of maps or beans.
Example:
   MyBean[] 
The tool can be used against the following data types:
- Arrays/collections of maps or beans.
- Singular maps or beans.
See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectViewercreate()Static creator.Runs this viewer on the specified collection or array of objects.run(BeanSession session, Object input, ViewArgs args) Converts the specified input to some other output.Runs this viewer on a singleton object.
- 
Field Details- 
DEFAULTDefault reusable searcher.
 
- 
- 
Constructor Details- 
ObjectViewerpublic ObjectViewer()
 
- 
- 
Method Details- 
createStatic creator.- Returns:
- A new ObjectViewerobject.
 
- 
runRuns this viewer on the specified collection or array of objects.- Parameters:
- input- The input. Must be an array or collection.
- args- The view args. See- ViewArgsfor format.
- Returns:
- The extracted properties from the collection of objects.
 
- 
runSingleRuns this viewer on a singleton object.- Parameters:
- input- The input. Must be a singleton object.
- args- The view args. See- ViewArgsfor format.
- Returns:
- The extracted properties from the object.
 
- 
runDescription copied from interface:ObjectToolConverts the specified input to some other output.- Specified by:
- runin interface- ObjectTool<ViewArgs>
- Parameters:
- session- The current bean session.
- input- The input POJO.
- args- The arguments.
- Returns:
- The output POJO.
 
 
-