ANTIOCH -- A psychologist will examine a homeless Antioch man accused of kidnapping and sexually assaulting a 7-year-old girl to determine if he's competent to stand trial, a prosecutor said Monday.

On Friday, Judge Terry Mockler ordered David Douglas, 43, to receive the examination which will be completed by April 3. Douglas has pleaded not guilty to six felony charges, including three counts of attempted kidnapping for sexual purpose, that could land him in prison for life without parole if convicted.

Douglas is accused of brandishing a pipe to abduct the girl from her Antioch home on Jan. 3. Investigators believe he followed the mother and daughter home from an Antioch Walmart store. The girl was rescued hours later near the Antioch marina following an Amber Alert.

In jailhouse interviews, Douglas has admitted to kidnapping the girl, but not sexually assaulting her. He also told this newspaper he was set up and asked for a reporter to assemble psychologists, behaviorists and cryptologists to help him.

Douglas remains in County Jail in Martinez in lieu of $7.15 million bail.

Contact Matthias Gafni at 925-952-5026. Follow him at Twitter.com/mgafni.