Add properties to Java API so as to better mirror the framework's XML API. I'm not familiar with many of these areas so this CL is worth some scrutiny. Change-Id: Iff63c43521305efaad5a2189c1b5556d2353cbd4