Class EDRFieldMap

java.lang.Object
com.portal.pfc.infranetui.edrviewer.EDRFieldMap

public class EDRFieldMap extends Object
A field map is an XML document that maps serialized EDR field ids to EDR field names.

EDRFieldMap parses the provided XML document and allows retrieving EDR field names based on the ID specified in the serialized EDR.

The class also provides a static method that takes a serialized EDR and extracts from it the field map name and poid that's specified in the edr's element.

Since:
6.5FP3
Author:
Max Spivak
  • Constructor Details

  • Method Details

    • getElementName

      public String getElementName(String id)
      Returns name of the edr field specified by id.

      This method is currently fairly inefficient as it walks the tree in order to find each element. We should figure out how to use the more efficient getElementById method in order to access the desired element directly.

    • getFieldMapInfo

      public static Pair getFieldMapInfo(String edr) throws SAXException, IOException
      Returns field map's name and poid as specified in the edr. This method uses the SAX parser to parse just enough of the EDR to get the field map information.
      Parameters:
      edr - Serialized EDR XML in string format
      Throws:
      SAXException
      IOException