in agents-common/src/main/java/org/apache/ranger/plugin/model/RangerServiceDef.java [1861:2011]
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
RangerResourceDef other = (RangerResourceDef) obj;
if (description == null) {
if (other.description != null) {
return false;
}
} else if (!description.equals(other.description)) {
return false;
}
if (excludesSupported == null) {
if (other.excludesSupported != null) {
return false;
}
} else if (!excludesSupported.equals(other.excludesSupported)) {
return false;
}
if (label == null) {
if (other.label != null) {
return false;
}
} else if (!label.equals(other.label)) {
return false;
}
if (level == null) {
if (other.level != null) {
return false;
}
} else if (!level.equals(other.level)) {
return false;
}
if (lookupSupported == null) {
if (other.lookupSupported != null) {
return false;
}
} else if (!lookupSupported.equals(other.lookupSupported)) {
return false;
}
if (mandatory == null) {
if (other.mandatory != null) {
return false;
}
} else if (!mandatory.equals(other.mandatory)) {
return false;
}
if (matcher == null) {
if (other.matcher != null) {
return false;
}
} else if (!matcher.equals(other.matcher)) {
return false;
}
if (matcherOptions == null) {
if (other.matcherOptions != null) {
return false;
}
} else if (!matcherOptions.equals(other.matcherOptions)) {
return false;
}
if (name == null) {
if (other.name != null) {
return false;
}
} else if (!name.equals(other.name)) {
return false;
}
if (parent == null) {
if (other.parent != null) {
return false;
}
} else if (!parent.equals(other.parent)) {
return false;
}
if (rbKeyDescription == null) {
if (other.rbKeyDescription != null) {
return false;
}
} else if (!rbKeyDescription.equals(other.rbKeyDescription)) {
return false;
}
if (rbKeyLabel == null) {
if (other.rbKeyLabel != null) {
return false;
}
} else if (!rbKeyLabel.equals(other.rbKeyLabel)) {
return false;
}
if (rbKeyValidationMessage == null) {
if (other.rbKeyValidationMessage != null) {
return false;
}
} else if (!rbKeyValidationMessage
.equals(other.rbKeyValidationMessage)) {
return false;
}
if (recursiveSupported == null) {
if (other.recursiveSupported != null) {
return false;
}
} else if (!recursiveSupported.equals(other.recursiveSupported)) {
return false;
}
if (type == null) {
if (other.type != null) {
return false;
}
} else if (!type.equals(other.type)) {
return false;
}
if (uiHint == null) {
if (other.uiHint != null) {
return false;
}
} else if (!uiHint.equals(other.uiHint)) {
return false;
}
if (validationMessage == null) {
if (other.validationMessage != null) {
return false;
}
} else if (!validationMessage.equals(other.validationMessage)) {
return false;
}
if (validationRegEx == null) {
if (other.validationRegEx != null) {
return false;
}
} else if (!validationRegEx.equals(other.validationRegEx)) {
return false;
}
if (accessTypeRestrictions == null) {
if (other.accessTypeRestrictions != null) {
return false;
}
} else if (!accessTypeRestrictions.equals(other.accessTypeRestrictions)) {
return false;
}
if (isValidLeaf == null) {
return other.isValidLeaf == null;
} else {
return isValidLeaf.equals(other.isValidLeaf);
}
}