|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.cdm.core.NamingRule
public abstract class NamingRule
Class used for representing Naming Rules.
Field Summary | |
---|---|
protected Set<NamingRuleIdentifier> |
identifiers
The identifiers of this naming rule. |
protected String |
name
The rule's name. |
protected int |
priority
The rule's priority. |
static String |
UNDEFINED_NAME
Default name set to naming rules if no other can be found. |
static int |
UNDEFINED_PRIORITY
Default priority set to naming rules if no other can be found. |
Constructor Summary | |
---|---|
NamingRule()
|
Method Summary | |
---|---|
int |
compareTo(NamingRule other)
|
boolean |
equals(Object obj)
|
Set<NamingRuleIdentifier> |
getIdentifiers()
Returns the identifiers of the Naming Rule. |
String |
getName()
Returns the name of the Naming Rule. |
int |
getPriority()
Returns the priority of the Naming Rule. |
int |
hashCode()
|
NamingRule |
intersect(Set<NamingRuleIdentifier> attributes)
Checks if the provided attributes match this naming rule. |
boolean |
isEmpty()
Checks whether this naming rule has any Naming Identifiers. |
boolean |
matches(Set<String> attributes)
Checks if the provided attributes match this naming rule. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNDEFINED_PRIORITY
public static final String UNDEFINED_NAME
protected int priority
protected String name
protected Set<NamingRuleIdentifier> identifiers
Constructor Detail |
---|
public NamingRule()
Method Detail |
---|
public final Set<NamingRuleIdentifier> getIdentifiers()
public final String getName()
public final int getPriority()
public final boolean isEmpty()
true
if the rule is empty, otherwise
false
.public int compareTo(NamingRule other)
compareTo
in interface Comparable<NamingRule>
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean matches(Set<String> attributes)
attributes
- the attributes to be checked.
true
if the attributes match this rule, otherwise
false
.public NamingRule intersect(Set<NamingRuleIdentifier> attributes)
attributes
- the attributes to be checked.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |