|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.spif.persistence.PersistentProperty
Ignore - public for testing only.
A persistent property and how to access it.
Constructor Summary | |
protected |
PersistentProperty(java.lang.String name,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter)
Use newInstance |
Method Summary | |
protected java.lang.reflect.Method |
getGetter()
|
java.lang.String |
getName()
Returns the name of this property. |
java.lang.Object |
getOn(java.lang.Object object)
|
protected java.lang.reflect.Method |
getSetter()
|
java.lang.Class |
getType()
Returns the type of this property (not the containing type) |
boolean |
isMatched()
Returns whether this property is matched |
static PersistentProperty |
newInstance(java.lang.String name,
java.lang.Class type)
Creates a persistent property. |
protected void |
setGetter(java.lang.reflect.Method getter)
Sets the getter, and the property type, which is the return type of the getter |
void |
setOn(java.lang.Object object,
java.lang.Object value)
|
protected void |
setSetter(java.lang.reflect.Method setter)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected PersistentProperty(java.lang.String name, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
Method Detail |
public static PersistentProperty newInstance(java.lang.String name, java.lang.Class type)
MatchProperty
subclass is created, to make the property
eligible for matching by depentants of the type
name
- the name of the propertytype
- the type which possibly contains the property
(and not the type of the property itself)public java.lang.String getName()
public void setOn(java.lang.Object object, java.lang.Object value) throws ReflectionException
ReflectionException
public java.lang.Object getOn(java.lang.Object object) throws ReflectionException
ReflectionException
protected void setGetter(java.lang.reflect.Method getter)
protected void setSetter(java.lang.reflect.Method setter)
protected java.lang.reflect.Method getGetter()
protected java.lang.reflect.Method getSetter()
public java.lang.Class getType()
public boolean isMatched()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |