jfun.yan.function
Class Property2Signature

java.lang.Object
  extended by jfun.yan.function.Property2Signature
All Implemented Interfaces:
Signature

public class Property2Signature
extends java.lang.Object
implements Signature

To adapt a Java Bean property description to a Signature object.

Zephyr Business Solution

Author:
Ben Yu

Constructor Summary
Property2Signature(java.lang.Class component_type, java.lang.Object key, java.lang.Class prop_type)
          To create a Property2Signature object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Get the name of the signature.
 java.lang.Class[] getParameterTypes()
          Gets the parameter types of the function.
 java.lang.Class getReturnType()
          Gets the return type of the function.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property2Signature

public Property2Signature(java.lang.Class component_type,
                          java.lang.Object key,
                          java.lang.Class prop_type)
To create a Property2Signature object.

Parameters:
component_type - the type of the java bean.
key - the property key.
prop_type - the property type.
Method Detail

getReturnType

public java.lang.Class getReturnType()
Description copied from interface: Signature
Gets the return type of the function.

Specified by:
getReturnType in interface Signature
Returns:
the return type.

getParameterTypes

public java.lang.Class[] getParameterTypes()
Description copied from interface: Signature
Gets the parameter types of the function.

Specified by:
getParameterTypes in interface Signature
Returns:
the parameter types.

getName

public java.lang.String getName()
Description copied from interface: Signature
Get the name of the signature.

Specified by:
getName in interface Signature

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object