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