| The ElementParserFactory class provides a mechanism to provide the correct
implementation of an ElementParser for a given ElementDefinition. This should
be the only method used to instantiate an ElementParser. The LegacyDataParser
contains an instance of this class that is first called by its parse method.
Each implementation of ElementParser will also call this if it needs to
recursively parse any child elements. Instead of creating new instances of
the different ElementParsers each time an element is parsed, the
ElementParserFactory should maintain an instance of each type of
ElementParser and reuse it.
|