/** * Retrieves the type attribute. * * @return Value of the type attribute. * @see #ATTRIBUTE_TYPE */ public GrammarType getType() { final String type = getTypename(); if (type == null) { return null; } return GrammarType.valueOfAttribute(type); }