public class MethodHandler extends java.lang.Object implements RevisionHandler
Constructor and Description |
---|
MethodHandler()
initializes the handler
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Class<?> c,
java.lang.reflect.Method method)
adds the specified method for the given class to its internal list.
|
void |
add(java.lang.String displayName,
java.lang.reflect.Method method)
adds the specified method for the property with the given displayname to
its internal list.
|
void |
clear()
removes all mappings
|
boolean |
contains(java.lang.Class<?> c)
checks whether a method is stored for the given class
|
boolean |
contains(java.lang.String displayName)
checks whether a method is stored for the given property
|
java.lang.reflect.Method |
get(java.lang.Class<?> c)
returns the stored method for the given class
|
java.lang.reflect.Method |
get(java.lang.String displayName)
returns the stored method for the given property
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.util.Enumeration<java.lang.Object> |
keys()
returns an enumeration over all currently stored custom methods, i.e.
|
boolean |
remove(java.lang.Class<?> c)
removes the method for the specified class from its internal list.
|
boolean |
remove(java.lang.String displayName)
removes the method for the property specified by the display name from its
internal list.
|
int |
size()
returns the number of currently stored Methods
|
java.lang.String |
toString()
returns the internal Hashtable (propety/class - method relationship) in a
string representation
|
public java.util.Enumeration<java.lang.Object> keys()
m_Methods
public void add(java.lang.String displayName, java.lang.reflect.Method method)
displayName
- the display name of the property to handle manuallymethod
- the method, which will be invoked by reflection to handle the
property manuallym_Methods
public void add(java.lang.Class<?> c, java.lang.reflect.Method method)
c
- the class to handle manuallymethod
- the method, which will be invoked by reflection to handle the
property manuallym_Methods
public boolean remove(java.lang.String displayName)
displayName
- the display name of the propery to remove the custom
method form_Methods
public boolean remove(java.lang.Class<?> c)
c
- the class to remove the custom method form_Methods
public boolean contains(java.lang.String displayName)
displayName
- the display name of the property to check for a methodm_Methods
public boolean contains(java.lang.Class<?> c)
c
- the class to check for a methodm_Methods
public java.lang.reflect.Method get(java.lang.String displayName)
displayName
- the display name of the property to retrieve the method
fornull
m_Methods
public java.lang.reflect.Method get(java.lang.Class<?> c)
c
- the class to retrieve the method fornull
m_Methods
public int size()
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler