org.dicom4j.data.elements
Class Time

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.Time

public class Time
extends StringElement

Time (TM) DataElement

Since:
0.0.0
Author:
Laurent Lecomte

Constructor Summary
Time(DicomTag aTag)
           Creates an empty element
 
Method Summary
 String format()
          retrun a formated time ( hh:mm:ss )
 String getShowableValue(String aSeparator)
          return the value formated to be show in a UI
 ValueRepresentation getValueRepresentation()
          return the ValueRepresentation of this data element (TM)
 byte[] getVR()
          Deprecated.  
 void setValue(String aValue)
           
 
Methods inherited from class org.dicom4j.data.elements.support.StringElement
addValue, clear, getPaddedVL, getStringValues, getValueLength, getValueMultiplicity, read, 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

Time

public Time(DicomTag aTag)

Creates an empty element

Parameters:
aTag - the tag of the element
Method Detail

format

public String format()
retrun a formated time ( hh:mm:ss )

Returns:
the time

getShowableValue

public String getShowableValue(String aSeparator)
return the value formated to be show in a UI

Parameters:
aSeparator - the time separator
Returns:

getValueRepresentation

public ValueRepresentation getValueRepresentation()
return the ValueRepresentation of this data element (TM)

Specified by:
getValueRepresentation in class DataElement
Returns:
the value representation

getVR

@Deprecated
public byte[] getVR()
Deprecated. 

Get the value representation of this attribute (TM).

Returns:
'T','M' in ASCII as a two byte array; see

setValue

public void setValue(String aValue)
Overrides:
setValue in class StringElement


Copyright © 2009 dicom4j. All Rights Reserved.