code: func (a *AttributeDefinition) IsRequired(attName string) bool {
  	for _, name := range a.AllRequired() {
  		if name == attName {
  			return true
  		}
  	}
  	return false
  }
docs: // IsRequired returns true if the given string matches the name of a required
  // attribute, false otherwise.