types/src/main/java/com/google/common/html/types/SafeHtmlBuilder.java
public SafeHtmlBuilder setMethod(String value) {
    if (!METHOD_STRING_ELEMENT_WHITELIST.contains(elementName)) {
      throw new IllegalArgumentException(
          "Attribute \"method\" with a String value can only be used "
              + "by one of the following elements: "
              + METHOD_STRING_ELEMENT_WHITELIST);
    }
    return setAttribute("method", value);
  }
public SafeHtmlBuilder setMethod(String value) {
    if (!METHOD_STRING_ELEMENT_WHITELIST.contains(elementName)) {
      throw new IllegalArgumentException(
          "Attribute \"method\" with a String value can only be used "
              + "by one of the following elements: "
              + METHOD_STRING_ELEMENT_WHITELIST);
    }
    return setAttribute("method", value);
  }
public SafeHtmlBuilder setMethod ( String value ) { if ( ! METHOD_STRING_ELEMENT_WHITELIST . contains ( elementName ) ) { throw new IllegalArgumentException ( "Attribute \"method\" with a String value can only be used " + "by one of the following elements: " + METHOD_STRING_ELEMENT_WHITELIST ) ; } return setAttribute ( "method" , value ) ; }
Sets the {@code method} attribute for this element.

<p>The attribute {@code method} with a {@code String} value is allowed on these elements:

<ul>
<li>{@code form}
</ul>

@throws IllegalArgumentException if the {@code method} attribute with a {@code String} value is
not allowed on this element
Sets the { @code method } attribute for this element .