public class EDRFieldMap extends Object
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
Constructor and Description |
---|
EDRFieldMap(String fieldMapString)
Creates a FieldMap object by parsing field map XML document.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementName(String id)
Returns name of the edr field specified by id.
|
static Pair |
getFieldMapInfo(String edr)
Returns field map's name and poid as specified in the edr.
|
public EDRFieldMap(String fieldMapString) throws IOException, ParserConfigurationException, SAXException
fieldMapString
- XML document in string format that contains the
field mapping for serialized EDRs.IOException
ParserConfigurationException
SAXException
public String getElementName(String 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.
public static Pair getFieldMapInfo(String edr) throws SAXException, IOException
edr
- Serialized EDR XML in string formatSAXException
IOException
Copyright © 2003, 2023, Oracle and/or its affiliates.