ch.sahits.model.java
Class BeanMethod

java.lang.Object
  extended by ch.sahits.model.java.BeanMethod
All Implemented Interfaces:
IBeanMethod

public class BeanMethod
extends java.lang.Object
implements IBeanMethod

Impletation of the IBeanMethod interface

Since:
2.1.0
Author:
Andi Hotz, Sahits GmbH

Constructor Summary
BeanMethod()
          Default constructor
 
Method Summary
 void addParameter(java.lang.String type, java.lang.String name)
          Add a new parameter
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
          Retrieve the method name
 java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Object>> getParameters()
          Retrieve the list of parameters
 java.lang.Class<?> getReturnType()
          Retrieve the return type
 EVisibility getVisibilty()
          Retrieve the visibility
 int hashCode()
           
 void setName(java.lang.String name)
          Set the method name
 void setReturnType(java.lang.Class<?> returnType)
          Set the Return Type
 void setVisibility(EVisibility visibility)
          Set the visibility
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanMethod

public BeanMethod()
Default constructor

Method Detail

addParameter

public void addParameter(java.lang.String type,
                         java.lang.String name)
Add a new parameter

Specified by:
addParameter in interface IBeanMethod
Parameters:
type -
name -

getParameters

public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Object>> getParameters()
Retrieve the list of parameters

Specified by:
getParameters in interface IBeanMethod
Returns:
list of parameters

getReturnType

public java.lang.Class<?> getReturnType()
Retrieve the return type

Specified by:
getReturnType in interface IBeanMethod
Returns:
return type

getVisibilty

public EVisibility getVisibilty()
Retrieve the visibility

Specified by:
getVisibilty in interface IBeanMethod
Returns:
visibility

setReturnType

public void setReturnType(java.lang.Class<?> returnType)
Set the Return Type

Specified by:
setReturnType in interface IBeanMethod
Parameters:
returnType -

setVisibility

public void setVisibility(EVisibility visibility)
Set the visibility

Specified by:
setVisibility in interface IBeanMethod
Parameters:
visibility -

getName

public java.lang.String getName()
Retrieve the method name

Specified by:
getName in interface IBeanMethod
Returns:
method name

setName

public void setName(java.lang.String name)
Set the method name

Specified by:
setName in interface IBeanMethod
Parameters:
name -

toString

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

hashCode

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

equals

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