com.reportmill.datasource
Class RMXMLReader
java.lang.Object
com.reportmill.datasource.RMXMLReader
public class RMXMLReader
- extends java.lang.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 Summary |
RMXMLReader()
Creates an unitialized reader. |
Method Summary |
java.lang.String |
getError()
Returns any error encountered while reading xml. |
java.lang.String |
getName()
Returns the name of the root element. |
RMSchema |
getSchema()
Returns a heirarchy of RMEntity objects describing the XML. |
RMSchema |
getSchema(java.lang.Object aSource)
Returns a map loaded from the given XML source, with option to only return the schema. |
java.util.Map |
readObject(java.lang.Object aSource)
Returns a map loaded from the given XML source. |
java.util.Map |
readObject(java.lang.Object aSource,
RMSchema aSchema)
Returns a map loaded from the given XML source with the given XML schema. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMXMLReader
public RMXMLReader()
- Creates an unitialized reader.
getName
public java.lang.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(java.lang.Object aSource)
- Returns a map loaded from the given XML source, with option to only return the schema.
readObject
public java.util.Map readObject(java.lang.Object aSource)
- Returns a map loaded from the given XML source.
readObject
public java.util.Map readObject(java.lang.Object aSource,
RMSchema aSchema)
- Returns a map loaded from the given XML source with the given XML schema.
getError
public java.lang.String getError()
- Returns any error encountered while reading xml.