public class ResourceDraftValueValidator extends Object
ResourceDraftValue
.
Validates that:
FactoryMethod
is specified ResourceDraftValue.factoryMethods()
FactoryMethod.parameterNames()
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 |
---|
ResourceDraftValueValidator(ProcessingEnvironment processingEnvironment) |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(TypeElement resourceDraftType)
Validates the given type.
|
protected final Messager messager
protected final Elements elements
protected final TypeUtils typeUtils
public ResourceDraftValueValidator(ProcessingEnvironment processingEnvironment)
public boolean isValid(TypeElement resourceDraftType)
resourceDraftType
- the type annotated with ResourceDraftValue