gov.nasa.pds.tools.label
Class DateTime

java.lang.Object
  extended by gov.nasa.pds.tools.label.Scalar
      extended by gov.nasa.pds.tools.label.DateTime
All Implemented Interfaces:
Value

public class DateTime
extends Scalar

Version:
$Revision: 8410 $
Author:
pramirez, jagander

Constructor Summary
DateTime(Date date)
           
DateTime(Label label, String value, int lineNumber)
           
DateTime(Label label, String value, int lineNumber, boolean lenient)
           
 
Method Summary
 Date getDate()
           
 boolean isSupportedPDSType(Constants.DictionaryType type)
           
 String normalize()
           
 
Methods inherited from class gov.nasa.pds.tools.label.Scalar
equals, getValue, hashcode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTime

public DateTime(Label label,
                String value,
                int lineNumber)
         throws LabelParserException
Parameters:
value - represented as a string which is in a PDS compatible format
lineNumber - in which this value was found
Throws:
LabelParserException

DateTime

public DateTime(Label label,
                String value,
                int lineNumber,
                boolean lenient)
         throws LabelParserException
Parameters:
value - represented as a string which is in a PDS compatible format
lineNumber - in which this value was found
lenient - a flag to indicate how to parse the date
Throws:
LabelParserException

DateTime

public DateTime(Date date)
Method Detail

getDate

public Date getDate()

normalize

public String normalize()

isSupportedPDSType

public boolean isSupportedPDSType(Constants.DictionaryType type)
Specified by:
isSupportedPDSType in class Scalar


Copyright © 2005–2013 Planetary Data System. All rights reserved.