v2026.2.1
All Bundles

ParameterType

Function parameter type definition

Implements: Compare

Operations

AddProp

Set properties

method : public : AddProp() ~ Nil

Parameters

NameTypeDescription

GetDesc

Get the function description

method : public : GetDesc() ~ String

Return

TypeDescription
Stringfunction description

GetProps

Get parameter properties object descriptions

method : public : GetProps() ~ Map<String,ParameterType>

Return

TypeDescription
Map<String,ParameterType>properties object descriptions

GetType

Get parameter type

method : public : GetType() ~ ParameterType->Type

Return

TypeDescription
ParameterType->Typeparameter type

HashID

Returns a hash ID for the given class

method : public : HashID() ~ Int

Return

TypeDescription
Inthash ID

IsArray

Returns rather the schema specifies an array of entities

method : public : IsArray() ~ Bool

Return

TypeDescription
Booltrue the scheme specifies array of entities, false otherwise

New

Constructor

New(type:ParameterType->Type, is_array:Bool)

Parameters

NameTypeDescription
typeParameterType->Typeparameter type
is_arrayBooltrue if array, false otherwise

New

Constructor

New(type:ParameterType->Type, is_array:Bool, desc:String)

Parameters

NameTypeDescription
typeParameterType->Typeparameter type
is_arrayBooltrue if array, false otherwise
descStringdescription

New

Constructor

New(req_params:String[], is_array:Bool)

Parameters

NameTypeDescription
req_paramsStringrequire parameters
is_arrayBooltrue if array, false otherwise

New

Constructor

New(type:ParameterType->Type)

Parameters

NameTypeDescription
typeParameterType->Typeparameter type

New

Constructor

New(type:ParameterType->Type, desc:String)

Parameters

NameTypeDescription
typeParameterType->Typeparameter type
descStringdescription

New

Constructor

New(req_params:String[])

Parameters

NameTypeDescription
req_paramsStringrequire parameters

New

Constructor

New(req_params:String[], desc:String)

Parameters

NameTypeDescription
req_paramsStringrequire parameters
descStringdescription

SetArray

Set schema to be an array of entities

method : public : SetArray(is_array:Bool) ~ Nil

Parameters

NameTypeDescription
is_arrayBoolif true an array of entities, false other

SetDesc

Set the function description

method : public : SetDesc(desc:String) ~ Nil

Parameters

NameTypeDescription
descStringsets function description

SetType

Set parameter type

method : public : SetType(type:ParameterType->Type) ~ Nil

Parameters

NameTypeDescription
typeParameterType->Typeparameter type

ToJson

JSON element representation

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON element representation

ToString

JSON string representation

method : public : ToString() ~ String

Return

TypeDescription
StringJSON string representation