Class ItemPropertyFromProperty.Settings

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

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

      • Settings

        public Settings()
    • Method Detail

      • getSourceKey

        @Description("The property key to read")
        public String getSourceKey()
      • setSourceKey

        public void setSourceKey​(String sourceKey)
      • getTargetKey

        @Description("The property key to write")
        public String getTargetKey()
      • setTargetKey

        public void setTargetKey​(String targetKey)
      • getPattern

        @Description("The RegEx to apply to the property pattern")
        public Pattern getPattern()
      • setPattern

        public void setPattern​(Pattern pattern)
      • getGroup

        @Description("Which RegEx group to use for the type")
        public int getGroup()
      • setGroup

        public void setGroup​(int group)
      • getDefaultValue

        @Description("The default type to use if the RegEx doesn\'t match or the property isn\'t a String (null for ignore)")
        public String getDefaultValue()
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • validate

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