schemacrawler.schemacrawler
Class InclusionRule

java.lang.Object
  extended by schemacrawler.schemacrawler.InclusionRule
All Implemented Interfaces:
java.io.Serializable

public final class InclusionRule
extends java.lang.Object
implements java.io.Serializable

Specifies inclusion and exclusion patterns that can be applied to the names of database objects.

Author:
Sualeh Fatehi
See Also:
Serialized Form

Field Summary
static java.lang.String ALL
          Include everything.
static java.lang.String NONE
          Exclude nothing
 
Constructor Summary
InclusionRule(java.util.regex.Pattern patternInclude, java.util.regex.Pattern patternExclude)
          Set include and exclude patterns.
InclusionRule(java.lang.String patternInclude, java.lang.String patternExclude)
          Set include and exclude patterns.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean include(java.lang.String name)
          Checks whether to add a named object after considering the include and exclude patterns.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final java.lang.String NONE
Exclude nothing

See Also:
Constant Field Values

ALL

public static final java.lang.String ALL
Include everything.

See Also:
Constant Field Values
Constructor Detail

InclusionRule

public InclusionRule(java.util.regex.Pattern patternInclude,
                     java.util.regex.Pattern patternExclude)
Set include and exclude patterns.

Parameters:
patternInclude - Inclusion pattern
patternExclude - Exclusion pattern

InclusionRule

public InclusionRule(java.lang.String patternInclude,
                     java.lang.String patternExclude)
Set include and exclude patterns.

Parameters:
patternInclude - Inclusion pattern
patternExclude - Exclusion pattern
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

include

public boolean include(java.lang.String name)
Checks whether to add a named object after considering the include and exclude patterns.

Parameters:
name - Name to check
Returns:
Whether the name should be included or not

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2003-2009 Sualeh Fatehi. All Rights Reserved.