code: public static CmsRelationType valueOf(String name) throws CmsIllegalArgumentException {
  
          CmsRelationType result = valueOfInternal(name);
          if (result == null) {
              // no type found
              throw new CmsIllegalArgumentException(
                  org.opencms.db.Messages.get().container(
                      org.opencms.db.Messages.ERR_MODE_ENUM_PARSE_2,
                      name,
                      CmsRelationType.class.getName()));
          }
          return result;
      }
docs: Parses an <code>String</code> into a relation type.<p>
  
  @param name the relation type name
  
  @return the enumeration element
  
  @throws CmsIllegalArgumentException if the given value could not be matched against a
  <code>{@link CmsRelationType}</code> object
  
  @see #valueOfXml(String)
  @see #valueOfJsp(String)