Class GenericPrimitive

All Implemented Interfaces:
Primitive, Type, Visitable, Serializable

public class GenericPrimitive extends AbstractPrimitive implements Primitive
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 Details

    • GenericPrimitive

      public GenericPrimitive(Message message)
      Create a generic primitive
      Parameters:
      message - message to which the primitive is linked to
  • Method Details

    • getName

      public String getName()
      Description copied from class: AbstractType
      Returns the name of the type (used in XML encoding and profile checking)
      Specified by:
      getName in interface Type
      Overrides:
      getName in class AbstractType
      Returns:
      the name of the type
    • getVersion

      public String getVersion()
      As this is a generic primitive, this method returns null to inidicate that it is not associated with a dedicated HL7 version
      Returns:
      null