Class DateTime
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.AbstractCustomJavaDataType<TYPE,ZonedDateTime>
-
- gov.nist.secauto.metaschema.core.datatype.object.AbstractAmbiguousTemporal<DateTime>
-
- gov.nist.secauto.metaschema.core.datatype.object.DateTime
-
- All Implemented Interfaces:
ICustomJavaDataType<DateTime>
public class DateTime extends AbstractAmbiguousTemporal<DateTime>
-
-
Constructor Summary
Constructors Constructor Description DateTime(ZonedDateTime value, boolean hasTimeZone)
Construct a new date/time object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTime
copy()
Provides a copy of the data value associated with the Datatype instance.-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.object.AbstractAmbiguousTemporal
hasTimeZone
-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.AbstractCustomJavaDataType
equals, getValue, hashCode, toString
-
-
-
-
Constructor Detail
-
DateTime
public DateTime(@NonNull ZonedDateTime value, boolean hasTimeZone)
Construct a new date/time object. This type supports ambiguous dates/times that were provided without a time zone.- Parameters:
value
- the date/time valuehasTimeZone
-true
if the date/time is intended to have an associated time zone orfalse
otherwise
-
-
Method Detail
-
copy
public DateTime copy()
Description copied from interface:ICustomJavaDataType
Provides a copy of the data value associated with the Datatype instance.- Returns:
- the copy
-
-