Package gov.nasa.pds.tools.label
Class DateTime
- java.lang.Object
-
- gov.nasa.pds.tools.label.Scalar
-
- gov.nasa.pds.tools.label.DateTime
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getDate()
boolean
isSupportedPDSType(Constants.DictionaryType type)
String
normalize()
-
-
-
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 formatlineNumber
- 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 formatlineNumber
- in which this value was foundlenient
- 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 classScalar
-
-