Back to project page colibri.
The source code is released under:
Apache License
If you think the Android project colibri listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package labrom.colibri.xml.maps; /*from w w w . ja v a2 s . co m*/ import java.util.Map; import labrom.colibri.xml.ElementContext; import labrom.colibri.xml.RootContext; /** * A sub-class of {@link RootContext} for use with maps instead of user-defined classes. * * To create a new cursor definition for use specifically with maps, start with this class and the rest will follow: * you will end up with a {@link CursorDef4Maps} that allows you to create {@linkplain Cursor4Maps cursors} that contain * instances of {@code Map<String, Object>}. * * @author Romain Laboisse labrom@gmail.com * */ public class RootContext4Maps extends RootContext<Map<String, Object>> { @Override protected ElementContext<Map<String, Object>> createChildElementContext(String name) { return new ElementContext4Maps(this, name); } @Override public ElementContext4Maps selectElement(String name) { return (ElementContext4Maps)super.selectElement(name); } }