public interface Composite extends Type
Represents the category of HL7 data types that contain more than one component (e.g. CE). Implementing classes (i.e. composite data types) should initialize their components either when they are initialized or when they are first accessed. Only leaf values (values of primitives) should ever be returned as null.
Modifier and Type | Method and Description |
---|---|
Type |
getComponent(int number)
Returns the single component of this composite at the specified position (starting at 0).
|
Type[] |
getComponents()
Returns an array containing the components of this field.
|
clear, encode, getExtraComponents, getMessage, getName, parse
accept, isEmpty, provideLocation
Type[] getComponents()
Type getComponent(int number) throws DataTypeException
number
- index of the component to be retrieved (zero-based)DataTypeException
Copyright © 2001–2017 University Health Network. All rights reserved.