get the constraint type for any component