|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClassDescriptor
Provides access to a set of persistent properties of a Java Bean and methods for manipulating such bean.
| Method Summary | |
|---|---|
java.lang.Object |
createObject()
Creates a new instance of a class described by this object. |
Property |
getDeclaredProperty(java.lang.String propertyName)
Returns a Java Bean property descriptor matching property name or null if no such property is found. |
java.lang.Class |
getObjectClass()
Returns a bean class mapped by this descriptor. |
java.util.Iterator |
getProperties()
Returns an Iterator over descriptor properties. |
Property |
getProperty(java.lang.String propertyName)
Returns a Java Bean property descriptor matching property name or null if no such property is found. |
ClassDescriptor |
getSubclassDescriptor(java.lang.Class objectClass)
Returns the most "specialized" descriptor for a given class. |
ClassDescriptor |
getSuperclassDescriptor()
Returns a descriptor of the mapped superclass or null if the descriptor's entity sits at the top of inheritance hierarchy or no inheritance is mapped. |
void |
injectValueHolders(java.lang.Object object)
Prepares object properties for access. |
boolean |
isFault(java.lang.Object object)
Returns true if an object is not fully resolved. |
void |
shallowMerge(java.lang.Object from,
java.lang.Object to)
Merges object properties from one object to another, avoiding traversal of the ArcProperties. |
boolean |
visitProperties(PropertyVisitor visitor)
Passes the visitor to all properties "visit" method, terminating properties walk through in case one of the properties returns false. |
| Method Detail |
|---|
java.lang.Class getObjectClass()
ClassDescriptor getSuperclassDescriptor()
ClassDescriptor getSubclassDescriptor(java.lang.Class objectClass)
this.getObjectClass().isAssignableFrom(objectClass)
java.lang.Object createObject()
void injectValueHolders(java.lang.Object object)
throws PropertyAccessException
PropertyAccessException
void shallowMerge(java.lang.Object from,
java.lang.Object to)
throws PropertyAccessException
PropertyAccessExceptionProperty getProperty(java.lang.String propertyName)
Property getDeclaredProperty(java.lang.String propertyName)
java.util.Iterator getProperties()
boolean visitProperties(PropertyVisitor visitor)
boolean isFault(java.lang.Object object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||