public abstract class AbstractMainParam<T> extends Object implements RestFieldValue<T>
| Modifier and Type | Field and Description |
|---|---|
protected RestField<T> |
delegateField |
protected Object |
instance |
protected Field |
listMainParamField |
protected int |
ordinal |
protected int |
totalMainParams |
| Constructor and Description |
|---|
AbstractMainParam(int ordinal,
int totalMainParams,
Field listMainParamField,
RestField<T> delegateField,
Object instance) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
Field |
getField() |
String |
getName() |
Class<T> |
getType() |
boolean |
isRequired() |
void |
setValue(T value) |
protected abstract String |
valueToString(T value) |
protected final int ordinal
protected final int totalMainParams
protected final Field listMainParamField
protected final Object instance
public String getDescription()
getDescription in interface RestField<T>public boolean isRequired()
isRequired in interface RestField<T>public void setValue(T value) throws IllegalArgumentException, IllegalAccessException
setValue in interface RestFieldValue<T>IllegalArgumentExceptionIllegalAccessExceptionpublic Field getField()
getField in interface RestFieldValue<T>Copyright © 2013–2020. All rights reserved.