Class SettingSearchInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public final class SettingSearchInfo
    extends java.lang.Object
    implements java.io.Serializable
    Defines how to search for a setting. Searching is possible for name, section or both. A search is possible for one setting-type (long/regular) at a time only. Name and section are not case-sensitive.
    See Also:
    Serialized Form
    • Method Detail

      • section

        public SettingSearchInfo section​(java.lang.String section,
                                         SettingSearchInfo.MatchKind matchKind)
        Sets the section to search for and the match kind to search with.
        Parameters:
        section - section to search for
        matchKind - match-kind for the given section name
        Returns:
        current SettingSearchInfo instance
      • longSetting

        public SettingSearchInfo longSetting​(boolean longSetting)
        Whether to search for long or for regular settings. Default is false (regular setting).
        Parameters:
        longSetting - if true, search will be performed to long settings
        Returns:
        current SettingSearchInfo instance
      • getName

        public java.lang.String getName()
        Returns:
        the name to search for
      • getSection

        public java.lang.String getSection()
        Returns:
        the section to search for
      • isLong

        public boolean isLong()
        Returns:
        whether to search for long or regular settings
      • isValid

        public boolean isValid()
        Returns:
        true if this is a valid SettingSearchInfo, which means that either name or section contain a value that is not null or empty.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object