org.urhl7.igor
Class EmptyField

java.lang.Object
  extended by org.urhl7.igor.EmptyField
All Implemented Interfaces:
DataField, GenericStructure

public class EmptyField
extends Object
implements DataField

An EmptyField is a DataField that has no data, and no references to anything. However, a HL7Structure may reference it. It is usually used as a placeholder for where a DataField needs to exist, but doesn't for some reason (usually an error condition beind supressed).


Constructor Summary
EmptyField()
          Creates a new EmptyField that has no data, and no reference attachments.
 
Method Summary
 String getData()
          Retrieve the underlying data for this data object.
 String marshal()
          Marshals all underlying data in this structure as a String.
 void setData(String data)
          Set the underlying data for this data object.
 void unmarshal(String data)
          Unmarshals a String representation into this structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyField

public EmptyField()
Creates a new EmptyField that has no data, and no reference attachments.

Method Detail

getData

public String getData()
Description copied from interface: DataField
Retrieve the underlying data for this data object.

Specified by:
getData in interface DataField
Returns:
String representation of the data

setData

public void setData(String data)
Description copied from interface: DataField
Set the underlying data for this data object.

Specified by:
setData in interface DataField
Parameters:
data - a String representation of the data

marshal

public String marshal()
Description copied from interface: GenericStructure
Marshals all underlying data in this structure as a String.

Specified by:
marshal in interface GenericStructure
Returns:
a String representation of this data.

unmarshal

public void unmarshal(String data)
Description copied from interface: GenericStructure
Unmarshals a String representation into this structure

Specified by:
unmarshal in interface GenericStructure
Parameters:
data - a String representation of the data