net.ranides.assira.reflection
Class BeanModel
java.lang.Object
net.ranides.assira.reflection.BeanModel
public class BeanModel
- extends Object
- Author:
- ranides
fromObject
public static BeanModel fromObject(Object object)
fromClass
public static BeanModel fromClass(Class<?> clazz)
getModelType
public Class<?> getModelType()
getType
public Class<?> getType(String name)
throws InspectException
- Throws:
InspectException
getGenericType
public GenericClass getGenericType(String name)
throws InspectException
- Throws:
InspectException
getters
public Map<String,Method> getters()
throws InspectException
- Throws:
InspectException
setters
public Map<String,Method> setters()
throws InspectException
- Throws:
InspectException
methods
public MultiMap<String,Method> methods()
throws InspectException
- Throws:
InspectException
methods
public Collection<Method> methods(String name)
throws InspectException
- Throws:
InspectException
isReadable
public boolean isReadable(String name)
isWritable
public boolean isWritable(String name)
get
public Object get(Object object,
String name)
getEach
public List<Object> getEach(Object[] objects,
String name)
getEach
public List<Object> getEach(List<?> objects,
String name)
getEach
public Collection<Object> getEach(Collection<?> objects,
String name)
put
public void put(Object object,
String name,
Object value)
Copyright © 2013. All Rights Reserved.