public class CandidateField extends Object
| Constructor and Description |
|---|
CandidateField(Field field,
Object containingObject)
Custom constructor that wraps field and its annotations (if any).
|
| Modifier and Type | Method and Description |
|---|---|
Field |
getField() |
Object |
getFieldValue(Object resultObject)
Get field value from a given object.
|
String |
getJsonAnnotationValue(boolean isAbsolutePath)
Get annotation value and transform JsonProperty value to a relative JsonPath, if required.
|
JsonPath |
getJsonPathAnnotation() |
String |
getJsonPathFromField()
Get annotation value from either annotation, if exists.
|
com.fasterxml.jackson.annotation.JsonProperty |
getJsonPropertyAnnotation() |
boolean |
isAppropriateForJsonPathUnmarshalling() |
public Object getFieldValue(Object resultObject) throws IllegalAccessException
resultObject - object from which value will be takenIllegalAccessException - reflection exceptionpublic Field getField()
public com.fasterxml.jackson.annotation.JsonProperty getJsonPropertyAnnotation()
public JsonPath getJsonPathAnnotation()
public String getJsonPathFromField()
public String getJsonAnnotationValue(boolean isAbsolutePath)
isAbsolutePath - if true, @JsonProperty value will be resoloved as relative; otherwise as absolutepublic boolean isAppropriateForJsonPathUnmarshalling()
throws IllegalAccessException
IllegalAccessExceptionCopyright © 2015 Elastic Path Software, Inc. All rights reserved.