/** * Sets the type attribute. * * @param type Value of the type attribute. * @see #ATTRIBUTE_TYPE */ public void setType(final GrammarType type) { final String str = type.getType(); setType(str); }