Package ca.uhn.hl7v2.model
Class GenericComposite
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.GenericComposite
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
- Direct Known Subclasses:
CM
An unspecified Composite datatype that has an undefined number of components, each
of which is a Varies.
This is used to store Varies data, when the data type is unknown. It is also
used to store unrecognized message constituents.
- Author:
- Bryan Tripp
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponent(int number) Returns the single component of this composite at the specified position (starting at 0) - Creates it (and any nonexistent components before it) if necessary.Type[]Returns an array containing the components of this field.getName()Returns the name of the type (used in XML encoding and profile checking)Methods inherited from class ca.uhn.hl7v2.model.AbstractComposite
accept, clear, getTyped, isEmpty, provideLocationMethods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, parse
-
Constructor Details
-
GenericComposite
Creates a generic composite- Parameters:
message- message this object is linked to
-
-
Method Details
-
getComponent
Returns the single component of this composite at the specified position (starting at 0) - Creates it (and any nonexistent components before it) if necessary.- Parameters:
number- index of the component to be retrieved (zero-based)- Returns:
- component at this index
-
getComponents
Returns an array containing the components of this field.- Returns:
- array of components of this composite type
-
getName
Returns the name of the type (used in XML encoding and profile checking)- Specified by:
getNamein interfaceType- Overrides:
getNamein classAbstractType- Returns:
- the name of the type
-