Annotation Type Formatter
-
@Retention(RUNTIME) @Target(FIELD) public @interface Formatter
Define how the result string is convert to an object for field.- Since:
- 0.3.2
- Author:
- code4crafter@gmail.com
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.Class<ObjectFormatter>
DEFAULT_FORMATTER
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends ObjectFormatter>
formatter
If there are more than one formatter for a class, just specify the implement.java.lang.Class
subClazz
Specific the class of field of class of elements in collection for field.java.lang.String[]
value
Set formatter params.
-
-
-
Field Detail
-
DEFAULT_FORMATTER
static final java.lang.Class<ObjectFormatter> DEFAULT_FORMATTER
-
-
-
formatter
java.lang.Class<? extends ObjectFormatter> formatter
If there are more than one formatter for a class, just specify the implement.- Returns:
- implement
- Default:
- us.codecraft.webmagic.model.formatter.ObjectFormatter.class
-
-