Class IgnoreSchemaList

java.lang.Object
org.pgcodekeeper.core.model.difftree.IgnoreSchemaList
All Implemented Interfaces:
IIgnoreList

public class IgnoreSchemaList extends Object implements IIgnoreList
Implementation of ignore list specifically for schema filtering. Manages rules for showing or hiding database schemas based on pattern matching. Uses black list approach by default (show all, hide some).
  • Constructor Details

    • IgnoreSchemaList

      public IgnoreSchemaList()
  • Method Details

    • isShow

      public boolean isShow()
      Description copied from interface: IIgnoreList
      Gets the default show behavior.
      Specified by:
      isShow in interface IIgnoreList
      Returns:
      true if default is to show objects, false if default is to hide
    • setShow

      public void setShow(boolean isShow)
      Description copied from interface: IIgnoreList
      Sets the default show behavior for this ignore list.
      Specified by:
      setShow in interface IIgnoreList
      Parameters:
      isShow - true for show-all (blacklist), false for hide-all (whitelist)
    • getList

      public List<IgnoredObject> getList()
      Description copied from interface: IIgnoreList
      Gets the list of ignore rules.
      Specified by:
      getList in interface IIgnoreList
      Returns:
      list of ignored objects
    • clearList

      public void clearList()
      Clears all ignore rules from the list.
    • add

      public void add(IgnoredObject rule)
      Description copied from interface: IIgnoreList
      Adds an ignore rule to the list.
      Specified by:
      add in interface IIgnoreList
      Parameters:
      rule - the ignore rule to add
    • getNameStatus

      public boolean getNameStatus(String schema)
      Checks if a schema should be shown based on configured rules.
      Parameters:
      schema - the schema name to check
      Returns:
      true if schema should be shown, false if it should be hidden
    • getListCode

      public String getListCode()
      Generates string representation of the ignore list configuration.
      Returns:
      formatted string showing all rules and default behavior