code: public static CmsRelationType valueOf(int id) throws CmsIllegalArgumentException {
  
          if ((id > 0) && (id <= VALUE_ARRAY.length)) {
              return VALUE_ARRAY[id - 1];
          }
          id -= USER_DEFINED_MODE_LIMIT;
          if ((id >= 0) && (id < getAllUserDefined().size())) {
              return getAllUserDefined().get(id);
          }
          throw new CmsIllegalArgumentException(
              org.opencms.db.Messages.get().container(
                  org.opencms.db.Messages.ERR_MODE_ENUM_PARSE_2,
                  new Integer(id),
                  CmsRelationType.class.getName()));
      }
docs: Parses an <code>int</code> into a relation type.<p>
  
  @param id the internal representation number to parse
  
  @return the enumeration element
  
  @throws CmsIllegalArgumentException if the given value could not be matched against a
  <code>{@link CmsRelationType}</code> object.