getType method