@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ReconField {
/**
* Value indicates whether or not the values from the specified sources should be compared or will be used to display values or reference within a rule.
*
* @return The value if sources should be compared, defaults to true.
*/
boolean compareSources() default true;
/**
* Value indicates the format that should be used to display the value in the report.
*
* @return The format specified, defaulting to native.
*/
ReconDisplayFormat displayFormat() default ReconDisplayFormat.NATIVE;
/**
* Value indicates the ID value of the field used for matching source values up to the field.
*
* @return The ID of the field.
*/
String id();
/**
* Value indicates the label that should be displayed in the report for the field.
*
* @return The label value specified, defaults to an empty string.
*/
String label() default "";
/**
* Value that indicates the sources that should be compared for differences.
*
* @return The list of sources for comparison.
*/
ReconSource[] sourcesToCompare() default {};
}
@ReconField(id = CUSTOMER_ID, label = "Customer ID") private String customerId;
@ReconField(id = NAME, label = "NAME", compareSources = false) private String name;
@ReconField(id = PRIVATE_PLACEMENT_FLAG, label = "PRIVATE PLACEMENT FLAG", sourcesToCompare ={ ReconSource.LEGACY, ReconSource.PACE })
private String privatePlacementFlag;
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ReconCustomRule {
/**
* Value indicates the parameters used to instantiate a custom rule processor, the default value is no parameters.
*
* @return The String[] of parameters to instantiate a custom rule processor.
*/
String[] params() default {};
/**
* Value indicates the class of the custom rule processor to be used in comparing the values from each source.
*
* @return The class of the custom rule processor.
*/
Class<?> processor() default DefaultReconRule.class;
}
@ReconField(id = STREET_CUSIP, label = "STREET CUSIP", compareSources = false) @ReconCustomRule(processor = SkipNonUSExchangeComparisonRule.class) private String streetCusip;
@ReconField(id = USD_MKT_CAP, label = "MARKET CAP USD", displayFormat = ReconDisplayFormat.NUMERIC_WHOLE, sourcesToCompare =
{ ReconSource.LEGACY, ReconSource.PACE, ReconSource.BOB_PRCM })
@ReconCustomRule(processor = ToleranceAmountRule.class, params = { "10000" })
private BigDecimal usdMktCap;
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有