org.urhl7.igor
Interface GenericStructure

All Known Implementing Classes:
HL7Field, HL7FieldComponent, HL7FieldSubcomponent, HL7RepeatingField, HL7Segment, HL7Structure

public interface GenericStructure

GenericStructure is an interface that defines marshal() and unmarshal(String) methods. Essentially forcing any particular structure to be able to represent itself as a string, and rebuild itself based on a string.


Method Summary
 String marshal()
          Marshals all underlying data in this structure as a String.
 void unmarshal(String data)
          Unmarshals a String representation into this structure
 

Method Detail

marshal

String marshal()
Marshals all underlying data in this structure as a String.

Returns:
a String representation of this data.

unmarshal

void unmarshal(String data)
Unmarshals a String representation into this structure

Parameters:
data - a String representation of the data