|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBeanDescriptor
The descriptor for a given java bean class.
Method Summary | |
---|---|
void |
addProperty(IBeanProperty pProperty)
Adds a new bean property to the current list of bean properties. |
int |
analyzeProperties()
Parses all the properties assigned to this instance in order to set correctly the fields isAtomic , isCastorBean and isRaccoonBean . |
boolean |
containsProperty(java.lang.String pPropertyName)
Determines whether or not the property is contained by this instance. |
java.lang.String |
getClassName()
The class that this instance bears information on. |
IBeanProperty |
getProperty(java.lang.String pPropertyName)
Convenience method for retrieving a specific property descriptor. |
boolean |
hasDefaultConstructor()
Is the associated java bean dynamically instanciable. |
boolean |
isCastorBean()
Convenience method for determining the type of bean this instance is. |
boolean |
isParsed()
Have the methods assigned to this instance been analyzed to determine the type of bean. |
boolean |
isRaccoonBean()
Convenience method for determining the type of bean this instance is. |
java.util.Iterator |
properties()
The list of avaible properties of this java bean instance. |
java.util.Iterator |
propertyNames()
The names of the available java bean properties within this BeanDescriptor. |
void |
setClassName(java.lang.String pClassName)
Defines the name of the class that this instance represents. |
Method Detail |
---|
java.lang.String getClassName()
setClassName(String)
void setClassName(java.lang.String pClassName) throws RaccoonException
Person
class, then pClassName is worth
Person.class.getName()
pClassName
- the class name contained in this object
RaccoonException
- if the component is in a read only state.isParsed()
void addProperty(IBeanProperty pProperty) throws RaccoonException
pProperty
- the bean property to add.
RaccoonException
- if the component is in a read only state.isParsed()
IBeanProperty getProperty(java.lang.String pPropertyName) throws RaccoonException
IBeanProperty.lPropertyName()
pPropertyName
- the lower bean name of the property (for example: nameOfPerson
and not
NameOfPerson
RaccoonException
- if the property wasn't found.containsProperty(String)
java.util.Iterator propertyNames() throws RaccoonException
String
which are the java property names of the given java bean
RaccoonException
- if the method analyzeProperties()
wasn't called previously.java.util.Iterator properties() throws RaccoonException
IBeanProperty
elements
RaccoonException
- if the method analyzeProperties()
wasn't called previously.boolean containsProperty(java.lang.String pPropertyName)
pPropertyName
- the lower bean name of the property (for example: nameOfPerson
and not
NameOfPerson
true
if there is a property descriptor for the specified property.boolean isParsed()
true
if the properties have been analyzed (the class becomes read only)boolean isCastorBean()
isParsed()
returns true.
boolean isRaccoonBean()
isParsed()
returns true.
int analyzeProperties() throws RaccoonException
isAtomic
, isCastorBean
and isRaccoonBean
.
RaccoonException
- if some props wheren't set or if the component is in errorboolean hasDefaultConstructor()
true
if there is a default constructor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |