Class RMXMLReader

java.lang.Object
com.ribs.datasource.RMXMLReader

public class RMXMLReader extends Object
This 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 Details

    • RMXMLReader

      public RMXMLReader()
      Creates an unitialized reader.
  • Method Details

    • getName

      public String getName()
      Returns the name of the root element.
    • getSchema

      public RMSchema getSchema()
      Returns a heirarchy of RMEntity objects describing the XML.
    • getSchema

      public RMSchema getSchema(Object aSource)
      Returns a map loaded from the given XML source, with option to only return the schema.
    • readObject

      public Map readObject(Object aSource)
      Returns a map loaded from the given XML source.
    • readObject

      public Map readObject(Object aSource, RMSchema aSchema)
      Returns a map loaded from the given XML source with the given XML schema.
    • getError

      public String getError()
      Returns any error encountered while reading xml.