com.rometools.modules.base.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rome-modules Show documentation
Show all versions of rome-modules Show documentation
Plugin collection for the ROME RSS and Atom Utilities
This is the base package for the Google Base ROME module.
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.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy