Package com.mycompany.myproject.capi
Class MyFunctionRequest
- java.lang.Object
-
- org.xins.client.AbstractCAPICallRequest
-
- com.mycompany.myproject.capi.MyFunctionRequest
-
- All Implemented Interfaces:
java.io.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
Constructors Constructor Description MyFunctionRequest()Constructs a newMyFunctionRequestinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnacceptableRequestExceptioncheckParameters()Validates whether this request is considered acceptable.Gender.ItemgetGender()Gets the value of the gender parameter.java.lang.StringgetPersonLastName()Gets the value of the personLastName parameter.voidsetGender(Gender.Item gender)Sets or resets the gender parameter as acom.mycompany.myproject.types.Gender.Item.voidsetPersonLastName(java.lang.String personLastName)Sets or resets the personLastName parameter as aString.-
Methods inherited from class org.xins.client.AbstractCAPICallRequest
configuration, configure, equals, functionName, hashCode
-
-
-
-
Method Detail
-
getGender
public Gender.Item getGender()
Gets the value of the gender parameter. If unset,nullis returned.- Returns:
- the value of the parameter, or
nullif unset.
-
setGender
public void setGender(Gender.Item gender)
Sets or resets the gender parameter as acom.mycompany.myproject.types.Gender.Item.- Parameters:
gender- the new value for the parameter, ornullif it should be reset.
-
getPersonLastName
public java.lang.String getPersonLastName()
Gets the value of the personLastName parameter. If unset,nullis returned.- Returns:
- the value of the parameter, or
nullif unset.
-
setPersonLastName
public void setPersonLastName(java.lang.String personLastName)
Sets or resets the personLastName parameter as aString.- Parameters:
personLastName- the new value for the parameter, ornullif it should be reset.
-
checkParameters
public UnacceptableRequestException checkParameters()
Validates whether this request is considered acceptable. If any constraints are violated, then anUnacceptableRequestExceptionis returned.This method is called automatically when this request is executed, so it typically does not need to be called manually in advance.
- Specified by:
checkParametersin classAbstractCAPICallRequest- Returns:
- an
UnacceptableRequestExceptioninstance if this request is considered unacceptable, otherwisenull.
-
-