|
|
|
@ -105,7 +105,8 @@ class PageModelExtractor {
|
|
|
|
|
default:
|
|
|
|
|
selector = new AndSelector(ExtractorUtils.getSelectors(extractBies));
|
|
|
|
|
}
|
|
|
|
|
fieldExtractor = new FieldExtractor(field, selector, FieldExtractor.Source.Html, comboExtract.notNull(), comboExtract.multi());
|
|
|
|
|
fieldExtractor = new FieldExtractor(field, selector, comboExtract.source() == ComboExtract.Source.RawHtml ? FieldExtractor.Source.RawHtml : FieldExtractor.Source.Html,
|
|
|
|
|
comboExtract.notNull(), comboExtract.multi());
|
|
|
|
|
Method setterMethod = getSetterMethod(clazz, field);
|
|
|
|
|
if (setterMethod != null) {
|
|
|
|
|
fieldExtractor.setSetterMethod(setterMethod);
|
|
|
|
@ -119,7 +120,8 @@ class PageModelExtractor {
|
|
|
|
|
ExtractBy extractBy = field.getAnnotation(ExtractBy.class);
|
|
|
|
|
if (extractBy != null) {
|
|
|
|
|
Selector selector = ExtractorUtils.getSelector(extractBy);
|
|
|
|
|
fieldExtractor = new FieldExtractor(field, selector, FieldExtractor.Source.Html, extractBy.notNull(), extractBy.multi());
|
|
|
|
|
fieldExtractor = new FieldExtractor(field, selector, extractBy.source() == ExtractBy.Source.RawHtml ? FieldExtractor.Source.RawHtml : FieldExtractor.Source.Html,
|
|
|
|
|
extractBy.notNull(), extractBy.multi());
|
|
|
|
|
Method setterMethod = getSetterMethod(clazz, field);
|
|
|
|
|
if (setterMethod != null) {
|
|
|
|
|
fieldExtractor.setSetterMethod(setterMethod);
|
|
|
|
|