Class PrivateFileDicomKey

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<FileDicomKey>

    public class PrivateFileDicomKey
    extends FileDicomKey
    implements java.lang.Comparable<FileDicomKey>
    Associates a FileDicomKey with a particular publisher to denote the source of the FileDicomKey. This publisher is often printed in the (x, 0010) tag for any group. When no publisher exists uses publisher NO_PUBLISHER
    Author:
    justinsenseney
    See Also:
    Serialized Form
    • Field Detail

      • publisher

        private java.lang.String publisher
        The publisher for this tag.
    • Constructor Detail

      • PrivateFileDicomKey

        public PrivateFileDicomKey​(java.lang.String keyStr)
      • PrivateFileDicomKey

        public PrivateFileDicomKey​(java.lang.String publisher,
                                   java.lang.String keyStr)
      • PrivateFileDicomKey

        public PrivateFileDicomKey​(int group,
                                   int element)
                            throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException
      • PrivateFileDicomKey

        public PrivateFileDicomKey​(java.lang.String publisher,
                                   int group,
                                   int element)
                            throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException
    • Method Detail

      • getPublisher

        public java.lang.String getPublisher()
      • setPublisher

        public void setPublisher​(java.lang.String publisher)
      • toString

        public java.lang.String toString()
        Returns the unique identifier.
        Overrides:
        toString in class FileDicomKey
        Returns:
        The unique identifier.
      • convertToFileDicomKey

        public FileDicomKey convertToFileDicomKey()
      • hashCode

        public int hashCode()
        Description copied from class: FileDicomKey
        Returns the unique identifier's hash code.
        Overrides:
        hashCode in class FileDicomKey
        Returns:
        The hash code.
      • equals

        public boolean equals​(java.lang.Object obj)
        Objects are equal if both are of type FileDicomKey, and both refer to the same value; if the input type is a String and the String representation of the key matches. This equals method will check that the keys are exactly are equal or they are equal except for place-holding "x" characters.
        Overrides:
        equals in class FileDicomKey
        Parameters:
        obj - Object to compare to.
        Returns:
        true if equal.