public class DateTimeValidator extends Object
Modifier and Type | Field and Description |
---|---|
static HashMap<String,List<String>> |
DATE_TIME_FORMATS
Mapping of field datetime types to its list of valid datetime formats.
|
Constructor and Description |
---|
DateTimeValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isValid(gov.nasa.pds.label.object.FieldType type,
String value)
Checks to see if the given datetime value matches its defined data type.
|
public static boolean isValid(gov.nasa.pds.label.object.FieldType type, String value) throws Exception
type
- The datetime type.value
- The value to check against.Exception
Copyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.