org.urhl7.utils
Class LocationParser

java.lang.Object
  extended by org.urhl7.utils.LocationParser

public class LocationParser
extends Object

LocationParser is a standalone class that provides a method to parse a textual descriptor into a specific location in an HL7 message.


Method Summary
static LocationSpecification parse(String descriptor)
          Parses a string into a LocationSpecification data object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static LocationSpecification parse(String descriptor)
Parses a string into a LocationSpecification data object. The string should follow the format:
SEGMENTNAME[SEGMENT_INDEX]FIELDNUMBER[REPEATING_FIELD_INDEX].COMPONENT.SUBCOMPONENT
The minimum required entry is the segment name. The following are all valid descriptors:

Parameters:
descriptor - textual description of the location.
Returns:
a complete LocationSpecification.