|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.abra.j2xb.beans.model.MOBeanDescriptor
public class MOBeanDescriptor
Defines the metadata for a mapped Bean. The class supports a special case for mapping exceptions. The special case adds the message property of the exception and optionally adds the exception trace.
| Constructor Summary | |
|---|---|
MOBeanDescriptor(MOBeansFactory factory,
java.lang.Class<?> clazz)
|
|
MOBeanDescriptor(MOBeansFactory factory,
java.lang.Class<?> clazz,
MOAbstractPropertyDescriptor parentProperty)
|
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getBeanClass()
|
MOBeansFactory |
getBeansFactory()
|
java.util.List<MOChoicePropertyDescriptor> |
getChoiceProperties()
|
MOConstructorFacade |
getConstructorFacade()
|
java.util.List<MODelegateDescriptor> |
getDelegates()
|
java.beans.PropertyDescriptor |
getJavaPropertyDescriptor(java.lang.String propertyPath)
finds a Java property in the bean class |
MOPropertyDescriptor |
getMOPropertyDescriptor(java.lang.String propertyPath)
|
protected MOPropertyDescriptor |
getMOPropertyDescriptor(java.lang.String[] path,
java.lang.String propertyPath,
int positionInPath)
|
MOAbstractPropertyDescriptor |
getParentProperty()
|
java.util.List<MOPropertyDescriptor> |
getProperties()
|
MOPropertyDescriptor |
getPropertyByName(java.lang.String propertyName)
finds a property by name. |
MOPersistentBeanDescriptor |
getSuperclassBeanDescriptor()
|
java.lang.Class<?> |
getType(java.lang.String propertyPath)
this method supports getting property type from delegates also |
java.lang.Object |
getValue(java.lang.Object instance,
java.lang.String propertyPath)
this method supports getting values from delegates also |
java.lang.String |
getXmlName()
|
protected void |
introspectBean()
introspect the bean to create the property mappings |
static boolean |
isNonMappedThrowable(java.lang.Class<?> clazz)
|
boolean |
isPersistentBean()
|
static boolean |
isPersistentBean(java.lang.Class<?> clazz)
|
boolean |
isPersistentDependentBean()
|
static boolean |
isPersistentDependentBean(java.lang.Class<?> clazz)
|
static boolean |
isThrowable(java.lang.Class<?> clazz)
|
void |
setValue(java.lang.Object instance,
java.lang.Object value,
java.lang.String propertyPath)
this method supports getting values from delegates also |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MOBeanDescriptor(MOBeansFactory factory,
java.lang.Class<?> clazz,
MOAbstractPropertyDescriptor parentProperty)
throws MOBeansException
MOBeansException
public MOBeanDescriptor(MOBeansFactory factory,
java.lang.Class<?> clazz)
throws MOBeansException
MOBeansException| Method Detail |
|---|
public boolean isPersistentBean()
public boolean isPersistentDependentBean()
public static boolean isPersistentBean(java.lang.Class<?> clazz)
public static boolean isThrowable(java.lang.Class<?> clazz)
public static boolean isNonMappedThrowable(java.lang.Class<?> clazz)
public static boolean isPersistentDependentBean(java.lang.Class<?> clazz)
protected void introspectBean()
throws MOBeansException
MOBeansException - if the annotations on the bean are invalid.public MOConstructorFacade getConstructorFacade()
public MOPropertyDescriptor getPropertyByName(java.lang.String propertyName)
propertyName - the Java name of the property to search for
public java.util.List<MOPropertyDescriptor> getProperties()
public java.util.List<MODelegateDescriptor> getDelegates()
public java.util.List<MOChoicePropertyDescriptor> getChoiceProperties()
public java.lang.Class<?> getBeanClass()
public java.lang.String getXmlName()
public MOAbstractPropertyDescriptor getParentProperty()
public MOPropertyDescriptor getMOPropertyDescriptor(java.lang.String propertyPath)
throws MOBeansPropertyNotFoundException
MOBeansPropertyNotFoundException
protected MOPropertyDescriptor getMOPropertyDescriptor(java.lang.String[] path,
java.lang.String propertyPath,
int positionInPath)
throws MOBeansPropertyNotFoundException
MOBeansPropertyNotFoundException
public java.lang.Class<?> getType(java.lang.String propertyPath)
throws MOBeansException
propertyPath - a dot separated path to the property to be set (e.g. address.name)
MOBeansException
public java.lang.Object getValue(java.lang.Object instance,
java.lang.String propertyPath)
throws MOBeansException
propertyPath - a dot separated path to the property to be setinstance - the instance to set the value for
MOBeansException
public void setValue(java.lang.Object instance,
java.lang.Object value,
java.lang.String propertyPath)
throws MOBeansException
propertyPath - - a path to the property to get the value forvalue - the value to set
MOBeansException
public java.beans.PropertyDescriptor getJavaPropertyDescriptor(java.lang.String propertyPath)
throws MOBeansPropertyAccessException
propertyPath - - a path to the property to search for
MOBeansPropertyAccessExceptionpublic MOBeansFactory getBeansFactory()
public java.lang.String toString()
toString in class java.lang.Objectpublic MOPersistentBeanDescriptor getSuperclassBeanDescriptor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||