Package com.ribs.datasource
Class RMXMLReader
- java.lang.Object
- 
- com.ribs.datasource.RMXMLReader
 
- 
 public class RMXMLReader extends java.lang.ObjectThis class tries to load an XML file as a plist. A plist is made up of simple types (String, Number, Date) and just two complex types (List/Map). This makes the loaded data much less ambigous than standard XML datastructures.This code hopes to find a tag that better describes the form of the plist. 
- 
- 
Constructor SummaryConstructors Constructor Description RMXMLReader()Creates an unitialized reader.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetError()Returns any error encountered while reading xml.java.lang.StringgetName()Returns the name of the root element.RMSchemagetSchema()Returns a heirarchy of RMEntity objects describing the XML.RMSchemagetSchema(java.lang.Object aSource)Returns a map loaded from the given XML source, with option to only return the schema.java.util.MapreadObject(java.lang.Object aSource)Returns a map loaded from the given XML source.java.util.MapreadObject(java.lang.Object aSource, RMSchema aSchema)Returns a map loaded from the given XML source with the given XML schema.
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Returns the name of the root element.
 - 
getSchemapublic RMSchema getSchema() Returns a heirarchy of RMEntity objects describing the XML.
 - 
getSchemapublic RMSchema getSchema(java.lang.Object aSource) Returns a map loaded from the given XML source, with option to only return the schema.
 - 
readObjectpublic java.util.Map readObject(java.lang.Object aSource) Returns a map loaded from the given XML source.
 - 
readObjectpublic java.util.Map readObject(java.lang.Object aSource, RMSchema aSchema)Returns a map loaded from the given XML source with the given XML schema.
 - 
getErrorpublic java.lang.String getError() Returns any error encountered while reading xml.
 
- 
 
-