net.ranides.assira.reflection
Class BeanModel

java.lang.Object
  extended by net.ranides.assira.reflection.BeanModel

public class BeanModel
extends Object

Author:
ranides

Method Summary
static BeanModel fromClass(Class<?> clazz)
           
static BeanModel fromObject(Object object)
           
 Object get(Object object, String name)
           
 Collection<Object> getEach(Collection<?> objects, String name)
           
 List<Object> getEach(List<?> objects, String name)
           
 List<Object> getEach(Object[] objects, String name)
           
 GenericClass getGenericType(String name)
           
 Class<?> getModelType()
           
 Map<String,Method> getters()
           
 Class<?> getType(String name)
           
 boolean isReadable(String name)
           
 boolean isWritable(String name)
           
 MultiMap<String,Method> methods()
           
 Collection<Method> methods(String name)
           
 void put(Object object, String name, Object value)
           
 Map<String,Method> setters()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.