Class RMXMLReader

java.lang.Object
com.inductiveautomation.rm.base.RMXMLReader

public class RMXMLReader extends Object
This class creates an object graph of collections (Map/List) and core Java types from a given XML source. This works best when an RMSchema is provided or an <RMSchema> tag is present in the xml (otherwise one is generated).
  • Constructor Details

    • RMXMLReader

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

    • readObject

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

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

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

      public Schema getSchema()
      Returns a hierarchy of RMEntity objects describing the XML.
    • getResources

      public List<RXElement> getResources()
      Returns the resources read from last source.
    • getEntityLists

      public Map<String,List<Map>> getEntityLists()
      Returns the entity maps.
    • getEntityList

      public List<Map> getEntityList(String aName)
      Returns the individual list of maps for the given entity name.