org.dicom4j.data.elements
Class DateElement

java.lang.Object
  extended by org.dicom4j.data.elements.support.DataElement
      extended by org.dicom4j.data.elements.support.StringElement
          extended by org.dicom4j.data.elements.DateElement

public class DateElement
extends StringElement

Date (DA) element

Author:
Laurent Lecomte

Constructor Summary
DateElement(DicomTag aDicomTag)
           Creates an empty element
DateElement(DicomTag aDicomTag, long aLength, DicomInputStream aStream)
           Read an attribute from an input stream.
 
Method Summary
 String format()
          retrun a format Date depending on the current Locale
 ValueRepresentation getValueRepresentation()
          Return the value representation of this data element
 
Methods inherited from class org.dicom4j.data.elements.support.StringElement
addValue, clear, getPaddedVL, getStringValues, getValueLength, getValueMultiplicity, read, setValue, toString, write
 
Methods inherited from class org.dicom4j.data.elements.support.DataElement
addValue, addValue, addValue, addValue, addValue, addValue, getByteValues, getDelimitedStringValues, getDelimitedStringValues, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDoubleValues, getDoubleValues, getFloatValues, getIntegerValues, getIntegerValues, getLongValues, getLongValues, getName, getOriginalStringValues, getShortValues, getSingleDoubleValueOrDefault, getSingleDoubleValueOrDefault, getSingleIntegerValue, getSingleIntegerValue, getSingleIntegerValue, getSingleIntegerValueOrDefault, getSingleLongValueOrDefault, getSingleLongValueOrDefault, getSingleStringValue, getSingleStringValue, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getStringValues, getStringValues, getStringValues, getTag, isAvailableAsString, isGroupLength, isValid, read, removeValues, setValues, setValues, setValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateElement

public DateElement(DicomTag aDicomTag)

Creates an empty element

Parameters:
aDicomTag - the tag of the element

DateElement

public DateElement(DicomTag aDicomTag,
                   long aLength,
                   DicomInputStream aStream)
            throws IOException,
                   DicomException

Read an attribute from an input stream.

Parameters:
aDicomTag - the tag of the element
aLength - the value length of the attribute
aStream - the input stream
Throws:
IOException
DicomException
Method Detail

format

public String format()
retrun a format Date depending on the current Locale

Returns:

getValueRepresentation

public ValueRepresentation getValueRepresentation()
Return the value representation of this data element

Specified by:
getValueRepresentation in class DataElement
Returns:
the value representation (PN)


Copyright © 2009 dicom4j. All Rights Reserved.