public class Graph extends Instance
List<BeanPropertyInstance> = Graph.graph(myObject).propertyList()
| Constructor and Description |
|---|
Graph(Object instance) |
Graph(Object instance,
BeanNamingStrategy naming) |
| Modifier and Type | Method and Description |
|---|---|
static Graph |
graph(Object instance) |
static Graph |
graph(Object instance,
BeanNamingStrategy naming) |
BeanProperty |
propertyAtPath(String path)
Get the requested property by its path from the instance or return
null if the property is not present. |
BeanProperty |
propertyAtPathIgnoreOrdinal(String path)
Get the requested property by its path whilst ignoriing any ordinals if its in a collection, map, or array from the instance or return
null if the property is
not present. |
apply, apply, dump, dump, dump, find, findAny, get, get, hasProperty, hasProperty, hasProperty, isPropertyType, isPropertyType, propertyList, propertyMap, propertyNamed, propertyType, propertyType, propertyValue, propertyValue, propertyValue, propertyValue, setNamingStrategy, setProperty, setProperty, visitpublic Graph(Object instance, BeanNamingStrategy naming)
public Graph(Object instance)
public static Graph graph(Object instance, BeanNamingStrategy naming)
public BeanProperty propertyAtPath(String path)
null if the property is not present. For example:
BeanPropertyInstance surname = bean(myObject).propertyAtPath("person.surname")
path - the property pathpublic BeanProperty propertyAtPathIgnoreOrdinal(String path)
null if the property is
not present. For example:
BeanPropertyInstance nameOfFirstSibling = bean(myObject).propertyAtPathIgnoreOrdinal("person.siblings.firstname")
path - the property pathCopyright © 2015. All rights reserved.