com.wangjiegulu.rapidooo.api.OOOConversion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rapidooo-api Show documentation
Show all versions of rapidooo-api Show documentation
Android POJO Converter:Generate scalable and bindable domain objects java class file automatically in compile time.
package com.wangjiegulu.rapidooo.api;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Author: wangjie
* Email: [email protected]
* Date: 4/10/18.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface OOOConversion {
String targetFieldName();
Class> targetFieldType() default Object.class;
String targetFieldTypeId() default OOOConstants.NOT_SET;
// attach
String attachFieldName() default OOOConstants.NOT_SET;
// bind
Class> bindMethodClass() default Object.class;
String bindMethodName() default OOOConstants.NOT_SET;
String inverseBindMethodName() default OOOConstants.NOT_SET;
// conversion
Class> conversionMethodClass() default Object.class;
String conversionMethodName() default OOOConstants.NOT_SET;
String inverseConversionMethodName() default OOOConstants.NOT_SET;
}