Trispark JDT
2.50.13

com.archimed.dicom
Class DDateRange

java.lang.Object
  extended by com.archimed.dicom.DDateRange

public class DDateRange
extends java.lang.Object

This class represents a basic date range.
A data element of type DA can contain several DDate values, or one DDateRange value.

Since:
18/02/1999
See Also:
DDate

Constructor Summary
DDateRange(DDate dd1, DDate dd2)
          Constructs a DDateRange object using two DDate values.
DDateRange(java.lang.String s)
          Contructs a DDateRange object from a String.
 
Method Summary
 DDate getDate1()
          Returns the first DDate of this DDateRange.
 DDate getDate2()
          Returns the second DDate of this DDateRange.
 java.lang.String toDICOMString()
          Returns the Dicom representation of this DDateRange object.
 java.lang.String toString()
          Returns an elaborate string representation of this DDateRange object.
 java.lang.String toString(java.text.DateFormat df)
          Returns an elaborate string representation of this DDateRange object using a specific DateFormat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDateRange

public DDateRange(DDate dd1,
                  DDate dd2)
Constructs a DDateRange object using two DDate values.
If you want one of these DDates to be empty, just use 'null'.


DDateRange

public DDateRange(java.lang.String s)
           throws java.lang.NumberFormatException
Contructs a DDateRange object from a String. This string has to have one of these forms.

Throws:
java.lang.NumberFormatException
Method Detail

toString

public java.lang.String toString()
Returns an elaborate string representation of this DDateRange object. (Similar to DDate.toString()).

Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.text.DateFormat df)
Returns an elaborate string representation of this DDateRange object using a specific DateFormat. (Similar to DDate.toString(df)).


toDICOMString

public java.lang.String toDICOMString()
Returns the Dicom representation of this DDateRange object.
("-yyyymmdd", "yyyymmdd-" or "yyyymmdd-yyyymmdd")


getDate1

public DDate getDate1()
Returns the first DDate of this DDateRange.
If it is empty, 'null' will be returned.


getDate2

public DDate getDate2()
Returns the second DDate of this DDateRange.
If it is empty, 'null' will be returned.


Trispark JDT
2.50.13

Copyright © 1999-2008 Trispark. All Rights Reserved.