Package ca.uhn.hl7v2.model
Class GenericPrimitive
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractPrimitive
ca.uhn.hl7v2.model.GenericPrimitive
- All Implemented Interfaces:
Primitive,Type,Visitable,Serializable
An unspecified Primitive datatype that imposes no constraints on its string
value. 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 TypeMethodDescriptiongetName()Returns the name of the type (used in XML encoding and profile checking)As this is a generic primitive, this method returnsnullto inidicate that it is not associated with a dedicated HL7 versionMethods inherited from class ca.uhn.hl7v2.model.AbstractPrimitive
accept, clear, encode, getValue, isEmpty, parse, setValue, toStringMethods inherited from class ca.uhn.hl7v2.model.AbstractType
getExtraComponents, getMessage, provideLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
clear, encode, getExtraComponents, getMessage, parseMethods inherited from interface ca.uhn.hl7v2.model.Visitable
accept, isEmpty, provideLocation
-
Constructor Details
-
GenericPrimitive
Create a generic primitive- Parameters:
message- message to which the primitive is linked to
-
-
Method Details
-
getName
Description copied from class:AbstractTypeReturns 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
-
getVersion
As this is a generic primitive, this method returnsnullto inidicate that it is not associated with a dedicated HL7 version- Returns:
- null
-