Annotation Type ComboExtract


@Retention(RUNTIME) @Target({FIELD,TYPE}) public @interface ComboExtract
Combo 'ExtractBy' extractor with and/or operator.
Since:
0.2.1
Author:
code4crafter@gmail.com
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static enum 
    types of source for extracting.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The extractors to be combined.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Deprecated.
    since 0.4.2
    boolean
    Define whether the field can be null.
    If set to 'true' and the extractor get no result, the entire class will be discarded.
    Combining operation of extractors.
    The source for extracting.
  • Element Details

    • value

      ExtractBy[] value
      The extractors to be combined.
      Returns:
      the extractors to be combined
    • op

      Combining operation of extractors.
      Returns:
      combining operation of extractors
      Default:
      And
    • notNull

      boolean notNull
      Define whether the field can be null.
      If set to 'true' and the extractor get no result, the entire class will be discarded.
      Returns:
      whether the field can be null
      Default:
      false
    • source

      The source for extracting.
      It works only if you already added 'ExtractBy' to Class.
      Returns:
      the source for extracting
      Default:
      SelectedHtml
    • multi

      boolean multi
      Deprecated.
      since 0.4.2
      Define whether the extractor return more than one result. When set to 'true', the extractor return a list of string (so you should define the field as List).
      Deprecated since 0.4.2. This option is determined automatically by the class of field.
      Returns:
      whether the extractor return more than one result
      Default:
      false