|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBeanProperty
The descriptor of java bean.
Currently there two different properties:public void setName(String pName)
public String getName()
public void setName(String pName)
public int getName()
public void setName(String pName, String pSurname)
public String getName()
addElement
A valid example is:
public void setNames(ArrayList pNames)
public ArrayList getNames()
public String addName()
Method Summary | |
---|---|
java.lang.reflect.Method |
adder()
Returns the addMethod for this bean, used to add an element to a collection of a java bean. |
void |
append(java.lang.Object pInstance,
java.lang.Object pData)
Adds an element to this object, this object being a collection. |
java.lang.Class |
beanType()
Returns the type of class that this method handles. |
java.lang.Class |
collectionType()
Returns the atomic type of the collection, a call to this method is valid. |
java.lang.reflect.Method |
getter()
Returns the getMethod for this bean, used to invoke the getMethod. |
boolean |
isCastorProperty()
Checks if this property is a valid Castor property. |
boolean |
isCollectionProperty()
Checks if this class is a Collection defined by the Raccoon project. |
boolean |
isRaccoonProperty()
Checks if this property is a valid Raccoon property. |
java.lang.String |
lPropertyName()
Extracts the name of this property. |
java.lang.Object |
read(java.lang.Object pInstance)
Reads the value of this property from a given object instance. |
java.lang.reflect.Method |
setter()
Returns the setMethod for this bean, used to invoke the setMethod. |
java.lang.String |
uPropertyName()
Extracts the name of this property. |
void |
write(java.lang.Object pInstance,
java.lang.Object pData)
Sets the value of this object. |
Method Detail |
---|
boolean isCastorProperty()
true
if this is a valid Castor property.boolean isRaccoonProperty()
true
if this is a valid Raccoon property.boolean isCollectionProperty()
true
if this method is a collection.java.lang.String lPropertyName()
java.lang.String uPropertyName()
java.lang.Class beanType()
public void setString(String pParam)
public String getString()
public void setVector(Vector pParam)
public Vector getVector()
public void addVector(Object pElt)
public void setElements(Vector pParam)
public Vector getElements()
public void addElement(Object pElt)
collectionType()
java.lang.Class collectionType()
isCollectionProperty
returns true
java.lang.reflect.Method getter()
beanType()
.
java.lang.reflect.Method setter()
beanType()
.
java.lang.reflect.Method adder()
collectionType()
.
java.lang.Object read(java.lang.Object pInstance) throws RaccoonException
pInstance
- the instance of the object on which the getMethod will be invoked.
RaccoonException
- shouldn't be thrown.void write(java.lang.Object pInstance, java.lang.Object pData) throws RaccoonException
pInstance
- the instance of the object on which the setMethod will be invoked.pData
- the data that passed on to the setMethod that will be invoked.
RaccoonException
- if the setMethod and object pData don't match.void append(java.lang.Object pInstance, java.lang.Object pData) throws RaccoonException
pInstance
- the instance of the object on which the addMethod will be invoked.pData
- the data that passed on to the addMethod that will be invoked.
RaccoonException
- if the addMethod and object pData don't match.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |