Class AttachedDataChecker

    • Field Detail


        public static final String PROPERTY_KEY_EXCLUDED
        This public constant String represents the name of the property which is responsible for the list of excluded data.
        See Also:
        Constant Field Values

        public static final String PROPERTY_KEY_IS_EXCLUSION_REGEXP
        The name of the property, which is responsible for the decision if the excluded data should be treated as a regular expression instead of a (comma separated) list of strings.
        See Also:
        Constant Field Values

        public static final String PROPERTY_KEY_SEARCH_WITH_REGEXP_EXCLUSION
        See Also:
        Constant Field Values
    • Constructor Detail

      • AttachedDataChecker

        public AttachedDataChecker()
        Default constructor. No exclusion is done on data.
      • AttachedDataChecker

        public AttachedDataChecker​(Map<String,​String> params)
        Parameterized constructor. If "excluded" parameter is given, then the data, that "matches" this parameter value, won't appear in the result. Here "matches" can mean two things:
        • If the "isExclusionRegexp" parameter is not set to "true", then the parameter value is treated as a comma separated list. Any exact match from this list is a match.
        • The parameter is treated as a regular expression otherwise (see Pattern). A match to this regular expression is a match.
        params - a Map instance which contains String pairs. Key is the name of the parameter. (exclusion
    • Method Detail

      • getExcluded

        public chemaxon.checkers.util.DataExclusionList getExcluded()
        Any attached data that matches this descriptor won't appear as the result of this checker. (The descriptor can be interpreted as a comma separated list of excluded values or as a regular expression for such values. This is governed by the isExclusionRegexp() property, which can be set through the setExclusionRegexp(boolean) method.)
      • setExcluded

        public void setExcluded​(chemaxon.checkers.util.DataExclusionList excluded)
      • isExclusionRegexp

        public boolean isExclusionRegexp()
        Tells how to interpret the AtomLabels: A comma separated list or a regular expression. The value can be set through the setExcluded(DataExclusionList) method and retrieved through the getExcluded() method.
        true if the excluded data is a regular expression.
      • setExclusionRegexp

        public void setExclusionRegexp​(boolean value)
        Sets if the descriptor of the excluded-data (AtomLabels) should be treated as a regular expression (see also: isExclusionRegexp()