Class DicomDirectoryRecord

    • Field Detail

      • uid

        protected java.lang.String uid
      • stringValue

        protected java.lang.String stringValue
      • integerValue

        protected int integerValue
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • makeStringValue

        protected abstract void makeStringValue()

        Make the value that will be retured on a call to getStringValue().

      • makeIntegerValue

        protected abstract void makeIntegerValue()

        Make the value that will be retured on a call to getIntegerValue().

      • getStringValue

        protected java.lang.String getStringValue()
        Returns:
        a String describing this directory record containing identifiers, dates, etc.
      • getIntegerValue

        protected int getIntegerValue()
        Returns:
        an integer describing this directory record derived from an appropriate number for the entity that the record represents
      • getUIDForComparison

        protected final java.lang.String getUIDForComparison()
        Returns:
        the uid for the entity that the directory record represents
      • compareToByStringValue

        protected final int compareToByStringValue​(DicomDirectoryRecord record,
                                                   boolean mustBeSameObjectToBeEqual)

        Compares this object with the specified directory record for order based on string value.

        Considers whether same record type, same string value, and if so, orders by UID.

        Parameters:
        record - the directory record to compare with
        mustBeSameObjectToBeEqual - if true requires them to be the same Java object, not just the same UID
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the directory record.
      • compareToByIntegerValue

        protected final int compareToByIntegerValue​(DicomDirectoryRecord record,
                                                    boolean mustBeSameObjectToBeEqual)

        Compares this object with the specified directory record for order based on integer value.

        Considers whether same record type, same integer value, and if so orders by string value, then by UID.

        Parameters:
        record - the directory record to compare with
        mustBeSameObjectToBeEqual - if true requires them to be the same Java object, not just the same UID
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the directory record.
      • getParent

        public javax.swing.tree.TreeNode getParent()
        Specified by:
        getParent in interface javax.swing.tree.TreeNode
      • getChildAt

        public javax.swing.tree.TreeNode getChildAt​(int index)
        Specified by:
        getChildAt in interface javax.swing.tree.TreeNode
      • getIndex

        public int getIndex​(javax.swing.tree.TreeNode child)
        Specified by:
        getIndex in interface javax.swing.tree.TreeNode
      • getAllowsChildren

        public boolean getAllowsChildren()
        Specified by:
        getAllowsChildren in interface javax.swing.tree.TreeNode
      • isLeaf

        public boolean isLeaf()
        Specified by:
        isLeaf in interface javax.swing.tree.TreeNode
      • getChildCount

        public int getChildCount()
        Specified by:
        getChildCount in interface javax.swing.tree.TreeNode
      • children

        public java.util.Enumeration children()
        Specified by:
        children in interface javax.swing.tree.TreeNode
      • addChild

        public void addChild​(DicomDirectoryRecord child)
        Parameters:
        child - child directory record to add
      • removeChild

        public void removeChild​(DicomDirectoryRecord child)
        Parameters:
        child - child directory record to remove
      • setParent

        public void setParent​(DicomDirectoryRecord parent)

        Set the parent node of this node.

        Parameters:
        parent - parent directory record
      • getAttributeList

        public AttributeList getAttributeList()
        Returns:
        a list of attributes for this directory record