Class Split.Settings

  • All Implemented Interfaces:
    io.annot8.api.settings.Settings
    Enclosing class:
    Split

    public static class Split.Settings
    extends Object
    implements io.annot8.api.settings.Settings
    • Constructor Detail

      • Settings

        public Settings()
      • Settings

        public Settings​(Pattern splitOn,
                        boolean removeSourceContent,
                        Map<Integer,​String> groupProperties)
    • Method Detail

      • validate

        public boolean validate()
        Specified by:
        validate in interface io.annot8.api.settings.Settings
      • getSplitOn

        @Description("The pattern that text content will be split on")
        public Pattern getSplitOn()
      • setSplitOn

        public void setSplitOn​(Pattern splitOn)
      • isRemoveSourceContent

        @Description(value="Should the source Content be removed after successful processing?",
                     defaultValue="true")
        public boolean isRemoveSourceContent()
      • setRemoveSourceContent

        public void setRemoveSourceContent​(boolean removeSourceContent)
      • getGroupProperties

        @Description("Mapping of groups in the split regex to properties - if set, the value of the group will be assigned to the specified property on the content following the split")
        public Map<Integer,​String> getGroupProperties()
      • setGroupProperties

        public void setGroupProperties​(Map<Integer,​String> groupProperties)