org.apache.cxf.jaxrs.ext.search
Class Beanspector<T>
java.lang.Object
org.apache.cxf.jaxrs.ext.search.Beanspector<T>
public class Beanspector<T>
- extends Object
Bean introspection utility.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Beanspector
public Beanspector(Class<T> tclass)
Beanspector
public Beanspector(T tobj)
getBean
public T getBean()
getGettersNames
public Set<String> getGettersNames()
getSettersNames
public Set<String> getSettersNames()
getAccessorTypeInfo
public Beanspector.TypeInfo getAccessorTypeInfo(String getterOrSetterName)
throws Exception
- Throws:
Exception
swap
public Beanspector<T> swap(T newobject)
throws Exception
- Throws:
Exception
instantiate
public Beanspector<T> instantiate()
throws Exception
- Throws:
Exception
setValue
public Beanspector<T> setValue(String setterName,
Object value)
throws Throwable
- Throws:
Throwable
setValue
public Beanspector<T> setValue(Map<String,Object> settersWithValues)
throws Throwable
- Throws:
Throwable
setValue
public Beanspector<T> setValue(Method setter,
Object value)
throws Throwable
- Throws:
Throwable
getValue
public Object getValue(String getterName)
throws Throwable
- Throws:
Throwable
getValue
public Object getValue(Method getter)
throws Throwable
- Throws:
Throwable
Apache CXF