public abstract class AbstractField<FV> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldNameIn |
protected String |
fieldNameOut |
protected com.github.drapostolos.typeparser.TypeParser |
typeParser |
protected FV |
value |
| Constructor and Description |
|---|
AbstractField() |
AbstractField(String fieldNameIn) |
AbstractField(String fieldNameIn,
String fieldNameOut,
FV value) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString(Object field) |
NestedField |
getAsComposite() |
ListField |
getAsList() |
PrimitiveField |
getAsPrimitive() |
String |
getFieldNameIn() |
String |
getFieldNameOut() |
FV |
getRawValue() |
Boolean |
isComposite() |
Boolean |
isList() |
Boolean |
isPrimitive() |
<T> T |
parse(FieldParser<FV,T> fieldParser) |
void |
rename(String newFieldName) |
void |
setValue(FV value) |
protected String fieldNameIn
protected String fieldNameOut
protected FV value
protected com.github.drapostolos.typeparser.TypeParser typeParser
public AbstractField(String fieldNameIn)
public AbstractField()
public String getFieldNameIn()
public String getFieldNameOut()
public Boolean isComposite()
public Boolean isList()
public Boolean isPrimitive()
public NestedField getAsComposite()
public ListField getAsList()
public PrimitiveField getAsPrimitive()
public FV getRawValue()
public <T> T parse(FieldParser<FV,T> fieldParser)
public void setValue(FV value)
public void rename(String newFieldName)
Copyright © 2019. All rights reserved.