public class ResourceValueValidator extends Object
ResourceValue.
Validates that:
JsonProperty.
This avoids confusion with the java bean standard, which requires that getter methods for boolean properties
start with 'is'.
| Modifier and Type | Field and Description |
|---|---|
protected Elements |
elements |
protected Messager |
messager |
protected TypeUtils |
typeUtils |
| Constructor and Description |
|---|
ResourceValueValidator(ProcessingEnvironment processingEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(TypeElement resourceValueType)
Validates the given type.
|
protected final Messager messager
protected final Elements elements
protected final TypeUtils typeUtils
public ResourceValueValidator(ProcessingEnvironment processingEnvironment)
public boolean isValid(TypeElement resourceValueType)
resourceValueType - the type annotated with ResourceValue