Class UniqueIdentifierAttribute

    • Field Detail

      • MAX_LENGTH_SINGLE_VALUE

        protected static final int MAX_LENGTH_SINGLE_VALUE
        See Also:
        Constant Field Values
    • Constructor Detail

      • UniqueIdentifierAttribute

        public UniqueIdentifierAttribute​(AttributeTag t)

        Construct an (empty) attribute.

        Parameters:
        t - the tag of the attribute
      • UniqueIdentifierAttribute

        public UniqueIdentifierAttribute​(AttributeTag t,
                                         long vl,
                                         DicomInputStream i)
                                  throws java.io.IOException,
                                         DicomException

        Read an attribute from an input stream.

        Parameters:
        t - the tag of the attribute
        vl - the value length of the attribute
        i - the input stream
        Throws:
        java.io.IOException
        DicomException
      • UniqueIdentifierAttribute

        public UniqueIdentifierAttribute​(AttributeTag t,
                                         java.lang.Long vl,
                                         DicomInputStream i)
                                  throws java.io.IOException,
                                         DicomException

        Read an attribute from an input stream.

        Parameters:
        t - the tag of the attribute
        vl - the value length of the attribute
        i - the input stream
        Throws:
        java.io.IOException
        DicomException
    • Method Detail

      • getVR

        public byte[] getVR()

        Get the value representation of this attribute (UI).

        Overrides:
        getVR in class Attribute
        Returns:
        'U','I' in ASCII as a two byte array; see ValueRepresentation
      • getPadByte

        protected byte getPadByte()

        Get the appropriate (0X00) byte for padding UIDS to an even length.

        Overrides:
        getPadByte in class StringAttribute
        Returns:
        the byte pad value appropriate to the VR
      • isSOPClassRelated

        public static boolean isSOPClassRelated​(AttributeTag t)
      • isTransferSyntaxRelated

        public static boolean isTransferSyntaxRelated​(AttributeTag t)
      • isCodingSchemeRelated

        public static boolean isCodingSchemeRelated​(AttributeTag t)
      • isPrivateRelated

        public static boolean isPrivateRelated​(AttributeTag t)
      • isTransient

        public static boolean isTransient​(AttributeTag t)
      • repairValues

        public boolean repairValues()
                             throws DicomException
        Description copied from class: Attribute
        Repair any existing values of this attribute to make them comply with standard VR requirements. E.g., truncate them if they are too long. N.B., Not all types of attribute support repair.
        Overrides:
        repairValues in class StringAttribute
        Returns:
        true if successfully repaired or was already valid
        Throws:
        DicomException - if error in DICOM value extraction