Class UniqueIdentifierAttribute


public class UniqueIdentifierAttribute extends StringAttribute

A concrete class specializing Attribute for Unique Identifier (UI) attributes.

Though an instance of this class may be created using its constructors, there is also a factory class, AttributeFactory.

See Also:
  • Field Details

    • MAX_LENGTH_SINGLE_VALUE

      protected static final int MAX_LENGTH_SINGLE_VALUE
      See Also:
  • Constructor Details

  • Method Details

    • getMaximumLengthOfSingleValue

      public final int getMaximumLengthOfSingleValue()
      Specified by:
      getMaximumLengthOfSingleValue in class StringAttribute
    • 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)
    • isWellKnownRelated

      public static boolean isWellKnownRelated(AttributeTag t)
    • isCodingSchemeRelated

      public static boolean isCodingSchemeRelated(AttributeTag t)
    • isPrivateRelated

      public static boolean isPrivateRelated(AttributeTag t)
    • isTransient

      public static boolean isTransient(AttributeTag t)
    • isPrivateNonTransient

      public static boolean isPrivateNonTransient(AttributeTag t, AttributeList list)
    • isTransient

      public static boolean isTransient(AttributeTag t, AttributeList list)
    • isCharacterInValueValid

      public final boolean isCharacterInValueValid(int c) throws DicomException
      Overrides:
      isCharacterInValueValid in class StringAttribute
      Throws:
      DicomException
    • 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