com.mycompany.myproject.capi
Class MyFunctionRequest

java.lang.Object
  extended byorg.xins.client.AbstractCAPICallRequest
      extended bycom.mycompany.myproject.capi.MyFunctionRequest
All Implemented Interfaces:
Serializable

public final class MyFunctionRequest
extends AbstractCAPICallRequest

Request for a call to the MyFunction function.

An instance of this class is accepted by the corresponding call method in the CAPI class: CAPI.callMyFunction(MyFunctionRequest).

See Also:
CAPI, MyFunctionResult, Serialized Form

Constructor Summary
MyFunctionRequest()
          Constructs a new MyFunctionRequest instance.
 
Method Summary
 UnacceptableRequestException checkParameters()
          Validates whether this request is considered acceptable.
 Gender.Item getGender()
          Gets the value of the gender parameter.
 String getPersonLastName()
          Gets the value of the personLastName parameter.
 void setGender(Gender.Item gender)
          Sets or resets the gender parameter as a com.mycompany.myproject.types.Gender.Item.
 void setPersonLastName(String personLastName)
          Sets or resets the personLastName parameter as a String.
 
Methods inherited from class org.xins.client.AbstractCAPICallRequest
configuration, configure, functionName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFunctionRequest

public MyFunctionRequest()
Constructs a new MyFunctionRequest instance.

Method Detail

getGender

public Gender.Item getGender()
Gets the value of the gender parameter. If unset, null is returned.

Returns:
the value of the parameter, or null if unset.

setGender

public void setGender(Gender.Item gender)
Sets or resets the gender parameter as a com.mycompany.myproject.types.Gender.Item.

Parameters:
gender - the new value for the parameter, or null if it should be reset.

getPersonLastName

public String getPersonLastName()
Gets the value of the personLastName parameter. If unset, null is returned.

Returns:
the value of the parameter, or null if unset.

setPersonLastName

public void setPersonLastName(String personLastName)
Sets or resets the personLastName parameter as a String.

Parameters:
personLastName - the new value for the parameter, or null if it should be reset.

checkParameters

public UnacceptableRequestException checkParameters()
Validates whether this request is considered acceptable. If any constraints are violated, then an UnacceptableRequestException is returned.

This method is called automatically when this request is executed, so it typically does not need to be called manually in advance.

Returns:
an UnacceptableRequestException instance if this request is considered unacceptable, otherwise null.