public abstract class Time extends java.lang.Object implements java.lang.Comparable<Time>, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Time.NilReason
Enum for nil reasons
Time.NilReason.template - template, e.g. result handling |
static class |
Time.RelativePosition
Enum for relative positions
Time.RelativePosition.Before - Before Time.RelativePosition.After - After Time.RelativePosition.Begins - Begins Time.RelativePosition.Ends - Ends Time.RelativePosition.During - During Time.RelativePosition.Equals - Equals Time.RelativePosition.Contains - Contains Time.RelativePosition.Overlaps - Overlaps Time.RelativePosition.Meets - Meets Time.RelativePosition.OverlappedBy - OverlappedBy Time.RelativePosition.MetBy - MetBy Time.RelativePosition.BegunBy - BegunBy Time.RelativePosition.EndedB - EndedB |
static class |
Time.TimeFormat
Enum for time formats
Time.TimeFormat.ISO8601 - full ISO 8601 format Time.TimeFormat.Y - only year Time.TimeFormat.YM - year, month Time.TimeFormat.YMD - year, month, day {v #NOT_SET} - not defined |
| Constructor and Description |
|---|
Time()
default constructor
|
Time(java.lang.String gmlId)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGmlId()
Get GML id.
|
Time.NilReason |
getNilReason()
Get the nil reason
|
java.lang.String |
getReference()
Get reference
|
Time.TimeFormat |
getTimeFormat()
Get time format
|
boolean |
isEmpty()
Check if time is empty
|
boolean |
isNilReasonEqualTo(java.lang.Enum value)
Check if set nil reason equals to
|
boolean |
isReferenced()
Check whether GML id contains document reference indicator
|
boolean |
isSetGmlId()
Check whether GML id is set
|
boolean |
isSetNilReason()
Check if nil reason is set
|
boolean |
isSetReference()
Check reference is set
|
boolean |
isSetTimeFormat()
Check whether time format is set
|
protected org.joda.time.DateTime |
resolveDateTime(org.joda.time.DateTime dateTime,
IndeterminateValue indeterminateValue)
Resolve date time from dateTime or from indertminateValue
|
void |
setGmlId(java.lang.String gmlId)
Set GML id
|
void |
setNilReason(Time.NilReason nilReason)
Set nil reason
|
void |
setReference(java.lang.String reference)
Set reference
|
void |
setTimeFormat(Time.TimeFormat timeFormat)
Set time format
|
public Time()
public Time(java.lang.String gmlId)
gmlId - GML idpublic void setGmlId(java.lang.String gmlId)
gmlId - Id to setpublic java.lang.String getGmlId()
#
(document reference indicator) is removedpublic boolean isSetGmlId()
true, if GML id is setpublic boolean isReferenced()
true, if GML id contains document reference
indicatorpublic Time.TimeFormat getTimeFormat()
public void setTimeFormat(Time.TimeFormat timeFormat)
timeFormat - Time format to setpublic boolean isSetTimeFormat()
true, if time format is setpublic java.lang.String getReference()
public void setReference(java.lang.String reference)
reference - Reference to setpublic boolean isSetReference()
true, if reference is setpublic Time.NilReason getNilReason()
public void setNilReason(Time.NilReason nilReason)
nilReason - Nil reason to setpublic boolean isSetNilReason()
true, if nil reason is setpublic boolean isNilReasonEqualTo(java.lang.Enum value)
value - whose it shall comply withtrue, if nil reason equals queriedprotected org.joda.time.DateTime resolveDateTime(org.joda.time.DateTime dateTime,
IndeterminateValue indeterminateValue)
dateTime - DateTime to checkindeterminateValue - IndeterminateValue to checkIndeterminateValue.NOWpublic boolean isEmpty()
true if not set nil reason and not set referenceCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.