public void setNmTokensDefBuff(CFBamNmTokensDefBuff src) {
   super.setAtomBuff(src);
   setRequiredMaxLen(src.getRequiredMaxLen());
   setOptionalInitValue(src.getOptionalInitValue());
   setOptionalDefaultValue(src.getOptionalDefaultValue());
   setOptionalNullValue(src.getOptionalNullValue());
   setOptionalUnknownValue(src.getOptionalUnknownValue());
   setRequiredShowLines(src.getRequiredShowLines());
 }
 public int compareTo(Object obj) {
   if (obj == null) {
     return (-1);
   } else if (obj instanceof CFBamNmTokensDefBuff) {
     CFBamNmTokensDefBuff rhs = (CFBamNmTokensDefBuff) obj;
     int retval = super.compareTo(rhs);
     if (retval != 0) {
       return (retval);
     }
     if (getRequiredMaxLen() < rhs.getRequiredMaxLen()) {
       return (-1);
     } else if (getRequiredMaxLen() > rhs.getRequiredMaxLen()) {
       return (1);
     }
     if (getOptionalInitValue() != null) {
       if (rhs.getOptionalInitValue() != null) {
         int cmp = getOptionalInitValue().compareTo(rhs.getOptionalInitValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalInitValue() != null) {
         return (-1);
       }
     }
     if (getOptionalDefaultValue() != null) {
       if (rhs.getOptionalDefaultValue() != null) {
         int cmp = getOptionalDefaultValue().compareTo(rhs.getOptionalDefaultValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalDefaultValue() != null) {
         return (-1);
       }
     }
     if (getOptionalNullValue() != null) {
       if (rhs.getOptionalNullValue() != null) {
         int cmp = getOptionalNullValue().compareTo(rhs.getOptionalNullValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalNullValue() != null) {
         return (-1);
       }
     }
     if (getOptionalUnknownValue() != null) {
       if (rhs.getOptionalUnknownValue() != null) {
         int cmp = getOptionalUnknownValue().compareTo(rhs.getOptionalUnknownValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalUnknownValue() != null) {
         return (-1);
       }
     }
     if (getRequiredShowLines() < rhs.getRequiredShowLines()) {
       return (-1);
     } else if (getRequiredShowLines() > rhs.getRequiredShowLines()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFBamValuePKey) {
     CFBamValuePKey rhs = (CFBamValuePKey) obj;
     if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
       return (-1);
     } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
       return (1);
     }
     if (getRequiredId() < rhs.getRequiredId()) {
       return (-1);
     } else if (getRequiredId() > rhs.getRequiredId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFBamValueHPKey) {
     CFBamValueHPKey rhs = (CFBamValueHPKey) obj;
     {
       int lhsRequiredRevision = getRequiredRevision();
       int rhsRequiredRevision = rhs.getRequiredRevision();
       if (lhsRequiredRevision < rhsRequiredRevision) {
         return (-1);
       } else if (lhsRequiredRevision > rhsRequiredRevision) {
         return (1);
       }
     }
     if (getRequiredTenantId() < rhs.getRequiredTenantId()) {
       return (-1);
     } else if (getRequiredTenantId() > rhs.getRequiredTenantId()) {
       return (1);
     }
     if (getRequiredId() < rhs.getRequiredId()) {
       return (-1);
     } else if (getRequiredId() > rhs.getRequiredId()) {
       return (1);
     }
     return (0);
   } else if (obj instanceof CFBamNmTokensDefHBuff) {
     CFBamNmTokensDefHBuff rhs = (CFBamNmTokensDefHBuff) obj;
     int retval = super.compareTo(rhs);
     if (retval != 0) {
       return (retval);
     }
     if (getRequiredMaxLen() < rhs.getRequiredMaxLen()) {
       return (-1);
     } else if (getRequiredMaxLen() > rhs.getRequiredMaxLen()) {
       return (1);
     }
     if (getOptionalInitValue() != null) {
       if (rhs.getOptionalInitValue() != null) {
         int cmp = getOptionalInitValue().compareTo(rhs.getOptionalInitValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalInitValue() != null) {
         return (-1);
       }
     }
     if (getOptionalDefaultValue() != null) {
       if (rhs.getOptionalDefaultValue() != null) {
         int cmp = getOptionalDefaultValue().compareTo(rhs.getOptionalDefaultValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalDefaultValue() != null) {
         return (-1);
       }
     }
     if (getOptionalNullValue() != null) {
       if (rhs.getOptionalNullValue() != null) {
         int cmp = getOptionalNullValue().compareTo(rhs.getOptionalNullValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalNullValue() != null) {
         return (-1);
       }
     }
     if (getOptionalUnknownValue() != null) {
       if (rhs.getOptionalUnknownValue() != null) {
         int cmp = getOptionalUnknownValue().compareTo(rhs.getOptionalUnknownValue());
         if (cmp != 0) {
           return (cmp);
         }
       } else {
         return (1);
       }
     } else {
       if (rhs.getOptionalUnknownValue() != null) {
         return (-1);
       }
     }
     if (getRequiredShowLines() < rhs.getRequiredShowLines()) {
       return (-1);
     } else if (getRequiredShowLines() > rhs.getRequiredShowLines()) {
       return (1);
     }
     return (0);
   } else {
     int retval = super.compareTo(obj);
     return (retval);
   }
 }
 public boolean equals(Object obj) {
   if (obj == null) {
     return (false);
   } else if (obj instanceof CFBamNmTokensDefBuff) {
     CFBamNmTokensDefBuff rhs = (CFBamNmTokensDefBuff) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     if (getRequiredMaxLen() != rhs.getRequiredMaxLen()) {
       return (false);
     }
     if (getOptionalInitValue() != null) {
       if (rhs.getOptionalInitValue() != null) {
         if (!getOptionalInitValue().equals(rhs.getOptionalInitValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalInitValue() != null) {
         return (false);
       }
     }
     if (getOptionalDefaultValue() != null) {
       if (rhs.getOptionalDefaultValue() != null) {
         if (!getOptionalDefaultValue().equals(rhs.getOptionalDefaultValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalDefaultValue() != null) {
         return (false);
       }
     }
     if (getOptionalNullValue() != null) {
       if (rhs.getOptionalNullValue() != null) {
         if (!getOptionalNullValue().equals(rhs.getOptionalNullValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalNullValue() != null) {
         return (false);
       }
     }
     if (getOptionalUnknownValue() != null) {
       if (rhs.getOptionalUnknownValue() != null) {
         if (!getOptionalUnknownValue().equals(rhs.getOptionalUnknownValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalUnknownValue() != null) {
         return (false);
       }
     }
     if (getRequiredShowLines() != rhs.getRequiredShowLines()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamValuePKey) {
     CFBamValuePKey rhs = (CFBamValuePKey) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamNmTokensDefHBuff) {
     CFBamNmTokensDefHBuff rhs = (CFBamNmTokensDefHBuff) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     if (getRequiredMaxLen() != rhs.getRequiredMaxLen()) {
       return (false);
     }
     if (getOptionalInitValue() != null) {
       if (rhs.getOptionalInitValue() != null) {
         if (!getOptionalInitValue().equals(rhs.getOptionalInitValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalInitValue() != null) {
         return (false);
       }
     }
     if (getOptionalDefaultValue() != null) {
       if (rhs.getOptionalDefaultValue() != null) {
         if (!getOptionalDefaultValue().equals(rhs.getOptionalDefaultValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalDefaultValue() != null) {
         return (false);
       }
     }
     if (getOptionalNullValue() != null) {
       if (rhs.getOptionalNullValue() != null) {
         if (!getOptionalNullValue().equals(rhs.getOptionalNullValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalNullValue() != null) {
         return (false);
       }
     }
     if (getOptionalUnknownValue() != null) {
       if (rhs.getOptionalUnknownValue() != null) {
         if (!getOptionalUnknownValue().equals(rhs.getOptionalUnknownValue())) {
           return (false);
         }
       }
     } else {
       if (rhs.getOptionalUnknownValue() != null) {
         return (false);
       }
     }
     if (getRequiredShowLines() != rhs.getRequiredShowLines()) {
       return (false);
     }
     return (true);
   } else if (obj instanceof CFBamValueHPKey) {
     CFBamValueHPKey rhs = (CFBamValueHPKey) obj;
     if (getRequiredTenantId() != rhs.getRequiredTenantId()) {
       return (false);
     }
     if (getRequiredId() != rhs.getRequiredId()) {
       return (false);
     }
     return (true);
   } else {
     boolean retval = super.equals(obj);
     return (retval);
   }
 }