Constraining the Type of Central Engine of GRBs with Swift Data