In package com.eden.orchid.api.options.extractors

class com.eden.orchid.api.options.extractors.OptionsHolderOptionExtractor

Source Types | Item Type | Coercion | |------------|----------| | JSONObject | direct | | Map | new JSONObject from map | | JSONArray | direct | | anything[] | new JSONArray from array | | List | new JSONArray from list | ### Destination Types | Field Type | Annotation | Default Value | |-------------------------------|--------------|--------------------------| | ? extends OptionsHolder | none | null | | List | none | null | ### Notes This can deserialize any JSONObject into any class that implements OptionsHolder, and can also handle any generic List of OptionsHolders of the same Class.

Constructors

public <init>(Provider, Provider, com.eden.orchid.api.options.extractors.OptionsHolderOptionExtractor.Converter)

Parameters:

Methods

public final getDefaultValue(java.lang.reflect.Field): com.eden.orchid.api.options.OptionsHolder

Parameters:
  • field:
public final getOption(java.lang.reflect.Field, kotlin.Any, kotlin.String): com.eden.orchid.api.options.OptionsHolder

Parameters:
  • field:
  • sourceObject: Any
  • key: String
public final acceptsClass(java.lang.Class((kotlin.Any))): Boolean

Parameters:
  • clazz: