
org.exparity.beans.Graph Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exparity-bean Show documentation
Show all versions of exparity-bean Show documentation
A Java library of bean utilities for manipulating and inspecting Java classes implementing the Java Beans standard
package org.exparity.beans;
import org.exparity.beans.core.BeanNamingStrategy;
import org.exparity.beans.core.Instance;
import org.exparity.beans.core.naming.CamelCaseNamingStrategy;
import static org.exparity.beans.core.InstanceInspector.graphInspector;
/**
* Utility class for inspecting objects which expose properties which follow the Java Bean get/set standard. For example;
*
*
* List<BeanPropertyInstance> = Graph.graph(myObject).propertyList()
*
*/
public class Graph extends Instance {
public static Graph graph(final Object instance) {
return graph(instance, new CamelCaseNamingStrategy());
}
public static Graph graph(final Object instance, final BeanNamingStrategy naming) {
return new Graph(instance, naming);
}
public Graph(final Object instance, final BeanNamingStrategy naming) {
super(graphInspector(), instance, naming);
}
public Graph(final Object instance) {
this(instance, new CamelCaseNamingStrategy());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy