ParameterType
Function parameter type definition
Operations
Compare
Compares two objects
method : public : Compare(rhs:System.Compare) ~ Int
Parameters
Name | Type | Description |
---|---|---|
rhs | Compare | compare object |
Return
Type | Description |
---|---|
Int | 0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater |
GetDesc
Get the function description
method : public : GetDesc() ~ String
Return
Type | Description |
---|---|
String | function description |
GetName
Get the function name
method : public : GetName() ~ String
Return
Type | Description |
---|---|
String | function name |
GetProps
Get parameter properties object descriptions
method : public : GetProps() ~ Map<String,ParameterType>
Return
Type | Description |
---|---|
Map<String,ParameterType> | properties object descriptions |
GetType
Get parameter type
method : public : GetType() ~ ParameterType->Type
Return
Type | Description |
---|---|
ParameterType->Type | parameter type |
HashID
Returns a hash ID for the given class
method : public : HashID() ~ Int
Return
Type | Description |
---|---|
Int | hash ID |
IsArray
Returns rather the schema specifies an array of entities
method : public : IsArray() ~ Bool
Return
Type | Description |
---|---|
Bool | true the scheme specifies array of entities, false otherwise |
New
Constructor
New(type:ParameterType->Type, )
Parameters
Name | Type | Description |
---|---|---|
type | ParameterType->Type | parameter type |
New
+Constructor
New(type:ParameterType->Type, desc:String)
Parameters
Name | Type | Description |
---|---|---|
type | ParameterType->Type | parameter type |
desc | String | description |
New
Constructor
New(req_params:String[], )
Parameters
Name | Type | Description |
---|---|---|
req_params | String | require parameters |
New
Constructor
New(type:ParameterType->Type)
Parameters
Name | Type | Description |
---|---|---|
type | ParameterType->Type | parameter type |
New
Constructor
New(type:ParameterType->Type, desc:String)
Parameters
Name | Type | Description |
---|---|---|
type | ParameterType->Type | parameter type |
desc | String | description |
New
Constructor
New(req_params:String[])
Parameters
Name | Type | Description |
---|---|---|
req_params | String | require parameters |
New
Constructor
New(req_params:String[], desc:String)
Parameters
Name | Type | Description |
---|---|---|
req_params | String | require parameters |
desc | String | description |
SetArray
Set schema to be an array of entities
method : public : SetArray(is_array:Bool) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
is_array | Bool | if true an array of entities, false other |
SetDesc
Set the function description
method : public : SetDesc(desc:String) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
desc | String | sets function description |
SetType
Set parameter type
method : public : SetType(type:ParameterType->Type) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
type | ParameterType->Type | parameter type |
ToJson
JSON element representation
method : public : ToJson() ~ JsonElement
Return
Type | Description |
---|---|
JsonElement | JSON element representation |
ToString
JSON string representation
method : public : ToString() ~ String
Return
Type | Description |
---|---|
String | JSON string representation |