This package contains the core module interface GoogleBase
,
as well as the implementation class GoogleBaseImpl
. If you want
to work with a specific type of Google Base entry, you can cast it to a
specific item type interface, such as Vehicle
.
Sample Useage:
SyndEntry entry = new SyndEntryImpl(); // set up the entry... Vehicle vehicle = new GoogleBaseImpl(); vehicle.setMake("Honda"); vehicle.setModel("Insight"); vehicle.setYear( new Year("2000")); List modules = new ArrayList(); modules.add( vehicle ); entry.setModules( modules ); //Optionally, to get Google Base information from a Feed: Article article = entry.getModule( "http://base.google.com/ns/1.0" ); System.out.println( article.getPages() );
Google Base is a trademark of Google, Inc. The authors of this software are not affiliated with Google, Inc. and Google does not endorse, support, blah blah blah.