code: public boolean isEnum(final String elementType) {
          final String namespace = splitElementType(elementType)[0];
          final String localname = splitElementType(elementType)[1];
  
          boolean isEnum = false;
          for (final MetadataEnum metadataEnum : metadata.getEnumList()) {
              if (metadataEnum.getName().equals(localname) && metadataEnum.getNamespace().equals(namespace)) {
                  isEnum = true;
                  break;
              }
          }
  
          return isEnum;
      }
docs: Returns true, if the given string argument represents a enumeration class.
  
  @param elementName
  @return true, if the string represents a enumeration, otherwise false.