com.carlosbcruz.access.model
Class Function

java.lang.Object
  extended by com.carlosbcruz.access.model.Function

public class Function
extends java.lang.Object

Store a function information


Constructor Summary
Function()
           
 
Method Summary
 void addComment(java.lang.String comment)
           
 void addComplexParameter(ComplexParameter parameter)
          Add a complex parameter
 void addSimpleParameter(SimpleParameter parameter)
          Add a simple parameter if it does not exist.
 java.lang.String getComment()
           
 ComplexParameter getComplexParameter(int i)
          Retrieve the complex parameter of relative position i
 java.lang.String getName()
           
 int getNumberOfComplexParameters()
          Inform the number of complex parameters
 int getNumberOfSimpleParameters()
          Inform the number of parameters
 SimpleParameter getSimpleParameter(int i)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Function

public Function()
Method Detail

getSimpleParameter

public SimpleParameter getSimpleParameter(int i)
Parameters:
i - parameter relative position
Returns:
The simple parameter

addSimpleParameter

public void addSimpleParameter(SimpleParameter parameter)
Add a simple parameter if it does not exist.

Parameters:
parameter - the simple parameter

getNumberOfSimpleParameters

public int getNumberOfSimpleParameters()
Inform the number of parameters

Returns:
the number of parameters

getComplexParameter

public ComplexParameter getComplexParameter(int i)
Retrieve the complex parameter of relative position i

Parameters:
i - The relative position
Returns:
the complex parameter

addComplexParameter

public void addComplexParameter(ComplexParameter parameter)
Add a complex parameter

Parameters:
parameter - the complex parameter

getNumberOfComplexParameters

public int getNumberOfComplexParameters()
Inform the number of complex parameters

Returns:
the number of complex parameters

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getComment

public java.lang.String getComment()
Returns:
Returns the comment.

addComment

public void addComment(java.lang.String comment)
Parameters:
comment - The comment to set.