Package org.apache.ibatis.reflection
Class MetaObject
- java.lang.Object
-
- org.apache.ibatis.reflection.MetaObject
-
public class MetaObject extends Object
- Author:
- Clinton Begin
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Object element)
<E> void
addAll(List<E> list)
String
findProperty(String propName, boolean useCamelCaseMapping)
static MetaObject
forObject(Object object, ObjectFactory objectFactory, ObjectWrapperFactory objectWrapperFactory, ReflectorFactory reflectorFactory)
String[]
getGetterNames()
Class<?>
getGetterType(String name)
ObjectFactory
getObjectFactory()
ObjectWrapper
getObjectWrapper()
ObjectWrapperFactory
getObjectWrapperFactory()
Object
getOriginalObject()
ReflectorFactory
getReflectorFactory()
String[]
getSetterNames()
Class<?>
getSetterType(String name)
Object
getValue(String name)
boolean
hasGetter(String name)
boolean
hasSetter(String name)
boolean
isCollection()
MetaObject
metaObjectForProperty(String name)
void
setValue(String name, Object value)
-
-
-
Method Detail
-
forObject
public static MetaObject forObject(Object object, ObjectFactory objectFactory, ObjectWrapperFactory objectWrapperFactory, ReflectorFactory reflectorFactory)
-
getObjectFactory
public ObjectFactory getObjectFactory()
-
getObjectWrapperFactory
public ObjectWrapperFactory getObjectWrapperFactory()
-
getReflectorFactory
public ReflectorFactory getReflectorFactory()
-
getOriginalObject
public Object getOriginalObject()
-
getGetterNames
public String[] getGetterNames()
-
getSetterNames
public String[] getSetterNames()
-
hasSetter
public boolean hasSetter(String name)
-
hasGetter
public boolean hasGetter(String name)
-
metaObjectForProperty
public MetaObject metaObjectForProperty(String name)
-
getObjectWrapper
public ObjectWrapper getObjectWrapper()
-
isCollection
public boolean isCollection()
-
add
public void add(Object element)
-
addAll
public <E> void addAll(List<E> list)
-
-