Package com.ibm.di.cdm.core
Class NamingRuleIdentifier
- java.lang.Object
-
- com.ibm.di.cdm.core.NamingRuleIdentifier
-
- Direct Known Subclasses:
DefaultNamingRuleIdentifier
public abstract class NamingRuleIdentifier extends java.lang.ObjectClass used for representing Naming Rule Identifiers (attributes taking part in a naming rule).
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringattributeNameThe name of the attribute.protected booleanisRelationshipSourceThe role of this attribute in the relationship it represent.protected booleanisRequiredWhether this attribute is needed by the rule.protected java.lang.StringrelatedClassThe class type of the item which this attribute links to.protected java.lang.StringrelationshipTypeThe type of the relationship represented by this attribute.
-
Constructor Summary
Constructors Constructor Description NamingRuleIdentifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAttributeName()Returns the attribute name.java.lang.StringgetRelatedClass()Returns the class type of the item which this attribute links to.java.lang.StringgetRelationshipType()Returns the type of the relationship represented by this attribute.inthashCode()booleanisImplicit()Returns whether this attribute is implicit or not.booleanisRelationshipSource()Returns if this attribute represents the source of a relationship.booleanisRequired()Returns if this attribute is required.java.lang.StringtoString()
-
-
-
Field Detail
-
attributeName
protected java.lang.String attributeName
The name of the attribute.
-
relatedClass
protected java.lang.String relatedClass
The class type of the item which this attribute links to. Only relevant for implicit attributes.
-
relationshipType
protected java.lang.String relationshipType
The type of the relationship represented by this attribute. Only relevant for implicit attributes.
-
isRelationshipSource
protected boolean isRelationshipSource
The role of this attribute in the relationship it represent. It can be either the source or the target. Only relevant for implicit attributes.
-
isRequired
protected boolean isRequired
Whether this attribute is needed by the rule. Iftruethis attribute must be present for the rule to match. On the other hand, iffalse, this attribute must not be present.
-
-
Method Detail
-
getAttributeName
public final java.lang.String getAttributeName()
Returns the attribute name.- Returns:
- name.
-
getRelatedClass
public final java.lang.String getRelatedClass()
Returns the class type of the item which this attribute links to.- Returns:
- related class type.
-
getRelationshipType
public final java.lang.String getRelationshipType()
Returns the type of the relationship represented by this attribute.- Returns:
- relationship type.
-
isRelationshipSource
public final boolean isRelationshipSource()
Returns if this attribute represents the source of a relationship.- Returns:
trueif this attribute is implicit and source of the relationship, otherwisefalse.
-
isRequired
public final boolean isRequired()
Returns if this attribute is required.- Returns:
trueif this attribute required, otherwisefalse.
-
isImplicit
public final boolean isImplicit()
Returns whether this attribute is implicit or not.- Returns:
trueif this attribute is implicit, otherwisefalse.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-