return true;
}
//To make the below code a bit more consice...START
boolean bNullOk = getPARInt().getPARDupNullLen().isNullOk();
RCLength rclArray = getPARInt().getPARDupNullLen().getRCLength();
boolean bDupsOk = getPARInt().getPARDupNullLen().areDupsOk();
boolean bOrdered = getPARInt().getPAROrderDir().isOrdered();
RangeConfig rcLmnt = getPARInt().getPARIElement().getRangeConfig();
boolean bAXIfBad = (s_callingClsFnc != null || s_varName != null);
//To make the below code a bit more consice...END
if(!bNullOk) {
if(isNull()) {
setPAViolation(new PAViolation(PAViolation.getType_NULL()));
if(bAXIfBad) {
throwAXIllegal(s_callingClsFnc, s_varName, "isNull() equals true.");
}
return false;
}
} else if(isNull()) {
//A null array cannot be analyzed further.
declareNoViolation();
return true;
}
//The array is not null.
if(!rclArray.isValid(getLength())) {
setPAViolation(new PAViolation(PAViolation.getType_LENGTH()));
if(bAXIfBad) {
throwAXIllegal(s_callingClsFnc, s_varName, "the number of elements in the array (" + getLength() + ") is illegal according to getPARInt().getArrayRCL().isValid().");
}
return false;