public abstract class PropertyUtility extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PropertyUtility.PropertyCreatedListener<T extends ModelClass<? extends E>,E extends ModelProperty> |
| Constructor and Description |
|---|
PropertyUtility() |
| Modifier and Type | Method and Description |
|---|---|
static <P extends ModelProperty,T extends ModelClass<P>> |
buildProperties(Elements elementUtils,
T entity,
PropertyFactory<T,P> factoryProperty,
AnnotationUtility.AnnotationFilter propertyAnnotationFilter,
PropertyUtility.PropertyCreatedListener<T,P> listener)
Given a model clazz, define its properties.
|
static String |
getter(String beanName,
com.squareup.javapoet.TypeName beanClass,
ModelProperty property) |
static String |
setter(com.squareup.javapoet.TypeName beanClass,
ModelProperty property) |
static String |
setter(com.squareup.javapoet.TypeName beanClass,
String beanName,
ModelProperty property,
String value) |
public static <P extends ModelProperty,T extends ModelClass<P>> void buildProperties(Elements elementUtils, T entity, PropertyFactory<T,P> factoryProperty, AnnotationUtility.AnnotationFilter propertyAnnotationFilter, PropertyUtility.PropertyCreatedListener<T,P> listener)
elementUtils - entity - factoryProperty - propertyAnnotationFilter - if null, no filter is applied to annotationslistener - public static String getter(String beanName, com.squareup.javapoet.TypeName beanClass, ModelProperty property)
public static String setter(com.squareup.javapoet.TypeName beanClass, ModelProperty property)
public static String setter(com.squareup.javapoet.TypeName beanClass, String beanName, ModelProperty property, String value)
Copyright © 2017. All rights reserved.