Package ca.uhn.hl7v2.model
Interface Variable
- All Superinterfaces:
Serializable,Type,Visitable
- All Known Implementing Classes:
Varies
Interface type for Varies
-
Method Summary
Methods inherited from interface ca.uhn.hl7v2.model.Type
clear, encode, getExtraComponents, getMessage, getName, parseMethods inherited from interface ca.uhn.hl7v2.model.Visitable
accept, isEmpty, provideLocation
-
Method Details
-
getData
Returns the data contained by this instance of Variable. Returns aGenericPrimitiveunlesssetData(Type)has been called.- Returns:
- the data contained by this instance of Variable
-
setData
Sets the data contained by this instance of Variable. If a data object already exists, then its values are copied to the incoming data object before the old one is replaced. For example, ifgetData()returns an ST with the value "19901012" and you call setData(new DT()), then subsequent calls togetData()will return the same DT, with the value set to "19901012".- Parameters:
data- the data to be set for this Varies instance- Throws:
DataTypeException- if the data could not be set
-