Characterizations of Abel-Grassmann's Groupoids